How to create a build.xml file ??

Hi there,
I am learning j2ee at the moment. I have been throught the tutorial and got everything working (finally). however, now that I have started writing my own code, I am stuck with writing the build.xml file (as this is not covered in the tutorial, it is just provided). Does anyone know a good link that will give me step by step instructions on how to create my own build.xml file for my application.
thanks

You need to learn ant. Go here:
http://jakarta.apache.org/ant/
I also recommend "Java Development with Ant" by Hatcher and Loughran, just published.

Similar Messages

  • How to automatically generate build.xml file in eclipse?

    Hello every body,
    I am learning about ANT. e.g I have writen a very simple programme which displays output "no worries". But how can I compile it with ANT and how can I generate build.xml file using eclipse.

    This is not really a Java issue but rather is an Eclipse issue. You may wish to look for their support sites or forums.

  • How to create a Plan.xml file for modification

    Hi,
    I am trying to create a plan.xml file. Is there any way, I can generate a plan.xml file.
    I see a tab in Admin Console in deployments and plan. but there is nothing there. what it has to do with plan.
    Thanks
    regards
    Amir riaz

    You can find the steps here.
    http://weblogic-wonders.com/weblogic/2009/11/29/plan-xml-usage-for-message-driven-bean/
    http://weblogic-wonders.com/weblogic/2009/12/16/invalidation-interval-secs/

  • How to create both a XML file and a check

    Hi,
    I'm currently implementing the use of XML files for payments in the USA and I run into a problem for check payments. We need to generate both an XML file, which needs to be sent to the bank for validation and the checks, which are printed by the finance department and then sent to the vendors. These checks are only paid when they match the XML file.
    We are using payment medium workbench for generating the XML file (DME structure) and on running F110 I get a nice XML file, however this prevents me from entering the printing form for check in the printout tab of F110.
    I tried to add the check in transaction OBPM1, but I cannot get it to work.
    Anny suggestions on how I can continue?
    Thanks in advance
    Peter Kauwenberg

    Hi Kauwenberg,
    You can add multiple payment in DMEE file but for that you have to change in DME properties where if you want sort according to payment method or dont want to club the different method in one line then add on more filed RZAWE from table FPAYH.
    I have used this options to one of my client where they want to add check payment with other payment method.
    Kindly try this and let me know in case of any issue.
    Regards,
    Dattatraya Biradar

  • How do I create a sidecar.xml file?

    Hello- I have used Johannes' very rad sidecar generator and adobe's instructions on how to upload the file, but can't seem to get it to work. I have a feeling it's because they both start with an assumption:
    "Use a text editor or an XML editor to create a sidecar.xml file..."
    "Write the lines into a sidecar.xml file"
    How do I create the original sidecar.xml file, in which to paste the metadata generated by Johannes' tool?
    http://projects.nordsueddesign.de/sidecarxml/#
    http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60606c7754128c7a9c00e-7f ff.html

    You use the web interface of xmlsidecar generator made by Johannes Henseler and the push the button there "generate". Copy paste that into a plain text file and then change tex extension from txt to xml. That's how you do a sidecar.xml the easy way.
    Afterwards, yo've got to import "multiple files" (or "many files"... my DPS is a Spanish one) from Folio Builder.
    If the folder are structured properly, folio builder will start swallowing the data of sidecar and uploading the articles.
    Right now, while posting this, my pc is doing that with about one hundred articles. As happy and busy as a beaver in heat
    Gustavo (Posting from Madrid)

  • Unable to create build.xml file

    I wrote build.xml file to create build using ANT in eclipse but it failed. The reason is value for "location" attribute (see below) is wrong and I don't know how to fix it. My eclipse workspace is in D:/eclipse/workspace...............but the eclipse software is in C:/eclipse....by inspection I can see that in the plugins directory in c:/eclipse there is paskage/folder named org.eclipse.jdt.core_3.0.0 which has a jar file named JDTCompilerAdapter.jar. Does the "location" attribute need to refer to this location ? If yes then how should I specify the path as I think hardcoding isn't a solution. I mean I obviously can't say
    location="C:\eclipse\plugins\org.eclipse.jdt.core_3.0.0\org.eclipse.jdt.core_3.0.0.JDTCompilerAdapter"/>
    Please advise !!
    <?xml ...>
    <project name="game" default="Main Build" basedir=".">
         <property name="bin" location="bin"/>
         <property name="src" location="src"/>
         <property name="jardir" location="${bin}/lib"/>
         <property name="jarfile" location="${jardir}/game.jar"/>
         <property name="build.compiler"
              location="org.eclipse.jdt.core_3.0.0.JDTCompilerAdapter"/>

    I'm not exactly sure what you're doing here, but I don't think any of that stuff belongs in the Ant build.xml. That should be generic, something you can run either inside or outside Eclipse.
    The compiler that's used can be specified in Eclipse when you set up paths for Ant. That doesn't belong inside the build.xml itself.

  • How to set SAXParser at command-line interface to create a large XML file

    Hi,
    I am trying to create a large XML file (more than 50 MB) by selecting from Oracle database but failed because of "out of memory" error. According to "Oracle XML Developer Guide", we should use SAXParser to parsing a large XML file. But there is no example to show how to set SAXParser at command-line
    Following is what I use to get xml files. It works only when the file is small.
    java OracleXML getXML -DateFormat -withDTD -rowsetTag PO_HDR -conn
    "jdbc:oracle:oci8:@server_name" -user "ID/password" "select * from table_name"
    When I set SAXParser at the way below,
    java oracle.xml.parser.v2.SAXParser OracleXML getXML -DateFormat -withDTD -rowsetTag PO_HDR -conn
    "jdbc:oracle:oci8:@server_name" -user "ID/password" "select * from table_name"
    it failed with the error message: "In class oracle.xml.parser.v2.SAXParser: void main(String argv[]) is not defined"
    Does anyone know how to solve the problem? I'll be appreciated very much for your help.
    Yi

    here are my ideas.
    register the xml schema.
    using xmldom, generate the desired xml output and return as xmltype.
    then you can use something like this to check.
    declare
    xmldoc xmltype ;
    begin
       -- populate xmldoc from you xmldom function
       -- validate against XML schema
       xmldoc.isSchemaValid(schema_url, root_element);
       if xmldoc.isSchemaValid = 1 then
            --valid schema
       else
            --invalid
       end if;
    end

  • How to run JDev's generated build.xml file(BPEL project) from command win.?

    hi all
    When I execute build.xml file of simple BPEL project from JDev it runs properly. But when I try to execute it from normal command window It gives me an following error.
    ...........droping jar file xyz.jar from path as i doesn't exists.
    While all jar files are exist there.But Ant drops it from Classpath variable.
    So JDev sets some environment before executing such build.xml file.Like {oracle.home} variable u need to set while runnig build.xml from command window.
    Any suggestions...???
    /mishit

    you cant run a .war file from command prompt
    .war files should be executed in a server
    how to execute a single servlet class
    do you mean to run the servlet or compile the servlet?
    any way you need a server and if you are a beginner Apache tocat will be the best server to start with you can down load it from
    http://tomcat.apache.org/

  • Netbeans build.xml file: is it created automatically or do we create?

    Hi all,
    I am using Net beans IDE 6.0. For projects (with existing code, new application project, etc). Should we create build.xml file or will it be created automatically. Many things like rmi compilation, running different run-time configurations, etc depends on that file. Please do help.
    (a build.xml file is created in project folder.)
    Thanx

    don't cross post:
    http://forum.java.sun.com/thread.jspa?messageID=10107245
    it's rude.
    you create it.
    %

  • Netbeans build.xml file is automatically created or should we create?

    Hi all,
    I am using Net beans IDE 6.0. For projects (with existing code, new application project, etc). Should we create build.xml file or will it be created automatically. Many things like rmi compilation, running different run-time configurations, etc depends on that file. Please do help.
    (a build.xml file is created in project folder.)
    Thanx

    don't cross post:
    http://forum.java.sun.com/thread.jspa?threadID=5265563&messageID=10107226#10107226
    it's rude.
    %

  • Converting build.cmd to Ant build.xml file

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

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

  • How to generate ojdeploy-build.xml?

    Hi Experts,
    I has been googling and surfing web a lot but unfortunatelly haven't found any exact step-by-step instructions about integrating ADF appl with ANT.
    I believe my case is very common:
    ADF Application with:
    - Model project (based on ADF BC)
    - viewcontroller project, with dependency on model project.
    I want to get EAR file using ojdeploy.
    I found only how to generate build.xml for viewcontroller project' WAR, but I saw posts which refer ojdeploy-build.xml.
    How can I generate ojdeploy-build.xml file?
    Or it should be created manually?
    Where can I get a list of parameters for <ojdeploy-build>.<deploy> task?
    Thank you!

    Hi,
    if you have to generate simple XML's like this it is easy to do that using JDOM.
    I have used it and it is really easy to use, very simple to learn.
    for more information: www.jdom.org
    Good luck,
    Sven

  • Build.xml file

    Hi
    i am building the project by using build.xml file while running build.xml file in console first line i am getting buildfile directory is xyz/abc/build.xml
    how to print this one dinamically
    please give me clear clarification

    how to print this one dinamicallyPlease elaborate your exact requirement?
    -RMishra

  • Problem in creating a build.xml for weblogic portal application

    Team ,
    I am facing problem in creating the build.xml using weblogic.BuildXMLGEN tool .
    a) Below is the structure of my portal application
    SrcCode
    --- .metadata (eclipse plugins folder)
    --- B2BApp ( Ear Content)
    --- b2bPortal ( portal related file(controllers,jsp)
    --- b2bsrc     (java src)
    b) Now I executed below utility to generate the build.xml "
    java weblogic.BuildXMLGen -projectName B2BApp -username weblogic -file build.xml -password welcome1 F:\srcCode"
    c) Based on the above step , build.xml got generated .
    d) when I execute "ant compile" target from the command prompt , I see the below exception
    ant compile
    Buildfile: build.xml
    compile:
    +[wlcompile] [JAM] Warning: failed to resolve class AbstractJspBacking+
    +[wlcompile] [JAM] Error: unexpected exception thrown:+
    +[wlcompile] com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in F:\b2bNew\b2bPortal\src\portlets\b2b\dmr\Picker\PickerController.java at line 58.+
    e) I suspect , the problem is bcoz of classpath issues , as I generated build.xml donot have the references to dependent lib's.As build.xml looks like below :
    +<target name="compile" description="Only compiles B2BApp application, no appc">+
    +<wlcompile srcdir="${src.dir}" destdir="${dest.dir}">+
    +<!-- These referenced libraries were not found -->+
    +<!-- <library file="p13n-core-web-lib" /> -->+
    +<!-- <library file="jersey-web-lib" /> -->+
    +.....+
    +....+
    Please help me to reslove these issues .
    PS: I able to deploy the application using 10.3.2 weblogic workshop ( i.e inbuilt eclipse )

    i JaySen ,
    thanks for your response. As mentioned we added all the necessary library within the -librarydir but still we see the same error :
    +[JAM] Error: unexpected exception thrown:+
    com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in F:\b2bNew\b2bPortal\src\portlets\typeAhead\TypeAheadController.java at line 70.  Most likely, an annotation is declared whose type has not been imported.
    at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.getAnnotationTypeFor(JavadocTigerDelegateImpl_150.java:410)
    at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.extractAnnotations(JavadocTigerDelegateImpl_150.java:176)
    at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.extractAnnotations(JavadocTigerDelegateImpl_150.java:152)
    at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.addAnnotations(JavadocClassBuilder.java:404)
    at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.populate(JavadocClassBuilder.java:359)
    ===================
    a) this is a upgrade project [ upgrading from wlp 8.1.4 to 10.3.2 ]
    i.e we are using weblogic portal 10.3.2 version.
    b) Searched some sites/forums regarding the above error, and it says something related to "jwsc" ant task [ i.e while compiling a webservice(JWS) ], but we see this error while compiling a normal controller(jpf) class :(
    c) we are using "ant compile" target which internally calls wlcompile task , while executing wlcompile this error is thrown .
    Help Appreciated
    Thx,
    Sarat

  • How to Read and Generate XML file from java code.

    hi guys,
    how to read the xml file (Condition :we know only DTD or Shema only).
    How to Generate the new xml file ?(using Shema )
    And one more how directly Generate the xml from DB?
    Pleas with code or any URL

    Using XMLbeans you can generate Java objects from an XSD schema (perhaps DTDs aswell)
    Then you can create an instance of the Document object and ask it to write itself.
    This will create an XML document complient to the schema.
    XMLBeans generates a "type" safe DOM where you can only ever have a structure compilent to you schema.
    matfud

