Can we rename Ant build.xml?

Hi
Can we rename ant default build.xml name to any other name like myapp_build.xml?
I know this is not right forum;I alreday googled for this.But no luck.
Please help me.
Thanks
Anil

Yes - but then you will need to specify the -filename option on the ant command line.

Similar Messages

  • [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?

  • I can't find the build.xml in adobe-workspace-src.zip

    I imported the adobe-workspace-src.zip according to the 'customize workspace ui'. But I can't find the build.xml.So far I can't build the workspace project without it. Please advice how can I find build.xml?

    Hi,
    Can you confirm which version of LiveCycle you are using?
    Thanks,
    Matt MacKenzie
    Engineering Manager, LiveCycle Process Management ES

  • Help with flex4unit ant build.xml: Socket timeout waiting for flexunit report

    I'm having trouble setting up ant to build and test my project locally and I'm not sure what the next step is.
    Info:
    Running on XP/Cygwin.
    All of the files that FlexUnit4 references when used in Flash Builder are in my '${basename}/libs' folder (eg FlexUnit4_1.0.swc).
    I've placed the flexunit4 task in my ant/libs folder.
    I'm getting two errors...
    I don't think I've set up the 'socket' stuff right for the tests. It just sits and waits then dies...
    [flexunit] Waiting for client connection ...
    (about a minute later)
    [flexunit] Stopping server ...
    [flexunit] End of test data reached, sending acknowledgement to player ...
    [flexunit] Closing client connection ...
    [flexunit] Closing server on port [1024] ...
    BUILD FAILED
    java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report
    Plus this is the error I get from the flash player:
    ReferenceError: Error #1065: Variable mx.skins.spark::BorderSkin is not defined.
    I don't know why it's complaining about Borderskin as I think I have included all the flex4 libs I could find. I suspect this second error is causing the first error?
    Any help appreciated. I think I'm just setting it up all wrong.
    Screencap of errors:
    http://twitpic.com/l7ay8
    build.xml:
    http://gist.github.com/20804

    Finally got everything working using the files from the CI Example which what i probably should have done in the first place.
    So a rough guide for anyone just starting out with this:
    Download the Flex 4 'workspace' from the digital primates hudson server . This appears to contain flexunit library and examples in various stages of development.
    I used Flex Builder 4 Beta 2 to set up my Test Suite and Test Cases.
    I then loaded the libs folder from:
    workspace.zip\workspace\project\FlexUnit4SampleCIProject
    into my flex project's libs folder:
    this includes:
    FlexUnit4.swc
    FlexUnit4CIListener.swc
    flexUnit4UIRunner.swc
    flexTasks.jar
    flexUnitTasks.jar
    I didn't need to remove the FlexUnit4 stuff that is 'referenced' automatically by flash builder when you start adding flexunit4 tests/suites.
    Then I used a modified version of the TestRunner.mxml found in:
    workspace.zip\workspace\project\FlexUnit4SampleCIProject\src\test\flex
    The lines to pay attention to are the ones that look like:
    static public function currentRunTestSuite():Array {
        var testsToRun:Array = new Array();
        testsToRun.push(packagename.TestSuiteName);
        testsToRun.push(packagename.TestClassName);
        return testsToRun;
    Just make sure you update this list to include all of the test suites &/or individual tests you want to run.
    I made this a static function and modified the code in the "FlexUnitApplication.mxml" file to use this function so i'd only need to update one list of suites/tests.
    FlexUnitApplication.mxml is generated automatically when you run FlexUnit4 tests in the Flash Builder 4 Beta 2 IDE.
    This is the build.xml file I'm using in the project:
    http://gist.github.com/208211
    Change the name of the project from "Flare" to whatever and adjust the other path settings where required (though you might want to write this from scratch at least once so you understand roughly what is going on).
    The Debug Flash Player must be installed on the server otherwise you'll get a:
    java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report
    ...while it waits for the non-existant debugger to attach. (This is obvious but I did forget and was a bit bewildered for a moment)
    Need to also ensure the environment variable:FLEX_HOME is set to the location you installed the flex sdk...by editing your .bashrc setting the environment variable the in the Hudson Configuration.
    You'll need to point Hudson at your ant installation and your jdk installation. If you downloaded he sdk, be aware you might need to point it to the jdk folder inside the place you installed the sdk.
    And I think that's all the problems I had. Hope it's useful to someone... if anyone who actually knows what they are doing can point out any potential issues/better ways of doing things, feel free to comment.
    Thanks to Brian (legrosb) and Mike (mlabriola) for their assistance!

  • 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.

  • Converting build.cmd to Ant build.xml file

    Can anyone help me convert the attached build command file (windows) to a
              build.xml file for Ant?
              Thanks,
              Matt
              [build.txt]
              

    Hi Kevin,
    You can get lots of help from the following links
    http://help.sap.com/saphelp_nw04/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm
    SAP XI - Where to Find Information
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/sap xi - where to find information.pdf
    Following is the link for 'how to guides', A step by step guide to create scenarios:
    https://websmp201.sap-ag.de/nw-howtoguides
    All the information you need in XI :
    http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm
    you can also go through the url for Elearning :
    https://www.sdn.sap.com/sdn/elearning.sdn
    To understand the architecture of XI, Please go through this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    XI is all about configuration of Adapters, to learn more please go through this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
    One of the most powerful feature of XI, Business Process Management:
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm
    Once you go through these links and are a bit aware what all XI objects do, you can try a simple "File to File Scenario" which would help you to understand XI objects in a much better manner.
    For help on this scenario go through this blog it is in two parts thus i am providing both links below:
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    Re: new to netweaver
    Re: how  use XSLT maping in XI
    Re: IDOC - XI - FILE scenario
    Regards
    Vishnu

  • 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

  • JDev 9.0.3.5 Ant build.xml generation for EAR file

    Hi. I'm currently using JDeveloper 9.0.3.5, so that I can use the OA Extension. Is it possible to generate an ant file which can be used to build an EAR file for deployment of my application? If so, how do I do it?
    If this cannot be done with 9.0.3.5, can it be done with a later version? If so, is it possible to import the generated EAR file into that later version and then generate the ant script to build and later deploy the EAR file from its components?
    If neither method above works for creating the ant script that can build the EAR file, is there a sample ant file which I can then modify to do this?
    Thanks!

    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 (build.xml)

    hi,
    I have a couple of question's with regards to ant.
    1) I ran build script (through IDE) with a target "all" which compiles all classes and creates the Javadoc. While running each target i.e., "compile" and "doc" the messages are showing up properly. But after completing the target tasks the last message I get is "nothing to build".
    When I run the ant from the command line I do not get this message. why is this so?
    2)
    can the ant build script create the deployment descriptor file that's created by the IDE?
    thanks for your time.
    regards.

    It sounds like you are using JDeveloper 10g Preview. The "Nothing to Build" message was a bug in the preview release, and has already been fixed for the final release.
    We are planning to add the ability to generate Ant tasks for deployment descriptors in a future release.
    -Matt

  • Can not run ant build. Please help me!

    Please help me. Thks U very much in advance
    I've installed java Webservice 1.2 included Ant 1.5 (I haven't installed any
    Ant version before)
    When I run Ant in cmd, the following error occur:
    D:\java\doc\jwstutorial12\examples\gs>ant build
    Exception in thread "main" java.lang.NoClassDefFoundError: Files\j2sdk_nb\j2sdk1
    /4/2\lib\tools/jar;C:\jwsdp-1/2\apache-ant\//\server\lib\catalina-ant/jar;C:\jws
    dp-1/2\apache-ant\//\jaxp\lib\jaxp-api/jar;C:\jwsdp-1/2\apache-ant\//\jaxp\lib\e
    ndorsed\sax/jar;C:\jwsdp-1/2\apache-ant\//\jaxp\lib\endorsed\dom/jar;C:\jwsdp-1/
    2\apache-ant\//\jaxp\lib\endorsed\xercesImpl/jar;C:\jwsdp-1/2\apache-ant\//\jaxp
    \lib\endorsed\xsltc/jar;C:\jwsdp-1/2\apache-ant\//\jaxp\lib\endorsed\xalan/jar;C
    :\jwsdp-1/2\apache-ant\lib\optional/jar;C:\jwsdp-1/2\apache-ant\lib\ant/jar;
    My computer: windows 2000 Adv Server installed:
    1. j2sdk1.4.2 with Netbean IDE 3.5. Installed dir:
         C:\Program Files\j2sdk_nb\j2sdk1.4.2
    2. Java WebService 1.2. Installed dir:
         C:\jwsdp-1.2
    3. My computer environment variables
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    ANT_HOME=C:\jwsdp-1.2\apache-ant
    APPDATA=C:\Documents and Settings\Administrator\Application Data
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=NHV
    ComSpec=C:\WINNT\system32\cmd.exe
    HOMEDRIVE=C:
    HOMEPATH=\
    include=E:\Program Files\Microsoft Visual Studio\VC98\include
    JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2
    lib=E:\Program Files\Microsoft Visual Studio\VC98\lib
    LOGONSERVER=\\NHV
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Os2LibPath=C:\WINNT\system32\os2\dll;
    Path=C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\orant\jdk
    \bin;C:\jwsdp-1.2\jwsdp-shared\bin;C:\jwsdp-1.2\bin;C:\Program Files\j2sdk_nb\j2
    sdk1.4.2\bin;C:\jwsdp-1.2\apache-ant\bin;E:\Program Files\Microsoft Visual Studi
    o\Common\Tools\WinNT;E:\Program Files\Microsoft Visual Studio\Common\Tools;E:\Pr
    ogram Files\Microsoft Visual Studio\VC98\bin
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 3, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0803
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SystemDrive=C:
    SystemRoot=C:\WINNT
    TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    USERDOMAIN=NHV
    USERNAME=administrator
    USERPROFILE=C:\Documents and Settings\Administrator
    windir=C:\WINNT

    I have had the same problem as above and spent quite a few nights pulling hair out over it. Adding/removing quotes in the environment var and in the ant batch file didn't seem to work though.
    I added and echo line to spit out the antRun command and found the LOCALCLASSPATH var was stuffed.
    Rather than piss around any further I just wrote a batch file to generate an equivilant variable called JWSDP_ClassPath (for want of a better name).
    The batch file code was simply (line by line to make it easier to read):
    set JWSDP_CLASSPATH="C:\Program Files\Sun\s1studio_jdk\j2sdk1.4.1_02\lib\tools.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\server\lib\catalina-ant.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\jaxp-api.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\xsltc.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\xercesImpl.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\xalan.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\sax.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\dom.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\apache-ant\lib\optional.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\apache-ant\lib\ant.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Program Files\Sun\s1studio_jdk\j2sdk1.4.1_02\lib";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Java\jwsdp-1.3\common\lib";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Java\jwsdp-1.3\apache-ant\lib";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Java\jwsdp-1.3\server\lib";
    I then call this before the antRun command and use JWSDP_CLASSPATH rather than LOCALCLASSPATH in the ant.bat, eg:
    call set_JWSDP_CLASSPATH
    :runAnt
    java -cp %JWSDP_CLASSPATH% "-Dant.home=%ANT_HOME%" "-Djwsdp.home=%ANT_HOME%\.." %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
    This will obviously need to be customised to the install paths on the PC it is run on....
    Anyway hope this helps someone if the above more simle solutions do not.
    BJL
    PS 'carn the LIONS - 4 in a row!!

  • Building a jar in an ant build.xml file

    Hi,
    i previously used netbeans to create a jar that you could doubleclick to have it automatically started (win 2000).
    The jar also included other jars like log4j, jdom and so.
    In Netbeans, i first made my project and those jars available via the filesystem. Then i just made a new jar, added my project and the startpoints of the other jars. For instance for the jdom.jar, i selected the org and everything beneath.
    Then i generated a standard manifest file and added this line:
    Main-Class: <package>/<mainclass>
    This worked ok fine.
    Now, for my question: i'm trying out ant and want to achieve the same as above. Building my project is not a problem. I specified the dependies on other jars like this:
      <target name="compile" depends="init" description="compile">
        <!-- Compile the java code from ${src} into ${build} -->
        <javac srcdir="${src}" destdir="${build}">
          <classpath>
            <pathelement location="lib/jdom.jar"/>
            <pathelement location="lib/log4j-1.2.7.jar"/>
          </classpath>
        </javac>
      </target>Compiling doesn't produce an error.
    However i can't seem to figure out how to build a jar where the root of each jar is included in the content of my own jar so i don't have to distribute the jars seperately.
    This is what i had so far for my jar:
      <target name="dist" depends="compile" description="generate" >
        <!-- Create the distribution directory -->
        <mkdir dir="${dist}/lib"/>
        <!-- Put everything in ${build} into customer-${DSTAMP}.jar file -->
        <jar jarfile="${dist}/lib/customer-${DSTAMP}.jar"
             basedir="${build}" manifest="${conf}/manifest.mf"/>
      </target>My manifest file:
    Manifest-Version: 1.0
    Main-Class: customer/clientAny idea of how to add the content of another jar to my own jar?
    Thanks

    Hhhm. stupid me, i found a sollution to this and it was on this very forum!
    This is the relevant thread:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=281090

  • 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!

  • 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.

  • Build.xml classpath ref to be used in another build XML file

    Hi,
    I have ant build.xml with a target as
    <target name="build_project">
              <ant antfile="C:/projects/antbuild/build.xml" inheritAll="true">
                   <target name="clean" />
              </ant>
         </target>
         in report1.xml.
         This build.xml inturn have the classpath defined in it with the JARS added to the classpath.
         In the report2.xml,
         Can I use the classpathref in build.xml which is defined in report2.xml? Where report2.xml is imported in report1.xml as
         <import file="report2.xml" />
         If I can do so I don't have to create duplicate class path ref again adding all the JARS in report2.xml?
         Please clarify.
    Thanks.

    I've used quite a bit of ANT in the past, but I don't really know what to answer to your question that is in any way helpful to you. I remember that ANT has some form of build file inheritance built in, I've played around with it in years ago to try and crank out somewhat standardized build files with reusable elements. What I can recall is that I had to read a book on advanced ANT usage to be able to work it out, the online manual wasn't nearly enough.

