Results 1 to 2 of 2

Thread: bat file for invoking beandoc ant task

  1. #1

    Default bat file for invoking beandoc ant task

    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:
    Code:
    	<path id="classpath">
        	<fileset dir="$&#123;lib&#125;">
          	<include name="**/*.jar"/>
            <include name="**/*.zip"/>
        	</fileset>
      	</path>
    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?

  2. #2
    Join Date
    Nov 2004
    Location
    Hilversum - The Netherlands
    Posts
    1,054

    Default

    All libraries ANT depends on, I add to my project (so all other programmers will have the same libraries).

    Code:
      <path id="classpath.support">
            <fileset dir="lib-support">
                <include name="**/*.jar"/>
            </fileset>
        </path>
    So if ANT needs jars, I drop them in the lib-support library. I wouldn`t fiddle around with bat files, you can do it perfectly from ant. And if you need to import a taskdef, you can give the classpath.support to it.

Similar Threads

  1. Replies: 2
    Last Post: Apr 12th, 2012, 09:34 AM
  2. Replies: 5
    Last Post: Mar 17th, 2010, 04:32 AM
  3. Saving large files to a db using hibernate?
    By Dan Washusen in forum Data
    Replies: 10
    Last Post: Sep 20th, 2006, 12:18 PM
  4. Deferred file upload
    By Thomas Matzner in forum Web
    Replies: 4
    Last Post: Sep 30th, 2005, 12:06 PM
  5. application context file size
    By vjao in forum Web
    Replies: 3
    Last Post: May 17th, 2005, 11:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •