ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ludwig, Michael" <Michael.Lud...@delphi-mb.de>
Subject RE: Executing javascript ant task with jdk 1.6
Date Mon, 15 Nov 2010 13:34:21 GMT
> I tried your solution but still the same error is coming. I removed
> bsf.jar and js.jar from classpath and put "rt.jar" from JDK6 in
> classpath as this jar contains "org.mozilla.javascript" package and
> tried to test but still same error .

No need to put rt.jar on the classpath - it is there by default.

Can you post the output from the following script?

<project>
<!-- <echoproperties prefix="java"/> -->
<echoproperties prefix="ant"/>
<macrodef name="printpath">
<attribute name="p"/>
<sequential>
<fileset dir="@{p}" includes="**/*.jar" id="jars.from.@{p}"/>
<pathconvert refid="jars.from.@{p}" pathsep="${line.separator}"
          property="jars.from.@{p}.string"/>
<echo>${jars.from.@{p}.string}</echo>
</sequential>
</macrodef>
<printpath p="${user.home}/.ant/lib"/>
<printpath p="${ant.library.dir}"/>
<script language="javascript">
println("moin");
</script>
</project>

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message