Re: AssetsModule.ResourceMinimizer Exception yui compressor

2013-04-08 Thread Rural Hunter

thanks. this works though I need to include a rhino dependency specifically.

于 2013/4/4 2:06, Lenny Primak 写道:

Here is something that may help you:
This loads a replacement of tapestry-yuicompressor that bundles in the 
yuicompressor library and rhino in such a way that it doesn't conflict with any 
other version of rhino you are using.
I.e. don't include stock tapestry-yuicompressor or yuicompressor from yahoo.
Excerpts of POM file:
  
 properties

 yuicompressor.version2.4.7-cust-tap-5.3.6/yuicompressor.version
 /properties

 dependency
 groupIdcom.yahoo.platform.yui/groupId
 artifactIdyuicompressor/artifactId
 version${yuicompressor.version}/version
 scope${war-deps.scope}/scope
 /dependency

 repositories
 repository
 idflowlogix-maven2/id
 urlhttp://flowlogix-m2.googlecode.com/svn/trunk/url
 /repository
 /repositories
/project

On Apr 1, 2013, at 8:46 PM, Rural Hunter ruralhun...@gmail.com wrote:


Hi,

The URL is not available any more. Can somebody send me Luck's package kindly? 
Thanks in advance.

于 2012/4/23 19:37, Luke Wilson 写道:

On 23 Apr 2012, at 11:25, netdawg wrote:


Thanks, Luke.  Yes, please...

I've uploaded the repackaged version here: 
http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar


net.dawg  at yahoo

Did I have to install into maven repository (would appreciate version etc)?
And/Or do I use it to compress?

 groupIdyuicompressorbugfix/groupId
 artifactIdyuicompressor-rhino-bugfix/artifactId
 version5.0/version

If you don't run your own version of nexus, you'll have to install it on the 
machine that you want to build on. This is the command you need I think: 
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

You'll also need to exclude the yuicompressor version that tapestry pulls in:

dependency
 groupIdorg.apache.tapestry/groupId
 artifactIdtapestry-yuicompressor/artifactId
 version5.3.2/version
 exclusions
 exclusion
   groupIdcom.yahoo.platform.yui/groupId
   artifactIdyuicompressor/artifactId
 /exclusion
 /exclusions
 /dependency

This should work,

Luke
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2013-04-08 Thread Lenny Primak
Good to hear. Yes you are correct. You need to include the rhino version you 
want. 



On Apr 8, 2013, at 3:27 AM, Rural Hunter ruralhun...@gmail.com wrote:

 thanks. this works though I need to include a rhino dependency specifically.
 
 于 2013/4/4 2:06, Lenny Primak 写道:
 Here is something that may help you:
 This loads a replacement of tapestry-yuicompressor that bundles in the 
 yuicompressor library and rhino in such a way that it doesn't conflict with 
 any other version of rhino you are using.
 I.e. don't include stock tapestry-yuicompressor or yuicompressor from yahoo.
 Excerpts of POM file:
   properties
 yuicompressor.version2.4.7-cust-tap-5.3.6/yuicompressor.version
 /properties
 
 dependency
 groupIdcom.yahoo.platform.yui/groupId
 artifactIdyuicompressor/artifactId
 version${yuicompressor.version}/version
 scope${war-deps.scope}/scope
 /dependency
 
 repositories
 repository
 idflowlogix-maven2/id
 urlhttp://flowlogix-m2.googlecode.com/svn/trunk/url
 /repository
 /repositories
 /project
 
 On Apr 1, 2013, at 8:46 PM, Rural Hunter ruralhun...@gmail.com wrote:
 
 Hi,
 
 The URL is not available any more. Can somebody send me Luck's package 
 kindly? Thanks in advance.
 
 于 2012/4/23 19:37, Luke Wilson 写道:
 On 23 Apr 2012, at 11:25, netdawg wrote:
 
 Thanks, Luke.  Yes, please...
 I've uploaded the repackaged version here: 
 http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar
 
 net.dawg  at yahoo
 
 Did I have to install into maven repository (would appreciate version 
 etc)?
 And/Or do I use it to compress?
 groupIdyuicompressorbugfix/groupId
 artifactIdyuicompressor-rhino-bugfix/artifactId
 version5.0/version
 
 If you don't run your own version of nexus, you'll have to install it on 
 the machine that you want to build on. This is the command you need I 
 think: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
 
 You'll also need to exclude the yuicompressor version that tapestry pulls 
 in:
 
