ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Ficker <m.fic...@googlemail.com>
Subject JLink replacement
Date Thu, 19 Jul 2007 16:05:46 GMT
Hi,

I've got a question about the Jar task.
The JLink task was able to  merge the content of jarfiles from
different, totally unrelated  places, defined in a PATH Structure.
"JLink" is deprecated  since Ant 1.5, so  there must be a solution
without using it. But I'm just not able to find it. Could you please
help me?
Here is my example code, using JLink. Note that this example is
simpliefied. In "Real World" the definition of "jarsindifferentplaces"
would be in a project buildfile, while
the JLink would be in a common build-file, imported by many Projects.

<project name="JarTest" default="testJar" basedir=".">
    <target name="testJar">−
        <path id="jarsindifferentplaces">
        <filelist dir="D:\temp">
            <file name="two.jar"/>
        </filelist>
        <filelist dir="C:\temp">
            <file name="One.jar"/>
        </filelist>
        </path>

<!-- JLink allows reference to path structure! -->
        <jlink compress="false" outfile="test.jar">
            <mergefiles refid="jarsindifferentplaces"/>
        </jlink>
    </target>
</project>

Thanks in advance,

Best Regards,

Martin

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


Mime
View raw message