Martin,
I do not know of an alternative (there might be one) but I have never
had to do what you are doing.
Have you considered getting the source for JLink and then making it your
own ant task? You can then adjust it
to suit your needs?
Just a thought.
Maybe someone can chime in and say why it was deprecated in the first
place but if there is no
reason to stop using it then don't! Make it your task and use it!
Doug
Martin Ficker wrote:
Sorry,
I have to push this again. Is the question to stupid? To difficult? No
one any idea?
M.
Martin Ficker wrote:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]