Ant Build File Invalid

Hello,
I am trying to create a simple build.xml, but for some reason JDev will not acknowledge it as a valid ant file. Below is my ant file. How do I tell JDev its a valid ant file? I guess I should say that I am trying to integrate JDev JUnit with Cactus. Here are the steps I have tried thus far:
Right click on project -- select preferences
Click on Ant -- select project build file via browse button.
Select file listed below.
Get error: A valid Ant build file must be specified.
BTW no default Targets are populated in drop down menu.
<project name="incontainer_junit_test" default="main" basedir=".">
<target name="init">
<property environment="env" />
<property name="jdev.home" location="C:/dev/jdev"/>
</target>
<target name="main" depends="build_jar,cactify_war">
<echo> =====================================</echo>
<echo> In Container JUnit Test App Deployed</echo>
<echo> =====================================</echo>
</target>
<target name="build_jar">
<war destfile="./discussion-board.war" webxml="public_html/WEB-INF/web.xml">
<fileset dir="public_html/WEB-INF/web.xml">
<exclude name="WEB-INF/web.xml"/>
</fileset>
<lib dir="${jdev.home}/jakarta-struts/lib/*">
</lib>
<classes dir="public_html/WEB-INF/classes"/>
</war>
</target>
<target name="cactify_war">
<cactifywar srcfile="./discussion-board.war"
destfile="./cactified-discussion-board.war">
<servletredirector/>
<lib file="C:/dev/software/strutstest/lib/strutstest-2.1.0.jar"/>
</cactifywar>
</target>
</project>
Thanks so much!
etnot

I figured this resolved this issue. For some reason JDeveloper did not reconize the build.xml file as a valid ant build file until I closed it and re-started it.
Thanks!
etnot

Similar Messages

  • Build Error while Running Ant Build File in Eclipse

    I am getting the following error while running the Ant build file in eclipse ,
    Can someone help me on this ?
    Error:
    weblogic.utils.compiler.ToolFailureException: com.bea.xml.XmlException

    You need to add the JAR containing the servlet API in the external JARs for the project.
    Regards,
    Carol.

  • New to Ant Build files and Eclipse 3.1.1

    Hi,
    I'm new to Ant Build files.
    Could you let me know the process for creating an ant build file for simple "hello world" java progarm using Eclipse 3.1.1 IDE.
    Any references/links would be great.
    Cheers,
    Naveen.

    Take a look at [url http://help.eclipse.org/help30/index.jsp?topic=/org.eclipse.platform.doc.user/gettingStarted/qs-93_project_builder.htm]Creating a project builder Ant buildfile.
    Regards

  • Recompilation and ant build file

    Hi, all
    I already set precompile to false in weblogic.xml. However, when we deploy, the JSPs are recompiled again claiming that they are stale. And we are using workshop ant build file. And I found out that the timestamps of compiled classes of JSPs are elder than JSP because the ant build copies the classes first to staging directory. See the following;
    &lt;for-each-resource-path&gt;
    &lt;echo level="info" message=".resource.path= ${.resource.path}"/&gt;
    &lt;if&gt;
    &lt;available file="${.resource.path}"/&gt;
    &lt;then&gt;
    &lt;if&gt;
    &lt;isfile path="${.resource.path}"/&gt;
    &lt;then&gt;
    &lt;copy file="${.resource.path}" tofile="${staging.dir}/${.resource.prefix}"/&gt;
    &lt;/then&gt;
    &lt;else&gt;
    &lt;copy todir="${staging.dir}/${.resource.prefix}"&gt;
    &lt;fileset dir="${.resource.path}" includes="${.resource.include}" excludes="${.resource.exclude}"/&gt;
    &lt;/copy&gt;
    &lt;/else&gt;
    &lt;/if&gt;
    &lt;/then&gt;
    &lt;/if&gt;
    &lt;/for-each-resource-path&gt;
    Is there any work-around to solve this? I don't want recompilation to occur again during deployment. Thanks in advance.
    Stephen

    First of all, why exactly do you care if it recompiles all the JSPs on deployment (precompile=true), even if it doesn't need to? This isn't a user experience problem, as all the pages would be compiled by the time a user referenced the page.
    If you want to avoid compiling JSPs on deployment, then have your build process compile the JSPs, include the generated servlet classes, and exclude the JSPs the generated classes were based on.

  • Problem building WLI 10.2 applications with exported ant build files

    Hello,
    I'm trying to build a WLI application without the workshop IDE. To accomplish this I exported ant build files, workspace.xml and the workspace libraries.
    When I run the build, I get the following (part of the) stacktrace:
    [apt] Compiling 8 source files to C:\development\BuildOFOP\workspace\ContractAccountService-Web\build\classes
    [apt] warning: Annotation types without processors: [com.bea.wli.transform.XQueryTransform.SchemaValidate]
    [apt] java.io.FileNotFoundException: File not found
    [apt] at java.util.zip.ZipFile.open(Native Method)
    [apt] at java.util.zip.ZipFile.<init>(ZipFile.java:117)
    [apt] at java.util.zip.ZipFile.<init>(ZipFile.java:76)
    [apt] at com.bea.wli.bpm.bean.codegen.JarHelper.unJar(JarHelper.java:31)
    [apt] at com.bea.wli.bpm.bean.codegen.ResourceConfig.configureEjbJars(ResourceConfig.java:749)
    [apt] at com.bea.wli.bpm.bean.codegen.ResourceConfig.configureEjbJars(ResourceConfig.java:704)
    [apt] at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.generateBeans(JpdAnnotationProcessor.java:343)
    [apt] at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.generate(JpdAnnotationProcessor.java:56)
    [apt] at com.bea.wli.knex.ap.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:103)
    [apt] at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
    [apt] at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    [apt] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
    [apt] at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    [apt] at com.sun.tools.apt.main.Main.compile(Main.java:938)
    [apt] at com.sun.tools.apt.Main.processing(Main.java:95)
    [apt] at com.sun.tools.apt.Main.process(Main.java:43)
    [apt] at com.sun.tools.apt.Main.main(Main.java:34)
         [apt] Problem encountered during annotation processing;
    [apt] see stacktrace below for more information.
    [apt] java.lang.IllegalStateException: Error customizing project beans; could not locate weblogic home null
    [apt] at com.bea.wli.bpm.bean.codegen.ResourceConfig.configureEjbJars(ResourceConfig.java:769)
    [apt] at com.bea.wli.bpm.bean.codegen.ResourceConfig.configureEjbJars(ResourceConfig.java:704)
    [apt] at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.generateBeans(JpdAnnotationProcessor.java:343)
    [apt] at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.generate(JpdAnnotationProcessor.java:56)
    [apt] at com.bea.wli.knex.ap.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:103)
    [apt] at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
    [apt] at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    [apt] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
    [apt] at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    [apt] at com.sun.tools.apt.main.Main.compile(Main.java:938)
    [apt] at com.sun.tools.apt.Main.processing(Main.java:95)
    [apt] at com.sun.tools.apt.Main.process(Main.java:43)
    [apt] at com.sun.tools.apt.Main.main(Main.java:34)
    [apt] Caused by: java.io.FileNotFoundException: File not found
    [apt] at java.util.zip.ZipFile.open(Native Method)
    [apt] at java.util.zip.ZipFile.<init>(ZipFile.java:117)
    [apt] at java.util.zip.ZipFile.<init>(ZipFile.java:76)
    [apt] at com.bea.wli.bpm.bean.codegen.JarHelper.unJar(JarHelper.java:31)
    [apt] at com.bea.wli.bpm.bean.codegen.ResourceConfig.configureEjbJars(ResourceConfig.java:749)
    [apt] ... 12 more
    Anyone got any idea what might be the problem here? I did followed the BEA instructions for exporting the ant build files.
    Grtz, Jaco

    Hi
    This is a known issue addressed by CR205204
    As you said, IBM actually does not have rt.jar in its JDK - they have moved contents of rt.jar into various jars.
    IBM is not using org/apache/crimson/tree/ in their JDK at all.So the error shows up in the end of build even if it succeeds
    You may need to add crimson.jar to wlwBuild classpath, since it is not part of IBMs JDK.
    Note: the build will work even w/o crimson.jar giving a non build related IDE exception in the very end.
    Thanks
    Vimala

  • Separating ant build file

    hi,
    is it possible to separate ant build file (build.xml) insto separate smaller build files for easier reading?
    Thankx
    Merry Christmas & Happy New Year to All

    i tried but seems does not work... or i did something wrong.
    i specified as such:
    <include name="${base}/bin/**">
    is this correct?
    regards
    i can use <include name="**/bin/**"> but i do not
    like it since other folder may contain bin
    directory..Specify the 'bin' directory relative to the base
    directory - the directory contaiing the build.xml
    file unless you have specified differently using the
    'basedir' attribute of the project.
    OR
    specify the absolute path to the bin directory.
    It is usualy better to specify the path relative to
    the 'basedir'.

  • ER: editor warning for undefined properties in Ant build files

    Hi there,
    I have lots of substitutions in my Ant scripts and one common bug is to have a property that is undefined when the Ant action is expanded. For some reason Ant does not throw an error when, for example, a 'todir' value has undefined properties so these bugs do not show up immediately. The error can happen if the property is mis-spelt or its definition is not found before its use.
    E.g.
    <copy todir="${xxx}/Misc">
    <fileset dir="${cdbase}/test/${toplevel}/Misc">
    </fileset>
    </copy>
    If one of the property substitutions is not defined then the path just ends up with the ${xxx} which is pretty obviously wrong. I know Ant allows this for some reason but there is no reason for JDev not to flag these errors at edit time since it already expands the properties.
    Values of properties are picked up by JDev and it shows the property value by holding the mouse over the reference. If no definition is found then nothing is shown when the mouse is over it. It would be better if a warning was generated for those substitutions that cannot be expanded.
    This would be great when using the 'manage ant settings' while setting up the external properties for an Ant build run. As long as there are warnings, there are more property definitions or files to supply.
    Cheers,
    Simon.

    JDev 9.0.3/9.0.5 doesn't offer this, but we're working on it for the 10.X timeframe.
    Thanks,
    Rob
    Team JDev

  • Problems encountered while running ant build file....Please Help

    Hi ,
    I'm trying to create a ear using a ant build script.But encountering the following error :
    <b>[java] Exception in thread "main" java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848
    [java] at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
    [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
    [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
    [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
    [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
    [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
    [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
    [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
    [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    [java] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
    [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
    [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    [java] at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:281)
    [java] at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl.java:186)
    [java] at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl.java:169)
    [java] at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLElementMBeanDelegate.java:67)
    [java] at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLElementMBeanDelegate.java:51)
    [java] at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXMLElementMBeanImpl.java:8)
    [java] at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init>(EJBDescriptorMBeanImpl.java:94)
    [java] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:212)
    [java] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:105)
    [java] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:90)
    [java] at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:670)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:425)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:126)
    [java] at weblogic.ejbc.main(ejbc.java:29)</b>
    here is the ant file which i use to build the ear :
    <b><project name="DNi6_WebOSS" default="all" basedir=".">
         <!-- set global properties for this build -->
         <property environment="env"/>
         <property file="build.properties"/>
         <property name="base" value="."/>
         <property name="classes" value="${base}/classes"/>
         <property name="lib" value="${base}/LIB"/>
         <property name="output" value="${classes}/out"/>
         <property name="JAR" value="${output}/JAR"/>
         <property name="build" value="${output}/temp"/>
         <property name="dist" value="${output}/dist"/>
         <property name="cp" value="${lib}/weblogic.jar;${lib}/log4j-1.2.8.jar;${lib}/dom4j-1.6.1.jar;${lib}/jdom.jar;${lib}/tools.jar"/>
         <property name="destfile" value="DNi6WebOSSBean.jar"/>
         <property name="exclude" value=""/>
         <property name="class_path" value="."/>
         <property name="include" value="META-INF/*.xml com/telia/dni6/util/*.class com/telia/dni6/bean/*.class"/>
         <target name="all" depends="1-clean,2-init,3-jar_ejb,4-ejbc,5-final_copy "/>
         <target name="2-init">
              <!-- Create the time stamp -->
              <tstamp/>
              <!-- Create the build directory structure used by compile
    and copy the deployment descriptors into it-->
              <mkdir dir="${build}"/>
              <mkdir dir="${JAR}"/>
              <mkdir dir="${build}/META-INF"/>
              <mkdir dir="${dist}"/>
              <mkdir dir="${dist}"/>
              <copy todir="${build}/">
                   <fileset dir="${classes}/">
                        <include name="**/*com/telia/dni6/util/*"/>
                        <include name="**/*com/telia/dni6/bean/*"/>
                   </fileset>
              </copy>
              <copy todir="${build}/META-INF">
                   <fileset dir="${base}/">
                        <include name="ejb-jar.xml"/>
                        <include name="Manifest.mf"/>
                        <include name="weblogic-ejb-jar.xml"/>
                   </fileset>
              </copy>
         </target>
         <!-- Make a standard ejb jar file, including XML deployment descriptors -->
         <target name="3-jar_ejb" depends="2-init">
              <jar destfile="${dist}/std_${destfile}" excludes="${exclude}" includes="${include}" basedir="${build}" manifest="${build}/META-INF/Manifest.mf"/>
         </target>
         <!-- Run ejbc to create the deployable jar file -->
         <target name="4-ejbc" depends="3-jar_ejb">
         <java classname="weblogic.ejbc" fork="yes" jvm="D:\jdk1.5.0_06\bin\java">
              <!-- <java classname="weblogic.ejbc" fork="yes" jvm="C:\j2sdk1.4.1_07\bin\java"> -->
                   <arg line="-compiler javac ${dist}/std_${destfile} ${dist}/${destfile}"/>
                   <classpath>
                        <pathelement path="${cp}"/>
                   </classpath>
              </java>
         </target>
         <target name="5-final_copy" depends="4-ejbc">
              <copy todir="${JAR}/">
                   <fileset dir="${dist}">
                        <include name="${destfile}"/>
                   </fileset>
              </copy>
         </target>
         <target name="1-clean">
              <delete dir="${build}"/>
              <delete dir="${dist}"/>
              <delete dir="${JAR}"/>
              <delete dir="ejbcgen"/>
              <delete dir="${output}"/>
         </target>
    </project></b>
    and these are the weblogic-ejb-jar and ejb-jar.xml used :
    weblogic-ejb-jar.xml :
    <b><?xml version="1.0" encoding="UTF-8"?>
    <weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
    <weblogic-ejb-jar>
         <weblogic-enterprise-bean>
              <ejb-name>WebOSSInterfaceBean</ejb-name>
              <message-driven-descriptor>
                   <pool>
                        <max-beans-in-free-pool>5</max-beans-in-free-pool>
                        <initial-beans-in-free-pool>5</initial-beans-in-free-pool>
                   </pool>
                   <destination-jndi-name>DNi6RecdTopic</destination-jndi-name>
                   <jms-polling-interval-seconds>1</jms-polling-interval-seconds>
              </message-driven-descriptor>
              <jndi-name>WebOSSInterfaceBean</jndi-name>
         </weblogic-enterprise-bean>
    </weblogic-ejb-jar></b>
    ejb-jar.xml:
    <b><?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <ejb-jar>
         <enterprise-beans>
              <message-driven>
                   <ejb-name>WebOSSInterfaceBean</ejb-name>
                   <ejb-class>com.telia.dni6.bean.WebOSSInterfaceBean</ejb-class>
                   <transaction-type>Container</transaction-type>
                   <message-driven-destination>
                        <destination-type>javax.jms.Topic</destination-type>
                   </message-driven-destination>
              </message-driven>
         </enterprise-beans>
    </ejb-jar></b>
    Please help!!!
    Thanks
    Smita.

    Hi Rob,
    I included the weblogic.jar of weblogic 9.0 in the lib and the classpath.And changed the weblogic.ejbc to weblogic.appc as weblogic.ejbc is deprecated.
    But again i'm getting this error while running the ant script.
    Part of the ant script where is error is encountered
    <!-- Run ejbc to create the deployable jar file -->
         <target name="4-ejbc" depends="3-jar_ejb">
         <java classname="weblogic.appc" fork="true" jvm="D:\jdk1.5.0_06\bin\java">
              <arg line="-compiler javac ${dist}/std_${destfile} ${dist}/${destfile}"/>
                   <classpath>
                        <pathelement path="${cp}"/>
                   </classpath>
              </java>
         </target>
    And Error is :
    [java] Usage: java weblogic.appc [options] <ear, jar, war or rar file or directory>
    [java] where options include:
    [java] -help Print the standard usage message.
    [java] -version Print version information.
    [java] -output <file> Specifies an alternate output archive or
    [java] directory. If not set, output will be
    [java] placed in the source archive or directory.
    [java] -plan <file> Specifies an optional deployment plan.
    [java] -forceGeneration Force generation of EJB and JSP classes.
    [java] Without this flag the classes may not be
    [java] regenerated if it is determined to be
    [java] unnecessary.
    [java] -quiet Turns off output except for errors
    [java] -lineNumbers Add JSP line numbers to generated class
    [java] files to aid in debugging.
    [java] -library <file> Comma-separated list of libraries. Each
    [java] library may optionally set its name and
    [java] versions, if not already set in its
    [java] manifest, using the following syntax: <file>
    [java] [@name=<string>@libspecver=<version>
    [java] @libimplver=<version|string>]
    [java] -librarydir <dir> Registers all files in specified directory
    [java] as libraries.
    [java] -keepgenerated Keep the generated .java files.
    [java] -verbose Compile with verbose output.
    [java] -classpath <path> Classpath to use.
    [java] -source <source> Source version.
    [java] -advanced Print advanced usage options.
    [java] <Aug 10, 2006 12:45:07 PM IST> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile your application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
    [java] [J2EE:160128]ERROR: Incorrect appc command-line. Too many arguments were given. The command-line only takes a single argument, the source file, in addition to the supported options.
    [java] Java Result: 1
    I'm not sure how to proceed.Please suggest
    Thanks
    Smita

  • Server ant build file

    New to ODi, looking for some advice.
    I can run an ant script - but have to specify build file on local machine i.e c:\application\config\build.xml
    Is there anyay to specify a file on a server maybe server:/config/build.xml or use a logical file technology based data source?
    Many Thanks

    does someone have idea about my issues?
    below are my telnet task definition in ant and output message after runing the task, but i can not see any result from the command "mkdir".
    <project name="XXX" basedir="." default="telnet">
    <target name="telnet" depends="" description="" >
         <telnet userid="XXX" password="XXX" server="missrv" >
              <write string="cd /home/hfan" />
              <write string="mkdir test"/>     
         </telnet>
    </target>
    <project>
    Henry

  • Ant build file copied to classes

    hi
    If I select in the New Galery, General > Ant > Empty Buildfile, I can create an Ant Buildfile build.xml.
    Because it is in the project folder on my file system, by default it ends up in the Resources node of the Project in the Applications Navigator.
    If I rebuild the project this build.xml file gets copied to the classes folder.
    questions
    (1) Why is it copied to the classes folder?
    (2) How can I prevent it from being copied to the classes folder?
    (using JDeveloper 10.1.3.1.0.3984)
    many thanks
    Jan Vervecken

    If you exclude it from the project content it disappears in JDeveloper indeed...
    I however, do know now why your build.xml is copied to the classes folder. If you look in the 'compiler' section of your project properties you see a list of file types which are copied to the output directory. This includes all *.xml files. If you have no xml files in your project that you need in your classes directory you could remove the .xml from this list.
    If you do need some xml-files in your output-directory then you probably have to use ant to build your project ;-)
    Good luck,
    Pieter

  • How to add control statement in Ant build file

    I don't know where to publish this question.
    if here is not the right place, can you tell me?
    I want to use Ant to run a java program.
    but the program can only deal with one file each time.
    So, I want to get all files' name and run it in a "while" or "for" statement.
    Thanks

         JarOutputStream jos = // ...
         jos.putNextEntry(new JarEntry("directory/"));
         jos.closeEntry();
         jos.finish();
         jos.close();on the command line:
    jar -tf <your_jar_file.jar>

  • Ant build file

    Hi all
    i begin to use Ant to compile my application.I want to compile and put the classes file in two different directory.How i can do it?
         <javac destdir="${classes.dir}" includeantruntime="false" debug="true" encoding="Windows-1252" nowarn="true" fork="true" memoryinitialsize="250m" memorymaximumsize="760m">
                        <classpath>
                             <fileset refid="external-lib" />
                             <dirset dir="${dpe_library.dir}/target/classes">
                                  <include name="**"/>
                             </dirset>
                        </classpath>
                        <src path="${src.dir}" />
                   </javac>I want 2 destination dir but i don't want to call 2 javac command

    You mean have all the class files in both directories? Run the compile task once, then use the copy task to copy the output to another directory. Simples. No, I won't give you "examples"

  • Exported ANT build hangs on clean target

    I've exported an ant build file. When I try to run this ANT build file from the command line, it stalls on a clean target in the portal project.
    The custom controls project compiles fine, and the same with data project (which part of the standard portal setup), but when the real portal projects starts to build it hangs with the following trace:
    [wlwBuild] [Build] Application Build Status: tk_portal
    [wlwBuild] [Build] BUILD STARTED
    [wlwBuild] [Build] build:
    [wlwBuild] [Build] clean:
    It's a rather large portal project.
    Anyone experienced something similar?
    Trond Andersen, Invenia AS, +4798290811

    Most likely you're seeing a Windows file sharing violation issue. It's likely that the other process holding the file you're trying to delete is WebLogic itself. You could try stopping the server before you do the command-line build.
    It's handy to have a tool like "ProcessExplorer" from SysInternals for situations like this. You can use it to determine which processes have a file handle open. You can use SysInternal's "FileMon" tool to see what file handles are being referenced in real-time.

  • Ant build problems

    I am having problems with the build scripts
    I can compile and when I tried to create a ear file using ant I am getting the following error.
    I can directly create ear file by manually exporting to ear file from the export. I posted this on the newsgroup also
    C:\beabeta\user_projects\w4WP_workspaces\sample\sample>ant stage
    Buildfile: build.xml
    init:
    stage:
    [delete] Deleting directory C:\beabeta\user_projects\w4WP_workspaces\sample\s
    ample\.staging
    [mkdir] Created dir: C:\beabeta\user_projects\w4WP_workspaces\sample\sample\
    .staging
    [copy] Copying 4 files to C:\beabeta\user_projects\w4WP_workspaces\sample\s
    ample\.staging
    BUILD FAILED
    C:\beabeta\user_projects\w4WP_workspaces\sample\sample\build.xml:129: The follow
    ing error occurred while executing this line:
    jar:file:/C:/beabeta/WEBLOG%7e1/workshop/lib/wlw-antlib.jar!/com/bea/wlw/antlib/
    antlib.xml:97: The following error occurred while executing this line:
    C:\beabeta\user_projects\w4WP_workspaces\sample\sample\build.xml:135: The follow
    ing error occurred while executing this line:
    Target `stage.to.ear' does not exist in this project.

    Build is working now
    When we are generating the ant build files for each project we have to choose the Worshop Ant Script instead of ant build files.
    It is not intializing the workspace directory also

  • What is the differences between Ant build jar and eclipse export jar ?

    I have tried the eclipse export method to generate a jar file, however, it doesn't work with my server. But when I write a ant build file to create jar file. It works!!
    Does any buddies know why?

    Difference betwen JAR AND WAR
    .jar files: These files are with the .jar extension. The .jar files contain the libraries, resources and accessories files like property files.
    .war files: These files are with the .war extension. The war file contains the web application that can be deployed on the any servlet/jsp container. The .war file contains jsp, html, javascript and other files for necessary for the development of web applications.
    Source:
    http://forum.java.sun.com/thread.jspa?threadID=485823&messageID=2273976
    The main difference between a JAR and a WAR is that a JAR is not really a single purpose format, while a WAR is. With a JAR file, you can package lots of different things. Usually you package up Java classes, but you could put pretty much anything into a JAR file, and you can create JARs that have whatever files and directory formats you want. For instance, Oracle (at least in 8.1.x) actually uses JAR files to distribute the Oracle software on the install CDs, and IBM uses them to distribute an installable version of the documentation for WebSphere. Technically you can put JSP pages, HTML pages, servlet classes, etc. in a JAR, but you generally don't -- you use a WAR.
    WAR files are JAR files with a specific format. This format is defined in the servlet spec (which you can look at on the java.sun.com site). Essentially, the WAR file is a standard format for web applications that has specific directories and specific files. This includes a WEB-INF directory, a WEB-INF/web.xml file used to describe the application, a WEB-INF/lib directory for JAR files used by the application, and a WEB-INF/classes directory for class files that aren't distributed in a JAR. You would put the pages (JSPs and HTML) in the WAR as well. Then, you can distribute your application as one file, instead of as a collection of images, HTML pages, and Java classes.
    Source:
    http://www.theserverside.com/discussions/thread.tss?thread_id=10905
    Message was edited by:
    lochdsmile

Maybe you are looking for

  • HT4722 how many computers can i install final cut pro on

    I need Final Cut Pro X for work at my church.  If I buy on the app store, can I load on all three computers at the church, or do I have to buy a seperate copy for each computer?

  • Error while downloading Jar/Jad by air

    Hi All, I am using netbeans as my IDE while compiling I m getting Jar and Jad file only I have uploaded both the files to VPN server now I want to download Jar/Jad file yesterday it downloaded fine on worked well on Blackberry bold device but from to

  • Getting error in RWB

    Scenario:file to file Source Structure: 2 fields( Fname & Lname) Target Structure :1 field(Full_name) i m getting below error in RWB when i start sender communication channel. error"Conversion of file content to XML failed at position 0: java.lang.Ex

  • Configuring UTL_MAIL,  utl_smtp in Oracle

    Hi, Can anyone help me out in how to configure the UTL_MAIL, utl_smtp in my system. what are the steps that i should fellow. My previlages for connecting my oracle are just normal user only. So, can anyone help me out in how to do it like - step by s

  • Customizing the chart color in BO Explorer

    Hi Experts, Is it possible for us to choose the color of the measure by ourselves in BO Explorer For exmple, when you choose mutli-measure, system will show different color It depends on the sequence of the measure which does not meet our requirement