When you do your retrieve, you can specify in the pattern attribute where you
want those dependencies to go. I make it go to a subdirectory called
dependencies with:
<ivy:retrieve
pattern="${basedir}/dependencies/[module]/[type]/[artifact].[ext]"
ivypattern="${basedir}/dependencies/[module]/[type]/[artifact].[ext]"/>
I then setup my classpath:
<path id="compileJavaClassPath">
<pathelement location="${basedir}/build/classes"/>
<fileset dir="${basedir}/dependencies">
<include name="**/jar/*.jar"/>
</fileset>
</path>
I then compile with:
<javac srcdir="${basedir}/src"
destdir="${basedir}/build/classes" source="1.5" includeAntRuntime="true"
sourcepath="" debug="true" fork="true" memoryMaximumSize="512m">
<src>
<pathelement location="${basedir}/src"/>
</src>
<classpath>
<path refid="compileJavaClassPath"/>
</classpath>
</javac>
---
Shawn Castrianni
-----Original Message-----
From: lukasbradley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 9:59 AM
To: [email protected]
Subject: Ant Compilation Referencing Local Repository
All,
I'm attempting to do something that seems like it should be simple, but I
can't find any straight documentation for it.
I've successfully gotten the Ant ivy:retrieve task to work. Now, I would
love to run a javac task using a classpath referencing the ivy.xml specified
libraries. The only examples I can find are copying those libraries to the
project's lib directory (or somewhere else), and compiling as normal. This
seems redundant.
Is what I'm trying to do possible?
Thank you for any and all help.
Lukas
--
View this message in context:
http://www.nabble.com/Ant-Compilation-Referencing-Local-Repository-tp14714702p14714702.html
Sent from the ivy-user mailing list archive at Nabble.com.
----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and
privileged information for the sole use of the intended recipient. Any review,
use, distribution, or disclosure by others is strictly prohibited. If you are
not the intended recipient (or authorized to receive information for the
intended recipient), please contact the sender by reply e-mail and delete all
copies of this message.