Hi,
On 26 Nov., 20:53, Stuart Sierra <[EMAIL PROTECTED]> wrote:
> <target name="core" depends="compile"
> description="Precompile Clojure core sources.">
> <java classname="clojure.lang.Script"
> classpath="${build}:${cljsrc}">
> <sysproperty key="clojure.compile.path"
> value="${build}"/>
> <arg value="${precompile}"/>
> </java>
> </target>
For other projects - ie. not Clojure itself -, one could set the
classpath slightly different.
<property name="clojure.lib" location="/some/directory/with/jars"/>
<path id="clojurelib">
<fileset dir="${clojure.lib}" includes="**/*.jar"/>
</path>
<classpath>
<path location="${src}"/>
<path location="${build}"/>
<path refid="clojurelib"/>
</classpath>
So one can drop external libraries into the specified path and they
are immediately available. One particular example is clojure.jar. ;)
However I have no experience with ant. So how can I set the
path via an envirnment variable? Eg. CLOJURE_LIB which is
also used by some startup script which was posted. That would
make a nice fit.
Sincerely
Meikel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---