In the bean doc documentation it says that "In order to run the <beandoc/> Ant task, all of the runtime dependencies must be available to Ant when the task is called. This means either wrapping the call to Ant in a batch or shell script that adds these JAR files onto the classpath, or copying the JAR files into $ANT_HOME/lib. The runtime dependencies are all copied to the target/dist directory when you build BeanDoc."
I prefer the bat file approach, but would like to automatically generate the classpath with reference to a lib directory rather than type it in explicitly. If I were able to use ant syntax this would be trivial:
but figuring out how to do this in a bat file is beyond my very limited bat file savy. Is it possible to dynamically build a classpath with bat file syntax? If not, how do people in the forum handle this?Code:<path id="classpath"> <fileset dir="${lib}"> <include name="**/*.jar"/> <include name="**/*.zip"/> </fileset> </path>


Reply With Quote