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>

Similar Messages

  • How to add more disk space into /   root file system

    Hi All,
    Linux  2.6.18-128
    can anyone please let us know how to add more disk space into "/" root file system.
    i have added new hard disk with space of 20GB, 
    [root@rac2 shm]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hda1             965M  767M  149M  84% /
    /dev/hda7             1.9G  234M  1.6G  13% /var
    /dev/hda6             2.9G   69M  2.7G   3% /tmp
    /dev/hda3             7.6G  4.2G  3.0G  59% /usr
    /dev/hda2              18G   12G  4.8G  71% /u01
    LABLE=/               2.0G     0  2.0G   0% /dev/shm
    /dev/hdb2             8.9G  149M  8.3G   2% /vm
    [root@rac2 shm]#

    Dude! wrote:
    I would actually question whether or not more disks increase the risk of a disk failure. One disk can break as likely as one of two of more disks.
    Simple stats.  Buying 2 lottery tickets instead of one, gives you 2 chances to win the lottery prize. Not 1. Even though the odds of winning per ticket remains unchanged.
    2 disks buy you 2 tickets in The-Drive-Failure lottery.
    Back in the 90's, BT (British Telecom) had a 80+ node OPS cluster build with Pyramid MPP hardware. They had a dedicated store of scsi disks for replacing failed disks - as there were disk failure fairly often due to the number of disks. (a Pryamid MPP chassis looked like a Xmas tree with all the scsi drive LEDs, and BT had several)
    In my experience - one should rather expect a drive failure sooner, than later. And have some kind of contingency plan in place to recover from the failure.
    The use of symbolic links instead of striping the filesystem protects from the complete loss of the enchilada if a volume member fails, but it does not reduce the risk of loosing data.
    I would rather buy a single ticket for the drive failure lottery for a root drive, than 2 tickets in this case. And using symbolic links to "offload" non-critical files to the 2nd drive means that its lottery ticket prize is not a non-bootable server due to a toasted root drive.

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

  • 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

  • How to add new fields to the DME file in F110

    Hi,
    We have a requirement add new fields to the file that is used in  F110.
    .I did go in to DMEE transaction but I hae no idea how to add new fileds to the existing file.
    Can anybody please help me in resolving the issue.
    Thanks
    Venkat
    Edited by: Venkat R on Jun 8, 2009 8:45 AM

    Hi,
    There is no function module for that, We have created our own function module and attached to that field.
    Refer the below code. This will fetch the document number.
    DATA: lwa_item   TYPE dmee_paym_if_type,
            l_fpayp   TYPE fpayp,
            l_fpayhx TYPE fpayhx,
            first_flag TYPE c,
            lv_lifnr   TYPE lifnr,
            voucher_id TYPE string,
            voucher TYPE string,
            invoice_id TYPE belnr_d,
            voucher_len1 TYPE i,
            voucher_len TYPE i.
      TYPES:
      BEGIN OF lt_regup,
            xblnr TYPE xblnr1,
            belnr TYPE belnr_d,
      END OF lt_regup.
      DATA: lt_regup TYPE STANDARD TABLE OF regup,
            lv_regup TYPE regup.
    Hope this helps.
    Raja.A
    Edited by: Raja.A on Feb 16, 2011 7:17 PM

  • How to add norwegian language to my ipa-file in Adobe Flash Professional and Settings for AIR

    Hi,
    How to add Norwegian languages to my ipa-file in Adobe Flash Professional and Settings for AIR?
    The Norwegian users get my apps in english instead of Norweigan. Desperate for help!
    Regards Ylva

    Sorry but you will not get help here for that problem. This forum is about AIR Help, an online help format produced using AIR, it is not about AIR itself.
    I'll see if I can move it.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

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

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

  • How to add event handler for outlook build in control through programmatically

    Hi,<o:p></o:p>
         There is requirement in my plug in where i need to intercept outlook native attach file method.If user attach more than specified
    exchange limit , i need to perform some operatoin. I found  that there is way to add "Onaction" method for built in control  like this " <command idMso="AttachFile" onAction="CatchExchangeWarning"/> ".
    I have to do the same thing via programmatically .I need to attach this event handler through programmatically since my add is not developed by xml file.
    <o:p>Thanks</o:p>

    Hello,
    It looks like you are interested in the
    BeforeAttachmentAdd event of Outlook items. It is fired before an attachment is added to an instance of the parent object. So, you can analyze the attachment object passed as a parameter and set then Cancel argument - set
    it to true to cancel the operation; otherwise, set to false to allow the Attachment to
    be added.
    Also the Outlook object model provides the
    AttachmentAdd event for Outlook items. It is fired when an attachment has been added to an instance of the parent object. You can also analyze the attachment object passed as a parameter to the event handler. You will not be able to
    cancel the action in that case.

  • How to add control buttons using Java thorugh serial port?

    Hi everyone,
    I'm new to this forum.
    I have some questions on Java and serial port.
    I want to write a Java program to control my robot, through serial port. For example, when I click "Forward", the robot will go forward, and so on.
    Now I already have the buttons, so next I would like to ask how to interface the buttons with the serial port.
    I already have all the javax.comm things installed.
    below is the code for my buttons:
    import java.awt.*;
    public class ControlButtons extends java.applet.Applet
         GridLayout myLayout = new GridLayout(3, 3);
         Button button1 = new Button(" ");
         Button buttonForward = new Button("Forward");
         Button button2 = new Button(" ");
         Button buttonLeft = new Button("Left");
         Button buttonStop = new Button("Stop");
         Button buttonRight = new Button("Right");
         Button button3 = new Button(" ");
         Button buttonReverse = new Button("Reverse");
         Button button4 = new Button(" ");
         public void init()
              setLayout(myLayout);
              add(button1);
              button1.setVisible(false);
              add(buttonForward);
              add(button2);
              button2.setVisible(false);
              add(buttonLeft);
              add(buttonStop);
              add(buttonRight);
              add(button3);
              button3.setVisible(false);
              add(buttonReverse);
              add(button4);
              button4.setVisible(false);
    }Now I would like to ask for direction on how to add in the code to make it work with serial port.
    Thanks

    The plan is, I have a robot device connected to the serial port.We don't know anything about that device. We don't know how to control it. We don't know what you have to write to the device to make it do anything. Only you know what.
    For example, when I click "Forward", the robot will go forward, and so on.So what do you have to send to make it do that? and same for the other buttons.
    Next, you need to work out from the javax.comm API how to open the serial port and send data to it. This is a standard exercise in learning a new API. You must be able to do this. Again and again.
    But the program is useless. The button can be clicked, but didn't do anything.Because (a) they have no ActionListeners and (b) there is no code to send anything to the serial port.
    You have to write all that. So you also have to look up ActionListener in the Java API and how to attach it to a button. You can do that. We all do that kind of thing every day.
    So next I would like to ask how to interface the buttons with the serial port.You've been asking nothing else since you started, but you've also only done enough investigation of your own to create the buttons. That's only the start.
    The problem is what method and command should I use to make those buttons actually functioning.See above. You've been told part of it several times. The rest only you can answer, because it's your robot.

  • How to add a state to an existing state machine?

    Hello,
    I have a state machine with 5 states. See attached vi (LabVIEW 7.1).
    Now I want to add another state ("wait") between state Druck Aufbau and Druck Abbau. How can I do that?
    I tried to add a state to the enum on the left and then I noticed that I would have to modify every enum in the vi and the case structure as well.
    Is there an easier way?
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Attachments:
    Hysterese_Disc.vi ‏75 KB

    You should replace all enums of the state machine with your type def'ed one. Thus, every change you make will be propagated throughout your state machine. When you need to add or delete states, change the typ def (so the Enum.ctl), and then all the enums will change. Thats the very reason of type definitions. In future, always use type defed enums.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • How to add water mark in already build report

    hi experts............
    im fresher , i need to add water mark in already build report..please help me to do this.......
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on May 20, 2011 9:25 AM

    I'm not sure the is a solution in your version. Duncan Mills blogged about a solution here https://blogs.oracle.com/groundside/entry/placeholder_watermarks_with_adf_11 but it's for a later version.
    However it might help you getting started.
    Timo

  • 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

Maybe you are looking for