Build file

Hi...
How can I use a ANT script tu build my project? I already
have the "build.xml" file, but I dont know how to use it in my
project.
I was trying to do it looking at project-properties-builders.
I've created a new builder selecting the build.xml file that I have
in the field location, and the other values I haven't changed.
However I've got the following error:
Errors during build.
Errors running builder "Integrated External Tool Builder" on
project my_project
Exception occurred executing command line.
CreateProcess: C:\workspace\my_project\flex\build.xml error
193
I belive I might be doing something wrong. Could you help me
find my mistake?
thanks in advance

Here is a working example of the ANT script to build flex
app. In you case it seems that you're missing the flex jar for ant
specified in my script by:
<taskdef resource="flexTasks.tasks"
classpath="${ANT_HOME}/lib/flexTasks.jar" />
<?xml version="1.0" encoding="utf-8"?>
<project name="Builder" basedir="..">
<taskdef resource="flexTasks.tasks"
classpath="${ANT_HOME}/lib/flexTasks.jar" />
<property name="FLEX_HOME" value="C:\Program
Files\Adobe\Flex Builder 3\sdks\3.0.0"/>
<property name="APP_ROOT" value="${basedir}"/>
<target name="build">
<mxmlc file="${APP_ROOT}\src\Analysis.mxml" debug="false"
output="${APP_ROOT}/bin/no-debug/Analysis.swf"
optimize="true"
strict="true"
warnings="false">
<load-config
filename="${FLEX_HOME}\frameworks\flex-config.xml"/>
<source-path path-element="${FLEX_HOME}\frameworks"/>
<compiler.include-libraries dir="${APP_ROOT}/libs"
append="true">
<include name="corelib.swc" />
</compiler.include-libraries>
</mxmlc>
</target>
</project>
ATTA