Maybe you are looking for

  • Which field stores the Cancelled Sales Order Status

    Hi,       I am checking for duplicate PO No in sales Order header VBAK. The criteria is Slaes Order must not be a cancelled one. I am searching VBAK to find the status field to determine the whether its cancelled or not. Thank U for Ur time. Cheers,

  • Possible BUG: duplicating a shape layer only duplicates previously selected points - PS CS6

    Unless PS has been updated to make this a feature, i may have found a bug. Now (in CS6 vs. previous versions) when you duplicate a shape layer, if you had previously selected specific points of the shape (for example with the direct selection tool) o

  • Totally hosed an upgrade, can I recover?

    So... starting with an Arch system that had not been updated in quite a while, I did a pacman -Syu (hey, why not?)  and took a long list of upgrades.  After dealing with the surprisingly minimal conf file skew, I tried to reboot.  But... it seems tha

  • Statements printing out of order

    I have to possibly simple questions .... 1. I cannot print all of my customer aging statements for a group code with freezing the client and having to shutdown the client app. 2. if I print small numbers of cardcodes at a time i can get them to print

  • Transfer Large Amounts of Data From External to External Drives

    I have 4 each 1.5TB USB 2.0 drives that contain music & movies for use in itunes or apple tv. I purchased two 3TB Thunderbolt drives and would like to transfer the data from the 4 each 1.5TB drives to the new 3TB Thunderbolt drives How Do I Do This?