Maybe you are looking for

  • Acrobat 8.1.2 crashes Word 2003

    I'm running Acrobat 8.1.2 on Windows XP Pro SP 2. It used to work fine (had it for over a year) scanning in documents, running OCR and exporting to Word, but suddenly and for no discernible reason Word freezes if I try to scroll past the first page o

  • Any Solutions to Error 4280?

    Has anyone found a solution to the 4280 error message when trying to burn a CD? Below are my CD Diagnostics: Microsoft Windows XP Professional Service Pack 2 (Build 2600) TOSHIBA Satellite M45 iTunes 7.0.2.16 CD Driver 2.0.6.1 CD Driver DLL 2.0.6.1 L

  • Dv7 "no speakers or headphones plugged in" error

    i just completed a series of HP updates for my HP envy dv7333cl and no longer is my sound working. i had upgraded from windows8 to 8.1 some months ago...but the sound still worked thereafter. there have been further 8.1 updates that might have come i

  • USER_TABLES report

    I am trying to create a simple SQL report on USER_TABLES but all I get is a ORA-01403: no data found error. The query is SELECT * FROM USER_TABLES where table_name like 'OCA%' Please assist. Robert

  • E5 will not allow me to upload pics

    Just attempting to get the pics I took on my recently aquired E5 onto my laptop pc. Unfortunately the comptuer does not seem to recognise any pics that are actually there. I have about 6 or so pics that I was going to share, but even though I can voe