Similar Messages

  • REP-1057: ' PATH_TO_REPORT/report.rdf' is not a valid Report Builder file.

    Current Level : Report Builder 6.0.8.27.0
    We migrated custom reports build on Report 2.5 to 6.0.8.27.0 on apps/db version
    from 11.0.3 / 8.0.5 to 11.5.10.2/9.2.0.6. Platform was moved from HPUX to Redhat
    Linux 4.
    When we open migrated reports then original reports get converted and compiled
    by Report Builder 6 without any problem. But once saved and when modified some
    of the reports get corrupted and have 'REP-1057' error.
    Anyone had any similar problem and found solution?
    Thanks

    I have a .rdf file. When I try to open the same in Report Builder for 6i, nothing happens! It just does not open!
    I tried to convert the report into .REX from unix - I get the following error
    REP-1057: 'FAIAPXINROH.rdf' is not a valid Report Builder file.
    But, the report is running fine from Oracle apps.
    I need to open this .rdf to change somethings.
    Any suggestions?
    Regards,
    Arun Tirumale

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

  • Opening large ant xml build file(70KB+) hangs JDeveloper 11.1.2.1.0

    Hey everyone!
    I've been using JDeveloper for about 6 months and I've loved it from the beginning. Everythings seems to be where it's supposed to be and the visual editor greatly speeds up the development. And it's free - amazing. But the team I work with... all of them use IDEA/Eclipse, that is what people got used to - those monstrous IDE's that I'm not realy into - ...So all my persuasions to migrate to JDeveloper crash on one point: when opening large(70KB+) ant xml build files the JDeveloper seems to be doing some syntax checking and just hangs without saying anything. The strange thing is that these files open OK in IDEA/Eclipse.
    I use the latest version of JDeveloper 11g Release 2 11.1.2.1.0 on Windows7-64 and 1.6.0_30 java. Can I get some help on this one to increase the JDevelper popularity among fellow java developers? :)
    Thanks in advance!
    Edited by: 924380 on 29.03.2012 15:30

    Do you have access to Oracle Support to file an SR?
    Can you post your build.xml file somewhere, and I'd be happy to test?
    Another thing to try: run jdev.exe/jdev64.exe (assuming you're on windows) from jdeveloper\jdev\bin. This will open JDev in a command prompt window, and any stack traces that jdev might throw internally would be displayed in the console window. Not that this would help you fix anything, but might give Oracle a clue as to where the issue lies.
    John

  • Error in Build file

    Hi All,
    I have a simple build file which i am using Ant build in Eclipse to give build to.
    <project name="bobf" default="compile" basedir=".">
         <property name="build.home"    value="${basedir}"/>
         <target name="compile" >
              <mkdir  dir="${build.home}\bin"/>
         <javac srcdir="${build.home}"
              destdir="${build.home}\bin" >
              <classpath path="${build.home}\lib"/> 
        </javac>
         </target>
    </project>i am getting this error while running it in the eclipse
    C:\Saurav\bobf\build.xml:14: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    I have put the tools.jar in the ant buil's edit under classpath under user entries.
    Please help

    thanks both for the reply.
    I installed Ant
    here i am getting the new error
    C:\Saurav\bobf>ant build.xml
    Buildfile: build.xml
    BUILD FAILED
    java.lang.NoClassDefFoundError: javax/xml/parsers/FactoryConfigurationError
            at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    193)
            at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    140)
            at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
    a:91)
            at org.apache.tools.ant.Main.runBuild(Main.java:653)
            at org.apache.tools.ant.Main.startAnt(Main.java:187)
            at org.apache.tools.ant.Main.start(Main.java:150)
            at org.apache.tools.ant.Main.main(Main.java:240)
    Total time: 0 seconds
    java.lang.NoClassDefFoundError: javax/xml/parsers/FactoryConfigurationError
            at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    193)
            at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    140)
            at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
    a:91)
            at org.apache.tools.ant.Main.runBuild(Main.java:653)
            at org.apache.tools.ant.Main.startAnt(Main.java:187)
            at org.apache.tools.ant.Main.start(Main.java:150)
            at org.apache.tools.ant.Main.main(Main.java:240)
    javax/xml/parsers/FactoryConfigurationErrori have put the Ant library files in the classpath.
    Please help

  • FlexUnit is working with FlashBuilder and not working with Build file

    Hi
    I have few flexunit test cases . When I am running those testcases from Flashbuilder FlexUnit plugin I am able to run all the testcases and when I run Build file to run those testcases , build file is launching my testrunner swf file and it is throwing follwoing  runtime error in flash player
    VerifyError: Error #1014: Class flash.events::NativeWindowBoundsEvent could not be found.
    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/deferredNextFrame()
    at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/timerHandler()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    here is the Build Console log
    [taskdef] Could not load definitions from resource flexTasks.tasks. It could not be found.
    test:
    [mxmlc] C:\Users\user\Documents\workspace\project\bin-debug\projectTestRunner.swf (1626331 bytes)
    [flexunit] Validating task attributes ...
    [flexunit] Generating default values ...
    [flexunit] Using the following settings for the test run:
    [flexunit] FLEX_HOME: [C:\Program Files\Adobe\Adobe Flash Builder for Force.com\sdks\4.5.1.21328]
    [flexunit] haltonfailure: [false]
    [flexunit] headless: [false]
    [flexunit] display: [99]
    [flexunit] localTrusted: [true]
    [flexunit] player: [flash]
    [flexunit] command: [C:\Program Files\Adobe\Adobe Flash Builder for Force.com\sdks\4.5.1.21328\runtimes\player\10.2\win\FlashPlayerDebugger.exe]
    [flexunit] port: [1024]
    [flexunit] swf: [C:\Users\user\Documents\workspace\project\bin-debug\projectTestRunner.swf]
    [flexunit] timeout: [60000ms]
    [flexunit] toDir: [C:\Users\user\Documents\workspace\project\report]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    [flexunit] Entry [C:\Users\user\Documents\workspace\project\bin-debug] already available in local trust file at [C:\Users\user\AppData\Roaming\Macromedia\Flash Player\#Security\FlashPlayerTrust\flexUnit.cfg].
    [flexunit] Executing 'C:\Program Files\Adobe\Adobe Flash Builder for Force.com\sdks\4.5.1.21328\runtimes\player\10.2\win\FlashPlayerDebugger.exe' with arguments:
    [flexunit] 'C:\Users\user\Documents\workspace\project\bin-debug\projectTestRunner.swf'
    [flexunit] The ' characters around the executable and arguments are
    [flexunit] not part of the command.
    [flexunit]
    [flexunit] Stopping server ...
    [flexunit] End of test data reached, sending acknowledgement to player ...
    [flexunit] Closing client connection ...
    [flexunit] Closing server on port [1024] ...
    BUILD FAILED
    C:\Users\user\Documents\workspace\project\build\build.xml:33: The following error occurred while executing this line:
    C:\Users\user\Documents\workspace\project\build\build.xml:175: java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report
    Many thanks for In advance for your help ..

    We had a similar problem in my project.  Took a lot of research and trial and error, but we finally narrowed it down to the resource.properties file.  Turns out that if the file gets too big it causes this problem.  Extending the timeout doesn't help.  You have to break your resource.properties into more granular files to reduce the file size.  This seems to fix the problem.  We have had it happen several times since then and we know how to fix it, so we get it fixed pretty quickly.
    Not sure if this will fix your problem, but it fixed ours.

  • How to use the build file generated by Jdev to automate bpel deployment

    Hi everyone I am trying to deploy bpel jar files and human task ear files using ant. When i use the ant which is generated by Jdev I am gettinng an error
    C:\Documents and Settings\254876\Desktop\BPEL_ANT>ant
    Buildfile: build.xml
    deployTaskForm:
    BUILD FAILED
    C:\Documents and Settings\254876\Desktop\BPEL_ANT\build.xml:39: Could not create
    task or type of type: deployTaskForm.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'deployTaskForm'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.

    Ensure JDEV and SOA versions are in sync.

  • How to avoid getting bogus error messages when running a build file?

    Consider the following fragment in a build file:
    <var name="component.key" value="provisioning.include.atk"/>
    <var name="provisioning.include.atk.domain.hostname" value="localhost"/>
    <echoNested>component.key.domain.hostname=${${component.key}.domain.hostname}<
    /echoNested>
    When we run with ant -v
    Result:
    Property "${component.key" has not been set
    [echoNested] component.key.domain.hostname=localhost
    Expected result:
    [echoNested] component.key.domain.hostname=localhost
    Can someone explain why I am getting the message "Property "${component.key" has not been set"?
    Thanks,
    Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    In your ANT script you can not use "${${" together
    Please refer to http://jaysensharma.wordpress.com/2009/12/06/ant_basics/
    You can do something like this:
    *"build.xml"*
    <project name="webservices-complex" default="runSuccess">
    <property name="component.key" value="localhost" />
    <property name="component.key.domain.name" value="localhost" />
    <target name="runSuccess" >
    <echo message="${component.key}" />
    </target>
    <target name="runSuccess2" >
    <echo message="${component.key.domain.name}" />
    </target>
    </project>
    Edited by: Jay SenSharma on Feb 11, 2010 11:49 AM

  • Getting error in build file  'OSM.AIAInstallation.xml'

    Hi,
    I am first time setting up OSM for the Order-to-Activate solution.
    As per documentation I am following steps to configure design studio and installing AIA cartridges.
    I am using design studion 3.1.4,OSM 7.0.3,Weblogic10.0.1
    When I run 'allSimpleTopologyProjects' ant task (Which is present in 'OSM.AIAInstallation.xml' build file) its throwing below error.
    Buildfile: U:\OracleCgbuOsmAIAInstallation\OSM.AIAInstallation.xml
    allTypicalTopologyProjects:
    setupStaging:
    [echo] Setting AIA PIP Staging Directory in T:\bea\OSM7.0.3\SDK/Automation/automationdeploy_bin/../..\OSM.PIP\staging
    [unzip] Expanding: T:\bea\OSM7.0.3\SDK\OSM.PIP\OracleCgbuOsmAIAPIPCartridges.zip into T:\bea\OSM7.0.3\SDK\OSM.PIP\staging
    importOsmAIAPIPProjects:
    [echo] Importing AIA Projects...
    [echo] Importing project: CommunicationsProvisioningOrderFulfillmentPIP
    BUILD FAILED
    U:\OracleCgbuOsmAIAInstallation\OSM.AIAInstallation.xml:113: The following error occurred while executing this line:
    U:\OracleCgbuOsmAIAInstallation\OSM.AIAInstallation.xml:123: Problem: failed to create task or type studio.importProject
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    In which Jar task "studio.importProject" available ?
    Or IS any configuration is missing?
    Regards,
    UJ

    You need to set the option to run within the same JRE as the workspace. It appears you are running the import with the setting as "use separate JRE". You should follow the steps in the O2A cartridge guide for importing the projects. Note that manual import of the projects will not give you the same end result as importing using the supplied ANT script.
    Cheers
    ~nagu.

  • How to change system/service groups in ESB through build file in Antscripts

    Hi All,
    i have a proublem with Ant Scripts .
    I Create a "IClickSystemESB" process that will define different systems for the project. and Create "IClickServiceGroupESB" process This will define different service groups under the systems for the project. and then Create a TestSysServiceESB process This process should use the system/servicegroups.
    During deployment of TestSysServiceESB the build file should be able to change the system /service groups to which the process is attached.
    Anyone can help me.
    Regards
    Hari
    Edited by: user10222248 on 19 Feb, 2009 3:02 AM

    Check out configuration plan feature in soa suite 11g. One of the reference is here @ http://biemond.blogspot.com/2010/02/web-service-references-and-soa.html

  • Error 3307 when importing build file in Essbase

    We have a level-based dimension build file, which is a CSV file with 5 fields and some 13,000+ rows. We are getting 75 errors in the .err file when importing the file using a load rule. An extract of the .err file is as follows:
    \\Record #4242 - Incorrect Parent [G] For Member [G4S] (3307)
    C057038317,C057038317 - G4S,G4S,G,Other Accounts,Customer Group,Customer
    \\Record #11502 - Incorrect Parent For Member [UG Ltd] (3307)
    C043678386,C043678386 - UG Ltd,UG Ltd,U,Other Accounts,Customer Group,Customer
    \\Record #11503 - Incorrect Parent [U] For Member [UG Ltd] (3307)
    C044178034,C044178034 - UG Ltd,UG Ltd,U,Other Accounts,Customer Group,Customer
    I have double checked the existing members and there are no duplicate member names / conflicts here. Can anyone please suggest what the issue might be? I found a similar post at the below but this was not fruitful:
    Incorrect Parent Error during Dimension build type "Add as child of"

    This typically means the member was added to the outline already to another parent either prior to the dimension build or within the dimension build and in your dimension build settings you do not allow moves of members.
    For example your member G4S If you look in your outline, I'll bet you find it (either as a member name or alias) and its parent is not "G"

  • How to automatically generate a build file of the application from command-line

    Hi All
    How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?
    Thanks

    User, which jdev version do you use?
    I don't think you can do this. You can only create an ant build.xml from the project inside jdev.
    You can use ojdeploy to build the project.  This is the only method which will also make the necessary changes to the descriptors.
    Timo

  • [svn:bz-trunk] 16869: Minor change to the build file to get it working on Mac.

    Revision: 16869
    Revision: 16869
    Author:   [email protected]
    Date:     2010-07-12 02:01:25 -0700 (Mon, 12 Jul 2010)
    Log Message:
    Minor change to the build file to get it working on Mac.
    Modified Paths:
        blazeds/trunk/apps/team/build.xml

    The new user helped a little but not enough to make the customer happy. I have done a bunch of research over the weekend and I have found there is a little known bug in Apple's ACLs. ACL stands for Access Control List and I have a snippet from a MacFixit that describes the issue:
    "A disappointing aspect of Repair Permissions in Leopard is that it does not deal with ACLs (Access Control Lists), a secondary layer of permissions control laid on top of standard Unix permissions, tentatively introduced in Tiger and actually used for the first time in Leopard. Repair Permissions will announce that it is surprised to discover that a certain folder has an unexpected ACL setting, but it won't do anything about it (in other words, it won't repair that kind of permissions)."
    Anyway it appears to me that if your privileges get hosed in a computer upgrade the only way to really fix the problem is copy all of your data to a second HD and then break out the install DVDs that came with the Mac Pro and do a fresh install and set the user/file-sharing up manually and then copy your data back to the Mac Pro. I did not connect back to the G4 to get the data again, I just copied my many years of correspondence back to the Mac Pro and this time everything works?
    The new user idea did let me manually drop files onto the Mac Pro from connected computers it WOULD NOT let me save files to the Mac Pro from network computers. I usually got a bad path message when I would try and save from Word or TextEdit. I figured I had wasted enough time on this problem and erasing everything and starting over was a better idea.
    Thanks everybody.

  • [Solved]PKG Build file usage

    If a developer creates a fork of an application (cgminer) and updates some files, can I use the same PKG Build file that I used to build the un-forked version?
    Thanks.
    Last edited by ThinkFast (2014-01-29 04:29:51)

    In most cases, you just need to modify the sources-array. Sometimes you'll have to copy some additional files or adjust some paths.

  • Garbage Symbols in build file

    Hi,
    I am trying to build a hierarchy using a build rule. Now, whenever I open the build file in the rules file, I see some garbage symbols preceding the first entry in the first column which is not expected.
    Please help me get rid of this.
    TIA,
    KRIS.

    Hi Kris,
    I have seen this kind of thing for at least two reasons I can recall in past projects.
    1) The source file may have garbage characters of its own. Unlikely but it has happened to me.
    Sometimes print control characters or other strange symbols were in flat file feeds back in the early days of Essbase from using accounting system trial balance dumps that were print formatted. I doubt this is the case for you but it never hurts to consider it and check it off the list.
    2) Odd field count and/or field/column definitions in your file.
    Not too long ago, I was given a feed file that was a concatenated output file with half of its records contained extra fields compared to the first half. Coupled with some blank character packing issue on the source side, the data file opened in the rule editor with one row of odd characters in the first and only column displaying. My workaround until the source was fixed was processing this mainframe text file through Access which cleaned up the offending issues.
    If #1 above is your issue, you can copy/paste the actual strange source characters from your file into the Options/Data Source Properties/Ignore Tokens field and they will forever be ignored (not field-specific, just a rejection for the whole file).
    If #2 above is your issue, you'll find out by examing the entire file in an appropriate container like Access or KEDIT or whatever handles the file size for you. And then you should have the producers of the file check the processes and coding that produce the file. In the meantime, try my work around running your files through Access. Clumsy but a possible temporary fix.
    I'm sure there may be other reasons, but I hope this helps you deal with the problem you are having.
    Darrell

  • 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

Maybe you are looking for