I found the problem. I renamed the 'custom_rhino.jar' to 'js.jar' and
everything worked fine. Thank you for the help.

On 9/13/06, JM <[EMAIL PROTECTED]> wrote:


Diego,

Have you downloaded the latest custom rhino jar from DOJO?
The only think I can think of is that you are using an old version that
doesn't have the right compressScript method signature used by the custom
ant task.

JM


Diego Chagastelles wrote:
>
> JM, the last problem I solved. Now, I don´t know what to do with this
> problem:
>
> BUILD FAILED
> java.lang.NoSuchMethodError:
org.mozilla.javascript.Context.compressScript
> (Lorg/mozilla/javascript/Script;I)Ljava/lang/String;
>
> Do you know what it might be?
>
>
> On 9/11/06, Diego Chagastelles <[EMAIL PROTECTED]> wrote:
>>
>> JM, I tried to configure the task, but with these configuration my IDE
>> doesn´t find the class.
>>
>> <taskdef name="compress-js" classname="
>> com.webpanes.tools.ant.taskdefs.CompressJS"
>>            classpathref ="myclasspath"/>
>>
>> Message: "Reference not found"
>>
>> the classpathref property is not required. Should I keep it?
>>
>>
>> On 9/9/06, Diego Chagastelles < [EMAIL PROTECTED]> wrote:
>> >
>> > Thank you! Thats what I was looking for!
>> >
>> >
>> > On 9/7/06, JM < [EMAIL PROTECTED]> wrote:
>> > >
>> > >
>> > > Can I suggest you use the excellent javascript compressor ant task
>> > > from LCA
>> > > Soft ( http://www.lcasoft.com/compress-js.html
>> > > http://www.lcasoft.com/compress-js.html ) which is based DOJO
Rhino.
>> > >
>> > > JM
>> > >
>> > >
>> > > Diego Chagastelles wrote:
>> > > >
>> > > > Hi, I´m an Ant beginner and I am trying to insert a javascript
>> > > compression
>> > > > (using Dojo compression Tool "custom_rhino.jar") in my Ant Build
>> > > File. I
>> > > > tried to execute the jar and generate the output file (the
>> > > compressed
>> > > > javascript) using the "outputproperty" property. Unfortunatelly
to
>> > > me, it
>> > > > doesn´t work.
>> > > >
>> > > >
>> > > >    <property name="saida" location="${basedir}"></property>
>> > > >
>> > > > <target name="teste" depends="depends" description="HemoSysWeb">
>> > > >>         <java jar="WebContent/WEB-INF/lib/custom_rhino.jar"
>> > > >>             input="WebContent/pessoa.js" output=" error.js"
>> > > >>             outputproperty="${saida}" fork="true">
>> > > >>         </java>
>> > > >>     </target>
>> > > >>
>> > > >
>> > > >
>> > > > After that, I read that I supose to make a new Ant Task to do
this
>> > > job.
>> > > > What
>> > > > do you think? Could you help me with that?
>> > > >
>> > > > Thanks,
>> > > > Diego Chagastelles
>> > > >
>> > > >
>> > >
>> > > --
>> > > View this message in context:
>> > > http://www.nabble.com/Ant-Dojo-Compression-tf2216629.html#a6197998
>> > > Sent from the Ant - Users forum at Nabble.com .
>> > >
>> > >
>> > >
---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>> > >
>> > >
>> >
>>
>
>

--
View this message in context:
http://www.nabble.com/Ant-Dojo-Compression-tf2216629.html#a6296070
Sent from the Ant - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to