dependency
 groupIdorg.apache.tapestry/groupId
 artifactIdtapestry-yuicompressor/artifactId
 version5.3.2/version
 exclusions
 exclusion
   groupIdcom.yahoo.platform.yui/groupId
   artifactIdyuicompressor/artifactId
 /exclusion
 /exclusions
 /dependency
 
 This should work,
 
 Luke
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2013-04-03 Thread Lenny Primak
Here is something that may help you:
This loads a replacement of tapestry-yuicompressor that bundles in the 
yuicompressor library and rhino in such a way that it doesn't conflict with any 
other version of rhino you are using. 
I.e. don't include stock tapestry-yuicompressor or yuicompressor from yahoo. 
Excerpts of POM file:
 
properties
yuicompressor.version2.4.7-cust-tap-5.3.6/yuicompressor.version
/properties

dependency
groupIdcom.yahoo.platform.yui/groupId
artifactIdyuicompressor/artifactId
version${yuicompressor.version}/version
scope${war-deps.scope}/scope
/dependency

repositories
repository
idflowlogix-maven2/id
urlhttp://flowlogix-m2.googlecode.com/svn/trunk/url
/repository
/repositories
/project

On Apr 1, 2013, at 8:46 PM, Rural Hunter ruralhun...@gmail.com wrote:

 Hi,
 
 The URL is not available any more. Can somebody send me Luck's package 
 kindly? Thanks in advance.
 
 于 2012/4/23 19:37, Luke Wilson 写道:
 On 23 Apr 2012, at 11:25, netdawg wrote:
 
 Thanks, Luke.  Yes, please...
 I've uploaded the repackaged version here: 
 http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar
 
 net.dawg  at yahoo
 
 Did I have to install into maven repository (would appreciate version etc)?
 And/Or do I use it to compress?
 groupIdyuicompressorbugfix/groupId
 artifactIdyuicompressor-rhino-bugfix/artifactId
 version5.0/version
 
 If you don't run your own version of nexus, you'll have to install it on the 
 machine that you want to build on. This is the command you need I think: 
 http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
 
 You'll also need to exclude the yuicompressor version that tapestry pulls in:
 
dependency
 groupIdorg.apache.tapestry/groupId
 artifactIdtapestry-yuicompressor/artifactId
 version5.3.2/version
 exclusions
 exclusion
   groupIdcom.yahoo.platform.yui/groupId
   artifactIdyuicompressor/artifactId
 /exclusion
 /exclusions
 /dependency
 
 This should work,
 
 Luke
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2013-04-01 Thread Rural Hunter

Hi,

The URL is not available any more. Can somebody send me Luck's package 
kindly? Thanks in advance.


于 2012/4/23 19:37, Luke Wilson 写道:

On 23 Apr 2012, at 11:25, netdawg wrote:


Thanks, Luke.  Yes, please...

I've uploaded the repackaged version here: 
http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar


net.dawg  at yahoo

Did I have to install into maven repository (would appreciate version etc)?
And/Or do I use it to compress?

 groupIdyuicompressorbugfix/groupId
 artifactIdyuicompressor-rhino-bugfix/artifactId
 version5.0/version

If you don't run your own version of nexus, you'll have to install it on the 
machine that you want to build on. This is the command you need I think: 
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

You'll also need to exclude the yuicompressor version that tapestry pulls in:

dependency
 groupIdorg.apache.tapestry/groupId
 artifactIdtapestry-yuicompressor/artifactId
 version5.3.2/version
 exclusions
 exclusion
   groupIdcom.yahoo.platform.yui/groupId
   artifactIdyuicompressor/artifactId
 /exclusion
 /exclusions
 /dependency

This should work,

Luke
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-25 Thread netdawg
Best I can tell, this issue melted away after I fixed my jQuery dependent
scripts.  Specifically to replace $ with jQuery as advised below: 

http://docs.jquery.com/Using_jQuery_with_Other_Libraries

My application is no longer dependent on yuicompressor-rhino-bugfix.  I also
whacked the yuicompressor dependency from my pom, without suffering the
index out of bounds problem.  Now, I just use yui to compress my script by
command line (instead of pom).  That works fine whether I do it or not.  

Not sure if this will help anyone...but just a possibility...since yui seems
to creating quite a bit of mischief. 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5664180.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread netdawg
Tried  https://issues.apache.org/jira/browse/TAP5-1729 

No success



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5658828.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread netdawg
Tried compressing it...

java -jar yuicompressor-2.4.7.jar addCheckBoxLabelToKeywords.js -o
addCheckBoxLabelToKeywords-min.js

Still same failure.  


Works in Jetty.   Tomcat is failing on this...

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5658831.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread Chris Mylonas
ah dude, there was a resolution to this last week i think.
check back through the last 10 days of this list.

IIRC, if you can remove yui from your dependencies, you should be right

On 23/04/2012, at 7:47 PM, netdawg wrote:

 Tried compressing it...
 
 java -jar yuicompressor-2.4.7.jar addCheckBoxLabelToKeywords.js -o
 addCheckBoxLabelToKeywords-min.js
 
 Still same failure.  
 
 
 Works in Jetty.   Tomcat is failing on this...
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5658831.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread netdawg
Thanks, Chris.  Yes, I whacked yui from pom.  Still same issue.  I put the
script into my tml.  But it is failing on jquery-1.7.2.min.js as well.  

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5658865.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread Luke Wilson
The only way I could fix this when I came across this problem was to repackage 
the whole yui jar to contain most of rhino.

http://stackoverflow.com/questions/6652550/yui-compressor-stringindexoutofboundsexception-on-jboss

Let me know if you need the package and I'll see if I can send it to you.

Luke

On 23 Apr 2012, at 11:06, netdawg wrote:

 Thanks, Chris.  Yes, I whacked yui from pom.  Still same issue.  I put the
 script into my tml.  But it is failing on jquery-1.7.2.min.js as well.  
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5658865.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread Luke Wilson
On 23 Apr 2012, at 11:25, netdawg wrote:

 Thanks, Luke.  Yes, please... 

I've uploaded the repackaged version here: 
http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar

 
 net.dawg  at yahoo  
 
 Did I have to install into maven repository (would appreciate version etc)? 
 And/Or do I use it to compress?   

groupIdyuicompressorbugfix/groupId
artifactIdyuicompressor-rhino-bugfix/artifactId
version5.0/version

If you don't run your own version of nexus, you'll have to install it on the 
machine that you want to build on. This is the command you need I think: 
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

You'll also need to exclude the yuicompressor version that tapestry pulls in:

dependency
groupIdorg.apache.tapestry/groupId
artifactIdtapestry-yuicompressor/artifactId
version5.3.2/version
exclusions
exclusion
  groupIdcom.yahoo.platform.yui/groupId
  artifactIdyuicompressor/artifactId
/exclusion
/exclusions
/dependency 

This should work,

Luke
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread netdawg
Indeed that fixed the issue.  

Much Thanks, Luke.  

This community is simply great!  



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5659834.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread netdawg
Specifically, install the jar into repository as follows: 

mvn install:install-file -Dfile=yuicompressor-rhino-bugfix-5.0.jar
-DgroupId=yuicompressorbugfix  -DartifactId=yuicompressor-rhino-bugfix
-Dversion=5.0 -Dpackaging=jar

