Ant conditional target in Build.XML

Hi!
I am new to the Ant Build process & I am looking for some condition type build parameter in build.xml so that the user can use some command line option to execute the same target but with some modification & if not passed then the normal execution take place. I want something like this
<!-- compiling of java files done here normal "ant"-->
    <target name="compile">
        <javac srcdir="${src}" destdir="${src}" classpathref="classpath"/>
        <echo message="compiling done"/>
    </target>
    <!-- Excute when some argument is passed something like conditional statemet-->
    <!-- compile without wsdl when "ant withoutwsdl"-->
    <target name="compile">
         <javac srcdir="${src}" destdir="${src}" excludes="wsdl/**" classpathref="classpath"/>
         <echo message="Compiled without WSDL done."/>
    </target> So that i dont have to make much change in the build process.
Please help me out.
Thanks.

check the ANT documentation. It tells you how to have conditional execution in your targets.
Of course you can NOT have multiple targets with the same name.

Similar Messages

  • Using Ant to run project build.xml file

    Hello,
    I am trying to understand an example Event processing and correlation project (ESPER) written in java. The example source code is provided as a zip file including a build.xml
    The readme says "Simply use the Ant <project>/build.xml to run the example - it should compile and run, print out the simulation"
    I use the netbeans IDE for development which ships with an ant installation. My question is do i need another ant installation to run the example? Ideally i would prefer to run the example in the IDE, any ideas how i can do that?
    your suggestions will be very much appreciated.
    Antana

    The readme says "Simply use the Ant <project>/build.xml to run the example - it should compile and run, print out the simulation"
    The <project>/build.xml is the ant script where you can customize many NetBeans operations, like project construction, javac configurations, etc. If you simply run this script, nothing happens, unless in this script there is some kind of customization, done by the example. I am assuming <project> is the directory of a NetBeans project.
    I use the netbeans IDE for development which ships with an ant installation. My question is do i need another ant installation to run the example? Ideally i would prefer to run the example in the IDE, any ideas how i can do that?
    You do not need another ant installation. The default installation of NetBeans comes with an ant. You can configure NetBeans to use your preferred ant, but you do not need that, because the default ant in NetBeans directory installation do most of things, if not everything, you need. NetBeans 5.5.1 come with Ant 1.7.0 by default, so if you choose you preferred ant, and this ant is also 1.7.0, then nothing different will happen.
    You can perfectly run the example in the NetBeans IDE. You can also debug the example. Maybe what you have to do is configure the NetBeans project, setting the class with the main() method?

  • How to use Weblogic Server 6.1 build.xml with ant

    Hi Java's
    I have downloaded the latest version of BEA Weblogic server 6.1,they have changed the build.cmd to build.xml for compiling and building the ejb applications.they are telling that we have use $ant to run the build.xml but i couldn't able to do that.i'm getting "command not found error"..i'm using winnt.please help me how to use $ ant.Is it a seperate exe or batch file that i have to download ?if so where to download it.how to use it.please help.
    Regards
    Balaji

    To use it after installation, set your path to your
    <ant_installation_dir>\bin, then navigate to the diectory containing the build.xml. then follow the instructions in the weblogic documentation for running ant.

  • Ant for the build.xml file

    when we give the ant command then what the background task perform?..
    how ant start parsing the build.xml file ?

    Go to ant.jakarta.org. They have numerous tutorials. Do some research first. If you run into an actual problem, then post what it is.
    - Saish

  • JDev 10.1.3 and Ant - Targets are only displayed if in build.xml

    In JDev 10.1.3, the build-target list only shows targets in my build.xml file and does not show any targets that are in imported files or that are included using an entity include. In the previous versions, all of the targets were displayed. Is there any way to have 10.1.3 show all of the targets in all of the files referenced by build.xml?
    Thanks,
    Richard

    There is an option in the preferences ( select the Tools | Preferences... menu item and go to the Ant panel ) to "Show Imported Targets in Target Menus". If that is checked it should show you the imported targets, if it can locate them. That item is checked by default.
    In some cases, it cannot locate the imported buildfile if the import statement contains a property reference, and the value of the property cannot be determined. It also will not show targets from entity includes.
    -Matt Hawkins
    Oracle JDeveloper

  • Can ant call a target from my build.xml from another xml file?

    can ant have a target something like this:
    <target mytarget>
    <antcall file="C:\app\build2.xml" targetname="blah">
    </target>
    Is it possible to call a target in my build.xml that will then look in a file called build2.xml and call a target in that xml file?
    Thanks,
    Tad

    I looked at the manual and the site and couldn't find anything, you don't have to tell me the exact xml if
    it bugs you, all I want to know is if it is possible and if it is what task should I use, I will look up
    the attributes and how to do it.Now this really takes the biscuit.
    I gave you a very specific link to the document that tells you which task to use and which arguments to set. Did you check that link? If so, what else do you want? If not, why not?

  • Errror while Running the ant file(build.xml) when applying B2B-BPEL patch

    Hello all,
    I am trying to apply the B2B WSIL Browser patch and while running the ant file i got the following warning while backing out d3l.jar file
    echo Backing out dl3l.jar to avoid conflicts with B2B...
    move *Warning: Could not find file C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\xqs\lib\d3l.jar to copy.*
    and the following error when it was not able to find admin_client.jar file
    *java Unable to access jarfile C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\j2ee\home\admin_client.jar*
    java Java Result: 1
    echo Binding B2B WSIL Browser...
    *java Unable to access jarfile C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\j2ee\home\admin_client.jar*
    and the BUILD FAILED
    *so i created the necessary folders in the newly generated folder manually in ${env.ORACLE_HOME} i.e xqs\lib & j2ee\home and pasted the d3l.jar and admin_client.jar in these folders respectively,and again ran the ant file,this time the error is first problem is cleared i.e it is not showing the warning that it could not find* d3l.jar_+ file and it is also converting this file as d3l.jar.hide_+ *, but this time in the place of second error a new error is generated i.e* +
    Problem_
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL&gt;ant
    Buildfile: build.xml
    apply-b2b-bpel-10.1.3:
    echo Prompting for B2B repository connection parameters...
    input Please enter B2B repository hostname [http://127.0.0.1:] [http://127.0.0.1]
    172.17.4.14
    input Please enter B2B repository port 1521: 1521
    1521
    input Please enter B2B repository sid ORCL: ORCL
    orcl
    input Please enter B2B password b2b: b2b
    b2b
    input Please enter oc4j instance name home: home
    home
    input Please enter oc4j admin password welcome1: welcome1
    welcome1
    input Please enter opmn request port 6003: 6003
    6003
    echo Copying b2b.jar and tip.properties to appropriate locations...
    copy Copying 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\lib
    copy Copying 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.OB_HOME}\system\classes
    echo Backing out dl3l.jar to avoid conflicts with B2B...
    move Moving 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\xqs\lib
    echo Deploying B2B WSIL Browser ...
    echo OPMN Port is : 6003
    echo Container is : home
    echo Host is : ${env.HOSTNAME}
    echo iasadminpassword is : welcome1
    java java.lang.NoClassDefFoundError: oracle/oc4j/admin/deploy/cmdline/Oc4jAdminCmdline
    java Exception in thread "main"
    java Java Result: 1
    echo Binding B2B WSIL Browser...
    java java.lang.NoClassDefFoundError: oracle/oc4j/admin/deploy/cmdline/Oc4jAdminCmdline
    java Exception in thread "main"
    BUILD FAILED
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\build.xml:88: The following error occurred while executing this line:
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\build.xml:49: Java returned: 1
    Total time: 31 seconds
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL&gt;
    i have set the classpath for the jdk and jre files correctly and also checked it with a sample program and the file is compiling and running with correct output.then why is it showing up java.lang.NoClassDefFoundError exception.Did anyone face the same problem or have a solution for this problem if they have then plzzz help me
    thnx
    Sunny
    Edited by: sunny kay on Jan 27, 2009 4:14 AM

    Hello sri,
    Thanks for your response as you have told i have set the ORACLE_HOME = C:\product\10.1.3.1\OracleAS_1
    and added C:\product\10.1.3.1\OracleAS_1\bin to my sys path
    and i have also set the JAVA_HOME=C:\product\10.1.3.1\OracleAS_1\jdk
    and added C:\product\10.1.3.1\OracleAS_1\jdk\bin to my sys path
    and ran the patch,now its coming up with a different problem after entering the B2B repository connection parameters...
    and it is
    Problem_
    echo Deploying B2B WSIL Browser ...
    echo OPMN Port is : 6003
    echo Container is : home
    echo Host is : ${env.HOSTNAME}
    echo iasadminpassword is : welcome1
    java
    java
    java Failed at "Could not get DeploymentManager".
    java
    java This is typically the result of an invalid deployer URI format being
    supplied, the target server not being in a started state or incorrect authentic
    ation details being supplied.
    java
    java More information is available by enabling logging -- please see the
    Oracle Containers for J2EE Configuration and Administration Guide for details.
    java
    java
    java Java Result: 1
    echo Binding B2B WSIL Browser...
    java
    java
    java Failed at "Could not get DeploymentManager".
    java
    java This is typically the result of an invalid deployer URI format being
    supplied, the target server not being in a started state or incorrect authentic
    ation details being supplied.
    java
    java More information is available by enabling logging -- please see the
    Oracle Containers for J2EE Configuration and Administration Guide for details.
    java
    java
    BUILD FAILED
    The Application Server is in the started state and these are the details that i have entered when B2B Repository Connection Parameters is prompeted
    echo Prompting for B2B repository connection parameters...
    input Please enter B2B repository hostname [http://127.0.0.1]: [http://127.0.0.1]
    172.17.4.14
    input Please enter B2B repository port [1521|http://forums.oracle.com/forums/]: [1521|http://forums.oracle.com/forums/]
    1521
    input Please enter B2B repository sid ORCL: ORCL
    orcl
    input Please enter B2B password [b2b|http://forums.oracle.com/forums/]: [b2b|http://forums.oracle.com/forums/]
    b2b
    input Please enter oc4j instance name home: home
    home
    input Please enter oc4j admin password [welcome1|http://forums.oracle.com/forums/]: [welcome1|http://forums.oracle.com/forums/]
    welcome1
    input Please enter opmn request port [6003|http://forums.oracle.com/forums/]: [6003|http://forums.oracle.com/forums/]
    6003
    is anything wrong in this i have tried by giving the default host name instead of mine but result is still the same.what is the problem can you figure it out and provide me a solution.
    thnx
    Sunny

  • More than one ANT Build-Script "build.xml" in a JDev Project?

    Hi,
    were using JDev 10.1.3.3 with our Projects in which i am trying to inject the code coverage tool "Cobertura".
    We want to handle Cobertura through ANT-Targets, so we have to set up an .XML-Buildscript.
    But we already have a Build.xml to cover our deployment needs.
    I don't want to put the cobertura-targets into our Build.xml - would be a mix of purpose to me...
    Instead of having one big .xml, i wanted to have "Build.xml" and "Cobertura.xml", but when generate the latter and put in the ANT-Project it isn't recognized as an ANT-Script, but as an ordinary XML.
    With new-->Ant-->buildfile i can only generate the "Build.xml".
    Is it possible to convert a regular XML into an Ant-Script, so that JDev would recognize them?!
    regards,
    Henning
    Edited by: Haymaker84 on 03.12.2008 03:00

    whoops...
    i was able to generate another buildscript with the standart dialog!

  • Help with Flex Ant build.xml error

    So I've started on a new project and I'm new to Flex. A lot of learning curve here. Anyway, I'm trying to deploy a project that uses flex and is built with Ant. We've moving up from a version of Flex 2 to Flex 3. The build file works fine in the Flex 2 app but for some reason does not seem to be working with Flex 3. I'm hoping someone can give me some insight on what might be wrong or where to start.
    The error is Command not found: compc
    The part of the build file it has a problem with is:
    <compc include-classes="${classes}"
         ouput="${flex.dist.dir}/${flex.app.name}.swc"
         keep-generated-actionscript="false"
         headless-server="${headless.server}"
         incremental="true">
    <load_config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
    <source-path path-element="${FLEX_HOME}/frameworks" />
    <source-path path-element="${flex.app.root}" />
    <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
         <include name="libs" />
         <include name="../bundles/{local}" />
    </compiler.library-path>
    <compiler.library-path dir="${flex.app.root}" appent="true">
         <include name="libs" />
    </compiler.library-path>
    </compc>
    Any help at all would be greatly appreciated, thank you.

    Sorry, I meant to address that. Yes, since we've moved up to the Flex 3 sdk, we are pointing at a new directory. The old directory was flex_sdk and the new directory is flex_sdk_340.
    FLEX_HOME is being set in the build.properties file for local building and then overidden in the build.xml file with this code:
    <target name="build">
         <available property="FLEX_HOME" value="/apps/flex_sdk_340" file="/apps/flex_sdk_340" />
         <echo>FLEX_HOME = ${FLEX_HOME}</echo>
         <antcall target="compile" />
    </target>
    I did notice a warning about not using the available property, so I removed it and just changed what FLEX_HOME was set to in the build.properties file to the server directory. Would mess up local building but regardless it didn't matter because it had no effect on the error being generated. I alos looked a little into the file property of the available tag trying to figure out if that was somehow an issue but I wasn't able to come to any conclusion.
    Before the program errors out, it does displayt he echo statement and the value of FLEX_HOME appears to be correct in that it does show /apps/flex_sdk_340.
    Thank you so much for your continued help. This is truly frustrating because nothing but a directory name has really changed and yet it stopped working. I can't find any information anywhere on what could be wrong and this is really my last resort.

  • Need build.xml to create Ear file using Ant in jdeveloper 11g??

    Hi all,
    I think Jdeveloper use ANT to create Ear file and how to get build.xml from Jdeveloper.
    1) I have created ADF Fusion web Application having separte Model and View Controller.
    2) Now when I select View Controller project and then i create New ant-> Build.xml i get the required build.xml which can be used to create war file for my View Controller project.
    3) Similarly when I select Model project and then i create New ant-> Build.xml i get the required build.xml which can be used to create Jarfile for my Model project.
    4) If I select my application and then i click deploy... I'm able to create my ear file having both war file for View Controller and Jar File for Model.
    5) But I dont know how to get built.xml file which will create ear file having both View Controller and Model in it.
    Thanks a lot....

    However note the generated Ant script includes unnecessary targets. See the following blog post: http://one-size-doesnt-fit-all.blogspot.com/2010/11/using-ojdeploy-and-ant-for-creating-adf.html
    CM.

  • Compile build.xml with Ant for web service with annotations

    Hi Friends,
    I have a web service with annotations, using javax.annotation.PostConstruct, and javax.annotation.PreDestroy.
    I have a build.xml to create a EAR for this web service.
    When I run the ant task, the build complete successfully but the .war file cannot be deployed on the WLS server. Taking a closer look, I see that the required files such as, webservices.xml, weblogic.xml, weblogic-webservices.xml, Provision.wsdl files are not generated.
    Following is the build.xml file:
    <?xml version="1.0" encoding="windows-1252" ?>
    <project default="jwsc">
    <property file="build.properties"/>
    <property name="weblogic.jar.classpath"
    value="C:/bea_jDev/wlserver_10.3/server/lib"/>
    <property name="oimclient.jar.classpath"
              value="C:/_data/Project_Dc/OIM_jars" />
         <property name="com.jar.classpath" value="C:/JDeveloper/mywork/Service_Test/lib" />
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath>
    <path id="weblogic.classpath">
    <pathelement path="WEBLOGIC_HOME"/>
    <fileset dir="${weblogic.jar.classpath}">
    <include name="**/*.jar"/>
    </fileset>
    </path>
    </classpath>
    </taskdef>
    <target name="all" depends="clean,build-service,deploy"></target>
    <target name="build-service">
         <jwsc srcdir="${src.home}" destdir="ear_directory" >
    <classpath>
    <path id="oim.classpath">
    <pathelement path="OIM_HOME"/>
    <fileset dir="${oimclient.jar.classpath}">
    <include name="**/*.jar"/>
    </fileset>
    <fileset dir="${com.jar.classpath}">
    <include name="**/*.jar"/>
    </fileset>
    </path>
    </classpath>
    <jws file="${jws.home}" type="JAXWS" />
    </jwsc>
    </target>
    <target name="deploy">
    <!--add wldeploy task here -->
    </target>
    <target name="clean">
    <delete dir="output" />
    </target>
    </project>
    Can you please point out what else is to be done and where exactly am I going wrong in writing the build.xml file.
    Let me know if some else information is required.

    This is what I get when I run the ant task:
    Buildfile: C:\JDeveloper\mywork\ProvisioningService_Test2\Provision\resource\build.xml
    build-service:
    [jwsc] JWS: processing module /com/fox/provision/webservice/endpoint/impl/ProvisionEndPointImpl
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 1 JWS files being processed for module /com/.../provision/webservice/endpoint/impl/ProvisionEndPointImpl
    [jwsc] [JAM] Warning: failed to resolve class org.apache.xmlbeans.XmlObject
    [jwsc] [JAM] Warning: failed to resolve class com.bea.xml.XmlObject
    [jwsc] [JAM] Warning: failed to resolve class javax.xml.rpc.holders.Holder
    [jwsc] JWS: C:\..\...\..\...\code\ProvisioningService\src\com\...\provision\webservice\endpoint\impl\..EndPointImpl.java Validated.
    [jwsc] Processing 1 JAX-WS web services...
    [jwsc] warning: Specified AnnotationProcessorFactory, 'com.sun.istack.ws.AnnotationProcessorFactoryImpl', not found on search path.
    warning: No annotation processors found but annotations present.
    2 warnings
    [jwsc] Compiling 2 source files to C:\DOCUME~1\....\LOCALS~1\Temp\_lsgijm
    [jwsc] Building jar: C:\..\...\..\...\code\ProvisioningService\src\com\...\provision\webservice\deploy\ear_directory\com\fox\provision\webservice\endpoint\impl\...EndPointImpl.war
    [jwsc] Created JWS deployment outputFile: C:\..\...\..\...\code\ProvisioningService\src\com\...\provision\webservice\deploy\ear_directory\....\...\provision\webservice\endpoint\impl\..EndPointImpl.war
    [jwsc] [EarFile] Application File : C:\..\...\..\...\code\ProvisioningService\src\com\.....\provision\webservice\deploy\ear_directory\META-INF\application.xml
    [AntUtil.deleteDir] Deleting directory C:\DOCUME~1\....\LOCALS~1\Temp\_lsgijm
    BUILD SUCCESSFUL
    Total time: 7 seconds
    Due to some limitations, I edited the path in the build.xml files.
    Please let me know what can be done. Thanks.
    Edited by: user9112073 on Nov 22, 2011 9:52 PM

  • [svn] 3680: Modifying ant build.xml to allow for a local. properties for individual developer build config.

    Revision: 3680
    Author: [email protected]
    Date: 2008-10-16 07:58:21 -0700 (Thu, 16 Oct 2008)
    Log Message:
    Modifying ant build.xml to allow for a local.properties for individual developer build config. Also moving ja_JP locale to the other.locales target (this is called during build machine packaging and isn't needed by dev by default).
    QE: No
    Doc: No
    Checkintests: Pass
    Reviewer: Discussed with Jim
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml

    I tried
    ant deployTestSuites
    this works. If i do that with the wrong domain (dep_cotrol vs dep_me) name it fails with
    ORABPEL-02052Cannot lookup BPEL domain.The BPEL domain "dep_cotrol" cannot be found; the domain may not have initialized properly.Please verify that the BPEL domain loader has a valid set of initialization properties in the application properties file.
    So i think my config is ok. There is a bug in this ant bpelTest which ignores the domain?

  • ANT build.xml file

    My build.xml must have problems, because the jar size is way smaller than the JBuilder equivalent. I think it is not including the 3rd party Jars that I want it to include.
    Additionally, it builds, but when I execute it I get strange errors indicating it can't find certain system classfiles.
    Here is the build file:
    <project name="JAutoTest" default="dist" basedir=".">
    <!-- set global properties for this build -->
    <property name="src" value="src"/>
    <property name="build" value="build"/>
    <property name="test" value="jAutoTool"/>
    <property name="dist" value="dist"/>
    <property name="doc" value="doc"/>
    <property name="Name" value="JAutoTest"/>
    <property name="packages" value="jAutoTool.*"/>
    <path id="project.class.path">
    <pathelement location="lib/"/>
    <pathelement location="jAutoTool/"/>
    <pathelement path="${java.class.path}/"/>
    </path>
    <target name="check_for_optional_packages">
    <available property="java.reflection" classname="java.lang.reflect"/>
    </target>
    <target name="prepare">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
    <mkdir dir="${test}"/>
    <mkdir dir="${doc}"/>
    </target>
    <target name="compile" depends="prepare,check_for_optional_packages">
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}" debug="on" deprecation="off" optimize="on">
    <classpath refid="project.class.path"/>
    </javac>
    </target>
    <target name="genDoc" depends="compile">
    <javadoc packagenames="${packages}" sourcepath="${basedir}/${src}" destdir="${doc}" author="true" version="true" windowtitle="${Name} API" doctitle="${Name}" bottom="Copyright � 2001 Motorola, Inc. All Rights Reserved."/>
    </target>
    <target name="dist" depends="compile">
    <!-- Create the ${dist}/lib directory -->
    <mkdir dir="${dist}/lib"/>
    <!-- Put everything in ${build} into the JAutoTest-${DSTAMP}.jar file -->
    <jar jarfile="${dist}/lib/JAutoTest-${DSTAMP}.jar" basedir="${build}"
              manifest="${dist}/META-INF/MANIFEST.MF">
              <zipgroupfileset dir="lib" includes="*.jar"/>
         </jar>
    </target>
    <target name="clean">
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
    </target>
    </project>
    I have the other jars at /lib.
    The error I am getting is:
    D:\testjTool\dist\lib>java -jar *.jar
    Uncaught error fetching image:
    java.lang.NullPointerException
    at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:102)
    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:111)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.j
    ava:251)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:217)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:185)
    Thanks.

    The error I am getting is:
    D:\testjTool\dist\lib>java -jar *.jar
    Uncaught error fetching image:
    java.lang.NullPointerException
    at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:102)
    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:111)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.j
    ava:251)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:217)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:185)
    Classpath is:
    D:\testjTool>set CLASSPATH=\testjTool\build;c:\JBuilder4\lib\HTTPClient.jar;c:\J
    Builder4\lib\htmlparser.jar;c:\JBuilder4\lib\classes12;c:\JBuilder4\lib\classes12\javax.jar;c:\JBuilder4\lib\dbswing.jar;c:\JBuilder4\lib\jbcl.jar;.;
    The ant build works, but the executable is 1/2 the size of the
    JBuilder one.

  • Starting tomcat 5.5 in Ant build.xml

    Hi everyone,
    I have been trying to get my build.xml file to start and stop Ant but am finding it difficult..
    this is a snippet of the code i am using
    <target name="tomcatOFF">
         <echo>Turning Off Tomcat [http://www.jspbook.com]</echo>
              <exec executable="bash" os="microsoft">
    <arg value="c:\program files\apache software foundation\bin\stop.bat"/>
         </exec>
    </target>
    <target name="tomcatOn">
    <echo>Turning ON Tomcat [http://www.jspbook.com]</echo>
         <exec executable="bash" os="microsoft">     
    <arg value="c:\program files\apache software foundation\bin\start.bat"/>
         </exec>
    </target>
    My computer is running on microsoft server 2003. I have two batch files that work in ms dos when run but wont work in ant as i am not used to the syntax.
    But when i run the code nothing happens. Has anyone got any ideas of how to implement the task of starting and stopping the service
    many thanks
    Dale

    Hello,
    I would recommend you to post your question to the OA Framework forum at:
    OA Framework
    You'll probably get more help about OAF from that forum.
    Good luck.
    Steff

  • Ant: How to execute / skip tasks by property in build.xml ?

    Hi,
    I want to create a build.xml to execute / skip tasks dynamically by property in build.xml.
    eg: I can define one property "needObfuscate" in either "true" or "false". I will contruct 2 tasks for obfuscate and non-obfuscate to fullfill the 2 cases. Only one of them WILL be executed depend on the flag "needObfuscate".
    ** I know Antenna's task "wtkpackage" has an arguement "obfuscate" to set. It's an example, what I want to know is how to execute / skip the tasks.
    Task "condition" is just used to set the property in runtime.
    <condition property="result" value="User choose 001.">
    <equals arg1="001" arg2="${select}"/>
    </condition>
    There is other tasks can fullfill what I expect ?
    Please guide me how to make it.
    Thanks.

    Hi,
    I've done one build.xml like below:
    <?xml version="1.0"?>
    <project name="PropertyPromptExample" default="main" basedir=".">
    <target name="windowsTask">
    <echo>windowsTask</echo>
    </target>
    <target name="linuxTask">
    <echo>linuxTask</echo>
    </target>
    <target name="main">
    <input message="Please enter platform(0 Windows, 1 Linux):" addproperty="select"/>
    <condition property="platform" value="windowsTask">
    <equals arg1="0" arg2="${select}"/>
    </condition>
    <condition property="platform" value="linuxTask">
    <equals arg1="1" arg2="${select}"/>
    </condition>
    <antcall target="${platform}"/>
    </target>
    </project>
    :)

Maybe you are looking for

  • Can I change the background color of the title " Knock Out" ?

    Hello, I am facing a problem with editing the title background, the original title background seems to be set as" transparent" or "black" , while I need it not to be black, but make it white or into any other color... I tried to copy the title "Knock

  • Trouble loading external .SWF into my main page with preloaders

    Dear All, I am working on my first Flash project with AS3. The structure of the flash site is pretty simple. I have a stage 1165px wide x 710px height Inside my Stage I have an horizontal bar with a menu followed by a container right under. **** My g

  • Burned DVD's have momentary pixelation

    Hi When I export my project from FCPX everything is perfect. When I use IDVD to add theme and chapters there is pixelation for 2 minutes on the burned DVD at the exact same spot of my project every time. Even though the source is 100% it keeps occurr

  • How to get AFP and not SMB

    i am trying to set up a chronosync between my laptop and desktop and i am being told by the good folks at chronosync that i am having an issue because i have an SMB connection and not an AFP connection. they have provided pretty specific instructions

  • Please help me to know the tables which contain details of APD and Open hub destination

    Hi experts, I need to know the list of APDs that have been created in our system. So can you please let me know the table name (if there is any) which contains the name of the APD and as well as the status (active / inactive) of the APD. Thanks , Sha