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;
<for-each-resource-path>
<echo level="info" message=".resource.path= ${.resource.path}"/>
<if>
<available file="${.resource.path}"/>
<then>
<if>
<isfile path="${.resource.path}"/>
<then>
<copy file="${.resource.path}" tofile="${staging.dir}/${.resource.prefix}"/>
</then>
<else>
<copy todir="${staging.dir}/${.resource.prefix}">
<fileset dir="${.resource.path}" includes="${.resource.include}" excludes="${.resource.exclude}"/>
</copy>
</else>
</if>
</then>
</if>
</for-each-resource-path>
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.

Similar Messages

  • 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

  • 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

  • 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

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

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

  • 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

  • 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

  • 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

  • JDIC and ANT - BUILD FAILED

    Can anyone help me?
    I am trying to launch lotus notes from my java application. I made some changes in �ServiceManagerStub.java� to launch lotus note. Here is the changes I made.
    URL: https://jdic.dev.java.net/issues/show_bug.cgi?id=408
    Now I am trying to rebuild build.xml using �ANT�.
    I am using DOS prompt for my compilation.
    I am getting following error. Could any one help me?
    This is the command I used: �ant buildall�
    This is the error I got:
    BUILD FAILED:
    C:\..\..\build.xml:153: The following error occurred while executing this line:
    C:\..\..\build.xml:217: Execute failed: java.io.IOException: createprocess: nmake /f jdic.mak �CFG=jdic � win32 Release� error=2
    This is the command I used: �ant buildwin32�
    This is the error I got:
    BUILD FAILED:
    C:\..\..\build.xml:217: Execute failed: java.io.IOException: createprocess: nmake /f jdic.mak �CFG=jdic � win32 Release� error=2
    Thank you very much for your help.
    Sam
    Message was edited by:
    sam22

    Option 1: I tried to find out the folder where
    "nmake" is located. I could not find it. Could you
    tell me how to find out that folder?If you're on Windows, go to My Computer -> Search and give it some time :-)
    Option 2: I understood that I have to uses external
    path for this. But I am not sure how to do that. Is
    there any way I can get the steps that I have to
    follow? If you want to use the PATH environment variable, it differs slightly between Windows versions.
    I suggest, after you found out the path, first you specify the full path right there in your Ant file where you exec it, just to see if that works. Then, if you have a need to make your script a bit more portable, you can refactor so the path is in an Ant property, which you could choose to define in an external file for maximum flexibility.
    For more information about Ant, see http://ant.apache.org/manual/index.html but feel free to come back with a concrete problem.

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

  • Mxmlc ant  task with Groovy and ant builder

    Hi,
    i'm doing some Groovy scripting in the build scripts of my project and among the other things have included Flex sources compilation in there. It cares about auto-compilation of source trees so maybe someone will be interested in that:
    http://tech4web.blogspot.com/2008/12/mxmlc-ant-flex-task-in-groovy.html
    Cheers,
    Piotr

    Are you using Adobe FlexAnt?
    On this
    page
    , there is a <compiler.library-path> node that seems to
    import a bundle directory that contains locales. I believe
    <compiler.library-path> is from FlexAnt, so you would need to
    enable it if you haven't.
    Also look on the next page from the link I posted, there is
    another example on how to import bundles in an automation.

  • 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

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

  • 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

  • HTTPS (Transport Level Security)

    Hi SDNers, I have a question regarding securing a SOAP Sender scenario using HTTPS. We are on PI 7.11 and have a SOAP-PI-RFC scenario. I have used a HTTP Sender instead of a SOAP channel to configure the option of 'HTTPS without Client Authentication

  • Problem of iPad 4 charges battery with osx lastest version !

    Dear ! My iPad 4 connect to OS X lastest version. It cannot charge the battery, always appears plug in plug out! After that I open iTunes I press continue , it appears again and again. Moreover I try to use my iPhone 5s to connect ,ok! (Note: my iPho

  • 12344 & 12339 Error SRMSVC Application

    Hi there, We have just built a new file server on Windows Server 2012. We can see in the Application event log repeated 12344 and 12339 SRMSVC application errors occuring. Examples of what we're seeing include: HALFS 12344 Error SRMSVC Application 21

  • Default Data Deduplication Optimisation job with "StopWhenSystemBusy" does not work correctly

    I have configured Data Deduplication on Windows Server 2012 R2 and enabled on a volume. Data Deduplication creates a default Optimisation task called "BackgroundOptimization". I have placed files on my volume, and started the job manually.  It succee

  • Connect & transfer data from SQL Server Database

    Hi all, I would like to connect to MS SQL Server Database and transfer data from the data stored in the SQL Server Database tables into Oracle Tables. How should I go about doing this ? P.S.: I am using Oracle 11g and SQL Server 2005 Message was edit