Added/replaced the following in pom.xml


dependency
groupIdorg.apache.tapestry/groupId
artifactIdtapestry-yuicompressor/artifactId
version${tapestry-release-version}/version
 exclusions 
exclusion 
  groupIdcom.yahoo.platform.yui/groupId 
  artifactIdyuicompressor/artifactId 
/exclusion 
/exclusions 
/dependency
dependency
 groupIdyuicompressorbugfix/groupId 
 artifactIdyuicompressor-rhino-bugfix/artifactId 
 version5.0/version
/dependency



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5659846.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread Luke Wilson
Pleased it worked.

Luke

On 23 Apr 2012, at 17:23, netdawg wrote:

 Indeed that fixed the issue.  
 
 Much Thanks, Luke.  
 
 This community is simply great!  
 
 
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5659834.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread Kalle Korhonen
On Mon, Apr 23, 2012 at 4:37 AM, Luke Wilson l...@viscri.co.uk wrote:
 On 23 Apr 2012, at 11:25, netdawg wrote:
 Thanks, Luke.  Yes, please...
 I've uploaded the repackaged version here: 
 http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar

Did you actually change any of the code or you just included the same
version of rhino in the same jar?

 Did I have to install into maven repository (would appreciate version etc)?
 And/Or do I use it to compress?
    groupIdyuicompressorbugfix/groupId
    artifactIdyuicompressor-rhino-bugfix/artifactId
    version5.0/version
 If you don't run your own version of nexus, you'll have to install it on the 
 machine that you want to build on. This is the command you need I think: 
 http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
 You'll also need to exclude the yuicompressor version that tapestry pulls in:
        dependency
            groupIdorg.apache.tapestry/groupId
            artifactIdtapestry-yuicompressor/artifactId
            version5.3.2/version
            exclusions
                exclusion
                      groupIdcom.yahoo.platform.yui/groupId
                      artifactIdyuicompressor/artifactId
                /exclusion
            /exclusions
        /dependency

Just FYI, the usual way of doing this is by adding a suffix to the
version (such 1.2.3-mycompanyfixes) and leaving GA coordinates intact.
That way you don't have to exclude other versions of the same library.

Kalle

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-23 Thread Luke Wilson
On 23 Apr 2012, at 17:58, Kalle Korhonen wrote:

 On Mon, Apr 23, 2012 at 4:37 AM, Luke Wilson l...@viscri.co.uk wrote:
 On 23 Apr 2012, at 11:25, netdawg wrote:
 Thanks, Luke.  Yes, please...
 I've uploaded the repackaged version here: 
 http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar
 
 Did you actually change any of the code or you just included the same
 version of rhino in the same jar?

I pretty much just included most of rhino (since it's all pretty inextricably 
linked together) into the same jar, although I might have missed some classes 
that aren't involved in minifying CSS or JavaScript.

 
 Did I have to install into maven repository (would appreciate version etc)?
 And/Or do I use it to compress?
groupIdyuicompressorbugfix/groupId
artifactIdyuicompressor-rhino-bugfix/artifactId
version5.0/version
 If you don't run your own version of nexus, you'll have to install it on the 
 machine that you want to build on. This is the command you need I think: 
 http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
 You'll also need to exclude the yuicompressor version that tapestry pulls in:
dependency
groupIdorg.apache.tapestry/groupId
artifactIdtapestry-yuicompressor/artifactId
version5.3.2/version
exclusions
exclusion
  groupIdcom.yahoo.platform.yui/groupId
  artifactIdyuicompressor/artifactId
/exclusion
/exclusions
/dependency
 
 Just FYI, the usual way of doing this is by adding a suffix to the
 version (such 1.2.3-mycompanyfixes) and leaving GA coordinates intact.
 That way you don't have to exclude other versions of the same library.

That's good to know, thanks.

 
 Kalle
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org