Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Rename directories in Ant

Rename directories in Ant

2007-06-21       - By Rebhan, Gilbert
Reply:     <<     11  


Hi,

as other ant users might also use jruby in ant
and still run under jdk1.4 ...

just tested retroweaver with  jruby-complete-1.0.jar
(see original mail below) to make it work for jdk1.4

it's as simple as
<taskdef name="retroweaver"
classname="net.sourceforge.retroweaver.ant.RetroWeaverTask">
 <classpath>
   <fileset dir="${ant.extrablibs}/retroweaver" includes="**/*"/>
   <pathelement
location="${ant.extrablibs}/retroweaver/retroweaver-all-2.0.jar"/>
  </classpath>
</taskdef>

...

<retroweaver inputjar="V:\test\jruby-1.0\jruby-complete-1.0.jar"
    outputjar="V:\test\jruby-1.0\jruby-complete-1.0_jdk14.jar"
/>


the generated jar works for my small script , didn't check it
with other stuff though.


i would like to use the jruby-complete-1.0.jar
with jdk1.4 in production

providing a special jar for jdk1.4 @ dist.codehaus.org
would be cleaner ...

still waiting ...
should i fill a bugreport ?!

Regards,
Gilbert

-----Original Message-----
From: Gilbert Rebhan [mailto:ant@(protected)]
Sent: Friday, June 15, 2007 10:25 PM
To: Ant Users List
Subject: Re: Rename directories in Ant

[...]

2. the jruby-complete-1.0.jar, as it contains all
   needed ruby libraries the script includes with
   'require ...' (like import in java)
   the normal jruby.jar will not be enough
   get it here     http://dist.codehaus.org/jruby/

Notice
1. the distributed jruby-complete-1.0.jar is build
   with jdk1.5, so if you're running with 1.4, you'll
   get a "Unsupported major.minor version 49.0"
   ** i'll ask the developers to provide a version for 1.4
   in the meantime you may try to backport it with
   retroweaver, get it here     http://retroweaver.sourceforge.net/
   (mostly it's only 1.5 because they used StringBuilder and stuff)

[...]

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.