Setting ANT_OPTS inside the build.xml

I am using OAS 10.1.3. For the build process, i am using the ant and jdk inside the OAS itself.
My problem is that, i need to set the ANT_OPTS everytime before i run the build script.
I dnt want to do this. Instead, i want to set this somewhere inside the build file itselves.
I understand that, i can set the ANT_OPTS inside ant.bat in $ANT_HOME and can also set ANT_OPTS in env variables.
Is there any way, that i can set this option inside the build.xml ?

Go to ant.jakarta.org. They have numerous tutorials. Do some research first. If you run into an actual problem, then post what it is.
- Saish

Similar Messages

  • [svn] 746: creating flex-sdk-description. xml is no longer a build machine only function, it will happen in the build .xml.

    Revision: 746
    Author: [email protected]
    Date: 2008-03-05 10:49:48 -0800 (Wed, 05 Mar 2008)
    Log Message:
    creating flex-sdk-description.xml is no longer a build machine only function, it will happen in the build.xml. There are 3 tokens in the flex-sdk-description.xml file in collateral/en_US/. The release and version vars are set in the build.properties file. build.number can be manually set in the properties in build.xml or can be passed in when building the SDK by using -Dbuild.number= , the default is "workspace"
    Modified Paths:
    flex/sdk/trunk/build.properties
    flex/sdk/trunk/build.xml
    Added Paths:
    flex/sdk/trunk/collateral/en_US/flex-sdk-description.xml

    I'll add that when I run devenv.exe with the flag /TFSLink, VS opens a Team Explorer window that contains the following text:
    An exception was encountered while constructing the content of this frame. This information is also logged in "C:\Users\<username>\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml".Exception details:System.NullReferenceException: Object reference not set to an instance of an object.   at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext(Guid& packageGuid, Int32 reason, Guid& context)   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetPackage()   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

  • Ant for the build.xml file

    when we give the ant command then what the background task perform?..
    how ant start parsing the build.xml file ?

    Go to ant.jakarta.org. They have numerous tutorials. Do some research first. If you run into an actual problem, then post what it is.
    - Saish

  • [svn:fx-trunk] 10051: fix the build. xml that we include in the package in the frameworks directory.

    Revision: 10051
    Author:   [email protected]
    Date:     2009-09-08 07:53:47 -0700 (Tue, 08 Sep 2009)
    Log Message:
    fix the build.xml that we include in the package in the frameworks directory. 
    -remove haloclassic
    -add textlayout
    -reorganize the targets
    QE notes: no
    Doc notes: no
    Bugs: sdk-22441
    Reviewer: n/a
    Tests run: checkintests
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-22441
    Modified Paths:
        flex/sdk/trunk/frameworks/build_framework.xml

  • I can't find the build.xml in adobe-workspace-src.zip

    I imported the adobe-workspace-src.zip according to the 'customize workspace ui'. But I can't find the build.xml.So far I can't build the workspace project without it. Please advice how can I find build.xml?

    Hi,
    Can you confirm which version of LiveCycle you are using?
    Thanks,
    Matt MacKenzie
    Engineering Manager, LiveCycle Process Management ES

  • Can any body help me how to make the build.xml

    Can any one tell me how to make the build.xml and want to deploy in the iplanet server. I am very new for that. I dont have any idea of build.xml. If any one have code in build.xml please tell me [email protected] Please if any one is having sample exaple please forward it to me. I am waiting for the quick reply. Please its very urgent mail me.

    htpp://ant.apache.org
    http://ant.apache.org/manual/using.html#example
    Good Luck
    Lee

  • [svn:bz-3.x] 15191: Minor update to the build. xml and only make files write protected with chmod.

    Revision: 15191
    Revision: 15191
    Author:   [email protected]
    Date:     2010-04-01 07:06:21 -0700 (Thu, 01 Apr 2010)
    Log Message:
    Minor update to the build.xml and only make files write protected with chmod.
    Modified Paths:
        blazeds/branches/3.x/modules/sdk/build.xml

    DyNamic I agree that is sounds like you may be facing a network configuration issue.  Please let your network people know that you need access to the following servers and ports to download Adobe applications through the Adobe Application Manager:
    ccmdls.adobe.com:443
    ims-na1.adobelogin.com:443
    na1r.services.adobe.com:443
    prod-rel-ffc-ccm.oobesaas.adobe.com:443
    lm.licenses.adobe.com:443
    In addition for updates to download properly you will also need access to the following servers:
    http://www.adobe.com/:80
    htttp:///swupmf.adobe.com/:80
    http://swupdl.adobe.com/:80
    http://crl.adobe.com/:80

  • About the build.xml file in EJB's

    Hi,
    I want to know where is the DTD for the build.xml file in the EJB examples.
    Any help in this matter is highly appreciated.

    http://jakarta.apache.org/ant/
    "satish" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi,
    I want to know where is the DTD for the build.xml file in the EJBexamples.
    >
    Any help in this matter is highly appreciated.

  • [svn:bz-3.x] 15200: Update the build.xml to include contents under / resources/clustering/2.9.0

    Revision: 15200
    Revision: 15200
    Author:   [email protected]
    Date:     2010-04-02 07:46:55 -0700 (Fri, 02 Apr 2010)
    Log Message:
    Update the build.xml to include contents under /resources/clustering/2.9.0
    Modified Paths:
        blazeds/branches/3.x/build.xml

    Revision: 15200
    Revision: 15200
    Author:   [email protected]
    Date:     2010-04-02 07:46:55 -0700 (Fri, 02 Apr 2010)
    Log Message:
    Update the build.xml to include contents under /resources/clustering/2.9.0
    Modified Paths:
        blazeds/branches/3.x/build.xml

  • [svn:bz-trunk] 19327: Fix some typo in the build.xml.

    Revision: 19327
    Revision: 19327
    Author:   [email protected]
    Date:     2010-12-13 12:43:25 -0800 (Mon, 13 Dec 2010)
    Log Message:
    Fix some typo in the build.xml.
    Modified Paths:
        blazeds/trunk/build.xml

  • Setting ProGuard options in build.xml (SOLVED)

    Hi guys,
    I'm trying to obfuscate my MIDlet so I can use BCrypt and the bouncy castle library. I'm getting the following error and I see that I need to add '-dontskipnonpubliclibraryclasses' and/or '-dontskipnonpubliclibraryclassmembers'. I've read ProGuard's instructions on adding options to an xml file but they are incompatible with Netbeans 6.8's build.xml. How can I set these two options for ProGuard through my build.xml file? I've included the obfuscation related part of my build-imp.xml.
    NetBeans Output:
    Building jar: C:\Users\Vladimir\Documents\NetBeansProjects\SecureIM_MIDP\build\before-obfuscation.jar
    ProGuard, version 4.4
    Reading program jar [C:\Users\Vladimir\Documents\NetBeansProjects\SecureIM_MIDP\build\before-obfuscation.jar]
    Reading library jar [C:\Java_ME_platform_SDK_3.0\lib\midp_2.0.jar]
    Reading library jar [C:\Java_ME_platform_SDK_3.0\lib\cldc_1.1.jar]
    Note: duplicate definition of library class [java.io.ByteArrayOutputStream]
    Note: there were 1 duplicate class definitions.
    Warning: shared.BCrypt: can't find referenced method 'java.lang.Object clone()' in class java.lang.Object
    Warning: there were 1 unresolved references to program class members.
             Your input classes appear to be inconsistent.
             You may need to recompile them and try again.
             Alternatively, you may have to specify the options
             '-dontskipnonpubliclibraryclasses' and/or
             '-dontskipnonpubliclibraryclassmembers'.
    Error: Please correct the above warnings first.
    C:\Users\Vladimir\Documents\NetBeansProjects\SecureIM_MIDP\build.xml:94: Obfuscation failed with error code 1.
    BUILD FAILED (total time: 13 seconds)build-imp.xml's obfuscation:
    <!--proguard-->
        <target name="proguard-init" description="Up-to-date check before obfuscation.">
            <property name="obfuscation.level" value="0"/>
            <condition property="no.obfusc">
                <or>
                    <equals arg1="${obfuscation.level}" arg2="0"/>
                    <uptodate targetfile="${obfuscator.destjar}">
                        <srcfiles dir="${buildsystem.baton}"/>
                    </uptodate>
                </or>
            </condition>
            <uptodate property="obfuscation.up-to-date" targetfile="${obfuscator.destjar}">
                <srcfiles dir="${buildsystem.baton}"/>
            </uptodate>
        </target>
        <target name="skip-obfuscation" depends="proguard-init" if="obfuscation.up-to-date">
            <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
            <nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
        </target>
        <target name="proguard" depends="skip-obfuscation" description="Obfuscate project classes." unless="no.obfusc">
            <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
            <fail unless="obfuscator.srcjar">Must set obfuscator.srcjar</fail>
            <fail unless="obfuscator.destjar">Must set obfuscator.destjar</fail>
            <property name="obfuscator.classpath" value=""/>
            <dirname file="${obfuscator.srcjar}" property="obfuscator.srcjar.dir"/>
            <dirname file="${obfuscator.destjar}" property="obfuscator.destjar.dir"/>
            <mkdir dir="${obfuscator.srcjar.dir}"/>
            <mkdir dir="${obfuscator.destjar.dir}"/>
            <jar jarfile="${obfuscator.srcjar}" basedir="${buildsystem.baton}"/>
            <property name="obfuscation.custom" value=""/>
            <nb-obfuscate srcjar="${obfuscator.srcjar}" destjar="${obfuscator.destjar}" obfuscatorclasspath="${obfuscator.classpath}" classpath="${platform.bootclasspath}:${extra.classpath}" obfuscationLevel="${obfuscation.level}" extraScript="${obfuscation.custom}"/>
            <mkdir dir="${obfuscated.classes.dir}"/>
            <unjar src="${obfuscator.destjar}" dest="${obfuscated.classes.dir}"/>
            <nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
        </target>
        <!--obfuscate-->
        <target name="pre-obfuscate"/>
        <target name="post-obfuscate"/>
        <target name="obfuscate" depends="compile,pre-obfuscate,proguard,post-obfuscate" description="Obfuscate project classes."/>Thanks guys,
    jangozo
    Edited by: jangozo on Jan 24, 2010 1:55 PM
    I just got rid of the BCrypt file.

    I ran into this same problem when using ProGuard 4.1 for Java obfuscation. The problem is that there is a space in the path to your JDK/JRE, for example: c:\Program Files\Java\jdk1.6.0_03. Because there is a space before the word "Files", it isn't working. The solution to to wrap quotes around that particular command-line argument. In ANT, I needed to use single-quotes (because double-quotes were already in use for the XML attribute) such as:
    <java jar="proguard.jar" fork="true" timeout="30000">
    <arg value="-libraryjars"/>
    <arg value="'${java.home}/lib/rt.jar'"/> <!-- Notice both double and single quotes used on this line. -->
    ...rest of the arguments go here...
    </java>
    Alternatively, using ProGuard's custom ANT Task, it would look something like (notice the use of double-quotes around the rt.jar location):
    <proguard>
    -libraryjars "${java.home}/lib/rt.jar"
    ...rest of the arguments go here...
    </proguard>
    Anyways, I hope this helps you or anyone else who runs into the same problem. Both of these approaches have worked for me.

  • Do I must put ALL my servlets inside the web.xml file?

    Hello everybody,
    I am trying to migrate from Webshere to TOMCAT a project with severals packets, one of those have 15 servlets and some classes.
    Is there any way to use the servlets without have to declare each one inside the web.xlm file ?
    Thanks in advance.

    All servlet definitions go into web.xml, though not the actual servlets themselves :) . Say if you wanted servlet A to have a different mapping you would define the mapping in web.xml to something other than the standard one.

  • Antenna - problem reading in a property value from the build.xml file

    Hi
    I have declared a property in build.xml file of my project like
    <property name="debug" value="true" />I want to read the value of this property in my source code like
    //#if debug == "true"
    //#endifAbove method doesnt work. I tried using method below but it didnt work as well
    //#if ${debug} == "true"
    //#endifCan anyone please help me how can i read this value?
    Thank you

    you can get your key bytes with byte [] keyBytes = mykey.getEncoded();
    and then write your byte array in a file.
    to get back your key :
    SecretKey myKey = new SecretKeySpec(keyBytes,"TripleDES");

  • Setting SSDT on the build server

    I’m having issues building the database project on the build server.
    I’m trying to setup our build server.  Our application was initial created using VS 2010 and then slowly we migrated to VS 2013. However the path inside all the individual project file (.csproj, .sqlproj) & build project file (.proj)
    is still V10.0. Based on research I did, it looks like I have to install Visual Studio 2010 on the build server in order SSDT to build.
    So I installed VS 2010 Professional on build server, then trying to install SSDT for 2010. However Microsoft no longer supports SSDT for VS 2010. Website says
    “We are no longer updating SSDT for Visual Studio 2010. Projects and DACPACs are fully compatible across shells. Please download the toolset for VS2012 or VS2013 using the links above for continued updates”
    So I installed SSDT for VS 2012.
    However it installed the SSDT into C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0
    folder.
    But the build is looking into C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0
    How do I solve this issue? Where can I find SSDT for VS 2010.

    Hi lax4u,
    Does passing the argument /p:VisualStudioVersion=11.0 to MSBuild when building on the build server help?

  • Setting font on the oracle.xml.dbviewer.DBViewer Bean

    Hi there,
    I'm working with the DBViewer class in oracle.xml.dbviewer. I'm feeding it an XML
    doc and XSL to produce output for a query. Everything works fine, however some
    of my data is in Unicode (UTF-8) format. I'm unable to set the font in the DBViewer
    in order to display the unicode characters. I've tried myDbViewer.setFont(myUniFont)
    but that doesn't work.
    Do I need to do something to the XSL in order to handle unicode?
    Thanks much in advance!
    -Toby

    Hi there,
    I'm working with the DBViewer class in oracle.xml.dbviewer. I'm feeding it an XML
    doc and XSL to produce output for a query. Everything works fine, however some
    of my data is in Unicode (UTF-8) format. I'm unable to set the font in the DBViewer
    in order to display the unicode characters. I've tried myDbViewer.setFont(myUniFont)
    but that doesn't work.
    Do I need to do something to the XSL in order to handle unicode?
    Thanks much in advance!
    -Toby

Maybe you are looking for

  • How do I get rid of the Blue line around an image that is a link that only happens after a click?

    This is not the standard link problem. I have already put in: a img { border : none; } That took care of not having a blue border around the image all the time. My problem is that when I actually click on the image, it flashes with a red outline then

  • Calling pl/sql procedure from a java class.

    I have an onSubmit event that needs to call a pl/sql procedure using the named connection. Can anyone tell me how this is code in a Model 1 ADF JSP page?

  • White screen with apple logo and rotating cog

    Is this a sign that my 27inch imac is overheating. Do I have enough ventilation around it? how much space should I have around the outside of my mac?

  • BAPI_SALESORDER_CREATEFROMDAT2 house number

    Hi, I am trying to create sales order using BAPI BAPI_SALESORDER_CREATEFROMDAT2. But I am not able to find any parameter in the FM for house number. Streetis available but house number is not availabale. Can anyone tell me how to create order number

  • COPA Realignment in R/3

    Hi friends, I have one doubt in the Realignment activity... 1. After the completion of Realignment , i have checked the TKEBWL table in R/3... It was showing that the DIRTY FLAG is empty for certain COPA datasources.... Why some COPA datasources havi