FU4CIListener build.xml not setting properties?

I am following the Ant Task Setup.  I have flex sdk 3.6.0.X, apache-ant 1.8.2 and the flexunit source 4.1.0.
When I run > ant -v clean package
function(){return A.apply(null,[this].concat($A(arguments)))}
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Trying the default build file: build.xml
Buildfile: C:\projects\FlexUnit4CIListener\build.xml
Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0\jre
Detected OS: Windows XP
parsing buildfile C:\projects\FlexUnit4CIListener\build.xml with URI = file:/C:/projects/FlexUnit4CIListener/build.xml
Project base dir set to: C:\projects\FlexUnit4CIListener
parsing buildfile jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
Importing file C:\projects\utils.xml from C:\projects\FlexUnit4CIListener\build.xml
Overriding previous definition of reference to ant.projectHelper
parsing buildfile C:\projects\utils.xml with URI = file:/C:/projects/utils.xml
[macrodef] creating macro  gpg
[macrodef] creating macro  sonatype-bundle
Overriding previous definition of reference to ant.projectHelper
[property] Loading Environment env.
Property "build.version" has not been set
Property "build.number" has not been set
Property "build.sdk" has not been set
Build sequence for target(s) `clean' is [clean]
Complete build sequence is [clean, init, compile, report, package, deploy, ]
clean:
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\bin
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\docs
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\sonatype
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
   [delete] Deleting C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
Build sequence for target(s) `package' is [init, compile, report, package]
Complete build sequence is [init, compile, report, package, clean, deploy, ]
init:
    [mkdir] Skipping C:\projects\FlexUnit4CIListener\libs because it already exists.
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\sonatype
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\bin
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\docs
     [copy] Copying 1 file to C:\projects\FlexUnit4CIListener\libs
     [copy] Copying C:\projects\FlexUnit4\target\flexunit-4.1.0-x-as3_y.y.y.y.swc to C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
compile:
    [compc] Loading configuration file C:\flexunit\frameworks\flex-config.xml
    [compc] Adobe Compc (Flex Component Compiler)
    [compc] Version 3.6.0 build 16995
    [compc] Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.
    [compc]
    [compc] command line: Error: configuration variable 'output' value contains unknown token 'build.version'
    [compc]
    [compc] Use 'compc -help' for information about using the command line.
BUILD FAILED
C:\projects\FlexUnit4CIListener\build.xml:50: compc task failed
        at flex.ant.FlexTask.executeInProcess(FlexTask.java:299)
        at flex.ant.FlexTask.execute(FlexTask.java:225)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 1 second
build.version, build.number & build.sdk are properties that are not being set.  I would assume that they should be set internally somehow.  However, if I manually set them via -D switches (with arbitrary values) I get the following:
>ant -v clean package -Dbuild.version=1.2.3.4 -Dbuild.number=666 -Dbuild.sdk=4.1
function(){return A.apply(null,[this].concat($A(arguments)))}
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Trying the default build file: build.xml
Buildfile: C:\projects\FlexUnit4CIListener\build.xml
Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0\jre
Detected OS: Windows XP
parsing buildfile C:\projects\FlexUnit4CIListener\build.xml with URI = file:/C:/projects/FlexUnit4CIListener/build.xml
Project base dir set to: C:\projects\FlexUnit4CIListener
parsing buildfile jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
Importing file C:\projects\utils.xml from C:\projects\FlexUnit4CIListener\build.xml
Overriding previous definition of reference to ant.projectHelper
parsing buildfile C:\projects\utils.xml with URI = file:/C:/projects/utils.xml
[macrodef] creating macro  gpg
[macrodef] creating macro  sonatype-bundle
Overriding previous definition of reference to ant.projectHelper
[property] Loading Environment env.
Build sequence for target(s) `clean' is [clean]
Complete build sequence is [clean, init, compile, report, package, deploy, ]
clean:
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\bin
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\docs
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\sonatype
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
   [delete] Deleting C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
Build sequence for target(s) `package' is [init, compile, report, package]
Complete build sequence is [init, compile, report, package, clean, deploy, ]
init:
    [mkdir] Skipping C:\projects\FlexUnit4CIListener\libs because it already exists.
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\sonatype
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\bin
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\docs
     [copy] Copying 1 file to C:\projects\FlexUnit4CIListener\libs
     [copy] Copying C:\projects\FlexUnit4\target\flexunit-4.1.0-x-as3_y.y.y.y.swc to C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
compile:
    [compc] Loading configuration file C:\flexunit\frameworks\flex-config.xml
    [compc] C:\projects\FlexUnit4CIListener\target\bin\flexunit-cilistener-1.2.3.4-666-4.1.swc (11773 bytes)
report:
Skipped because property 'build.report' not set.
package:
     [copy] Copying 1 file to C:\projects\FlexUnit4CIListener\target
     [copy] Copying C:\projects\FlexUnit4CIListener\target\bin\flexunit-cilistener-1.2.3.4-666-4.1.swc to C:\projects\FlexUnit4CIListener\target\flexunit-cilistener-1.2.3.4-666-4.1.swc
BUILD SUCCESSFUL
Total time: 4 seconds
I can see where the previous 3 properties are being used in the swc output file name, but now there is a build.report property that is not being set.  How do I know which properties need to be set, and what to set them to?

I was using the 4.5.1 flex SDK but there seemed to be other issues so I just used the link directly from the Ant Task Setup page (instead of using the newest SDK).  Upon following your instructions to ant build from the root directory, everything seemed to work correctly with a few exceptions.  Below is the last part of the output from the build.
function(){return A.apply(null,[this].concat($A(arguments)))}
test:
Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0\jre
Detected OS: Windows XP
Project base dir set to: C:\projects\FlexUnit4Test
      [ant] calling target(s) [test] in build file C:\projects\FlexUnit4Test\build.xml
parsing buildfile C:\projects\FlexUnit4Test\build.xml with URI = file:/C:/projects/FlexUnit4Test/build.xml
Project base dir set to: C:\projects\FlexUnit4Test
[property] Loading Environment env.
Override ignored for property "FLEX_HOME"
Property "env.FLEX_COVER_VIEWER" has not been set
[macrodef] creating macro  compile-runner
[macrodef] creating macro  execute-tests
[macrodef] creating macro  execute-tests-using-flexcover
[macrodef] creating macro  generate-html-report
      [ant] Entering C:\projects\FlexUnit4Test\build.xml...
Build sequence for target(s) `test' is [init, test-only, test-and-instrument, test]
Complete build sequence is [init, test-only, test-and-instrument, test, clean, ]
init:
    [mkdir] Created dir: C:\projects\FlexUnit4Test\target
    [mkdir] Created dir: C:\projects\FlexUnit4Test\target\bin
    [mkdir] Created dir: C:\projects\FlexUnit4Test\target\report\xunit\flex
    [mkdir] Created dir: C:\projects\FlexUnit4Test\target\report\xunit\as3
    [mkdir] Created dir: C:\projects\FlexUnit4Test\target\report\flexcover
     [copy] Copying 5 files to C:\projects\FlexUnit4Test\libs
     [copy] Copying C:\projects\FlexUnit4CIListener\target\flexunit-cilistener-4.1.0-x-y.y.y.y.swc to C:\projects\FlexUnit4Test\libs\flexunit-cilistener-4.1.0-x-y.y.y.y.swc
     [copy] Copying C:\projects\FlexUnit4FluintExtensions\target\fluint-extensions-4.1.0-x-y.y.y.y.swc to C:\projects\FlexUnit4Test\libs\fluint-extensions-4.1.0-x-y.y.y.y.swc
     [copy] Copying C:\projects\FlexUnit4\target\flexunit-4.1.0-x-as3_y.y.y.y.swc to C:\projects\FlexUnit4Test\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
     [copy] Copying C:\projects\FlexUnit4\target\flexunit-4.1.0-x-flex_y.y.y.y.swc to C:\projects\FlexUnit4Test\libs\flexunit-4.1.0-x-flex_y.y.y.y.swc
     [copy] Copying C:\projects\FlexUnit4FlexCoverListener\target\flexunit-flexcoverlistener-4.1.0-x-y.y.y.y. swc to C:\projects\FlexUnit4Test\libs\flexunit-flexcoverlistener-4.1.0-x-y.y.y.y.swc
     [copy] Copying 1 file to C:\projects\FlexUnit4Test\libs\build
     [copy] Copying C:\projects\FlexUnit4AntTasks\target\flexUnitTasks-4.1.0-x.jar to C:\projects\FlexUnit4Test\libs\build\flexUnitTasks-4.1.0-x.jar
test-only:
     [echo] Testing FlexUnit Flex build...
    [mxmlc] Loading configuration file C:\flexunit\frameworks\flex-config.xml
    [mxmlc] C:\projects\FlexUnit4Test\target\bin\TestRunner-flex.swf (924564 bytes)
[flexunit] Validating task attributes ...
[flexunit] Generating default values ...
[flexunit] Using default working dir [C:\projects\FlexUnit4Test]
[flexunit] Using the following settings for the test run:
[flexunit]  FLEX_HOME: [C:\flexunit]
[flexunit]  haltonfailure: [false]
[flexunit]  headless: [false]
[flexunit]  display: [99]
[flexunit]  localTrusted: [true]
[flexunit]  player: [flash]
[flexunit]  port: [1024]
[flexunit]  swf: [C:\projects\FlexUnit4Test\target\bin\TestRunner-flex.swf]
[flexunit]  timeout: [60000ms]
[flexunit]  toDir: [C:\projects\FlexUnit4Test\target\report\xunit\flex]
[flexunit] Setting up server process ...
[flexunit] Starting server ...
[flexunit] Entry [C:\projects\FlexUnit4Test\target\bin] already available in local trust file at [C:\Documents and Settings\Administrator\Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust\flexUnit.cfg].
[flexunit] Executing 'rundll32' with arguments:
[flexunit] 'url.dll,FileProtocolHandler'
[flexunit] 'C:\projects\FlexUnit4Test\target\bin\TestRunner-flex.swf'
[flexunit]
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit]
[flexunit] Opening server socket on port [1024].
[flexunit] Waiting for client connection ...
[flexunit]
[flexunit] Stopping server ...
[flexunit] End of test data reached, sending acknowledgement to player ...
[flexunit] Closing client connection ...
[flexunit] Closing server on port [1024] ...
      [ant] Exiting C:\projects\FlexUnit4Test\build.xml.
After this part of the log I get the following:
function(){return A.apply(null,[this].concat($A(arguments)))}
BUILD FAILED
C:\projects\build.xml:103: The following error occurred while executing this line:
C:\projects\FlexUnit4Test\build.xml:180: The following error occurred while executing this line:
C:\projects\FlexUnit4Test\build.xml:62: java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
        at java.util.concurrent.FutureTask.get(FutureTask.java:111)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: Socket timeout waiting for flexunit report
        at org.flexunit.ant.FlexUnitSocketServer.start(Unknown Source)
        at org.flexunit.ant.FlexUnitSocketThread.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.net.SocketTimeoutException: Accept timed out
        at java.net.TwoStacksPlainSocketImpl.socketAccept(Native Method)
        at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:396)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:183)
        at java.net.ServerSocket.implAccept(ServerSocket.java:522)
        at java.net.ServerSocket.accept(ServerSocket.java:490)
        at org.flexunit.ant.FlexUnitSocketServer.openClientSocket(Unknown Source)
        ... 7 more
Total time: 1 minute 38 seconds
So everything seems to be building correctly now, but not executing correctly.  Also, there are still a number of properties that are not being set:
function(){return A.apply(null,[this].concat($A(arguments)))}
report:
Skipped because property 'build.report' not set.
instrument-compile:
Skipped because property 'build.instrument' not set.
package-instrument:
Skipped because property 'build.instrument' not set.
pmdReport:
Skipped because property 'build.pmd' not set.
Where should these values be set and what are appropriate values?  What could be causing the socket timeout and what exactly is it waiting for or attempting to accomplish with the sockets?
The end goal is to be able to use the flex SDK, flexunit and ANT on a linux server to automate my build/test process.  I am currently just trying to get ANT to work with the flex SDK and flexunit on a windows XP box so I can see what the output should be and how the whole system works before trying to inject it into my CI system.

Similar Messages

  • AIA Installing and Deploying Demo Application failed:Build.xml not found

    Hi,
    i am trying to install demo application using following steps
    Extract Foundation Pack Demo under <AIA_HOME>.
    If not already done so, set environment variables:
    For Linux (bash shell)
    source <AIA_HOME>/aia_instances/<aia_instance>/bin/aiaenv.sh
    For Windows
    Navigate to aiaenv.bat located in <AIA_HOME>\aia_instances\<aia_instance>\bin
    Run aiaenv.bat
    You may have to assign higher memory values in your JVM parameter settings for demo to deploy if you have not set the maximum possible value already. Use the following three steps as guidance to configure JVM parameters:
    Navigate to <Middleware home>\user_projects\domains\<domain_name>\bin
    Update the following parameter in the setSOADomainEnv.sh (for Linux) and setSOADomainEnv.cmd (for Windows) file:
    USER_MEM_ARGS=""-Xms2048M -Xmx2048M -XX:PermSize=256M -XX:MaxPermSize=512M -Xmn1228M -XX:SurvivorRatio=10""
    Note: These are recommended values while using Sun JVM. Actual values that you set depend on your system configurations. When running on dedicated hosts, you can set the JVM heap size as high as possible. Higher value results in better performance. However this number is constrained by the operating system's addressable memory space.
    Restart SOA server
    Run the deployment script:
    At the command line prompt, run the following command for your platform:
    For Linux:
    cd $AIA_HOME/samples/AIADemo/config
    ant -f deployDemo.xml
    For Windows:
    cd %AIA_HOME%\samples\AIADemo\config
    ant –f deployDemo.xml
    while runiing the deployment script it showing build.xml not exist..
    Error Details
    D:\Soasuite\oracle\Middleware\SOASuite11gR1PS4\oracle_common\samples\AIADemo\con
    fig>ant -f deployDemo.xml
    Buildfile: build.xml does not exist!
    Build failed
    Any suggestions
    Thanks in advance

    Hi
    This is the location i am having my installation because in this location only MY AIA instance got created.
    Here i am pasting my env variable setup in aiaenv.bat file
    #set environment variables
    set AIA_HOME=D:\\Soasuite\oracle\Middleware\SOASuite11gR1PS4\oracle_common
    set MW_HOME=D:\\ORACLE\Middleware
    set SOA_HOME=D:\\ORACLE\Middleware\Oracle_SOA1
    set JAVA_HOME=D:\ORACLE\Middleware\jdk160_24\jre
    set AIA_INSTANCE=%AIA_HOME%/aia_instances/AIAinst1
    kindly help...

  • Problem with build.xml (not compiling)

    Hi
    I am not sure if this is an ANT specific question or a general XML question. DO forgive me for being naive
    I wrote this ant build.xml file for my web applications and I find that it simply refuses to compile any classes. I am sure I am doing something wrong
    <project basedir="." default="PortalMar23">
    <target name="PortalMar23"/>
      <property name="src.dir" value="src"></property>
      <property name="build.dir" value="${basedir}/build"></property>
      <property name="build.lib" value="${build.dir}/lib"></property>
       <property name="dist.dir" value="dist"></property>
      <property name="classes.dir" value="${build.dir}/classes"></property>
      <property name="build.etc" value="${src.dir}/etc"></property>
      <property name="build.resources" value="${src.dir}/resources"></property>
      <property name="lib.dir" value="lib"></property>
      <property name="web-inf.dir" value="WEB-INF"></property>
      <property name="war.name" value="concepts"></property>
      <property file="../common.properties"></property> 
    <!-- Main Target -->
      <target name="init">
        <mkdir dir="${build.dir}"></mkdir>
        <mkdir dir="${classes.dir}"></mkdir>
        <mkdir dir="${dist.dir}"></mkdir>
      </target>
      <target  name="compile" depends="init">
         <javac classpath="${libs}" compiler="${compiler}" debug="off" deprecation="on" destdir="${classes.dir}" optimize="on" srcdir="${src.dir}">
      <include name="org/apache/commons/fileupload/**/*.java"></include>
      <include name="com/portalbook/portlets/**/*.java"></include>
      <include name="com/portalbook/portlets/content/**/*.java"></include>
      </javac>
      </target>
      <!--
      <target depends="init" name="compile">
        <javac debug="true" deprecation="true" destdir="${classes.dir}" optimize="false">
          <src>
            <pathelement location="${src.dir}"></pathelement>
          </src>
          <classpath>
            <fileset dir="${lib.dir}">
              <include name="*.jar">
              </include>
            </fileset>
            </classpath>
        </javac>
      </target>
      -->
      <target  name="buildwar" depends="compile, init">
        <war destfile="${dist.dir}/${war.name}.war" webxml="WEB-INF/web.xml">
             <classes dir="${classes.dir}"></classes>
             <lib dir="${lib.dir}"></lib>
             <webinf dir="${web-inf.dir}"></webinf>
        </war>
      </target>
      <!-- create concepts-lib.jar  -->
      <jar jarfile="${build.lib}/concepts-lib.jar">
        <fileset dir="${classes.dir}"></fileset>
       </jar>
       <!-- create concepts.war -->
       <jar jarfile="${build.lib}/concepts.war" manifest="${build.etc}/concepts-war.mf">
       <fileset dir="${build.resources}/concepts-war"></fileset>
       </jar>
       <!-- concepts.ear -->
       <copy todir="${build.resources}/concepts-ear">
       <fileset dir="${build.lib}" includes="concepts.war,concepts-lib.jar">
       </fileset>
       </copy>
       <copy todir="${build.resources}/concepts-ear/META-INF">
       <fileset dir="${build.resources}/etc" includes="application.xml">
       </fileset>
       </copy>
       <jar jarfile="${build.lib}/concepts.ear">
       <fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
       </fileset>
       </jar>
        <target depends="init, compile, buildwar" name="explode">
      <taskdef classname="org.jboss.nukes.common.ant.Explode" classpath="${libs}" name="explode"></taskdef>
      <explode file="${build.lib}/concepts.ear" name="concepts.ear" todir="${build.lib}/exploded"></explode>
      </target>
      <target name="clean">
        <delete dir="${build.dir}">
        </delete>
        <delete dir="${dist.dir}">
        </delete>
      </target>
    </project>------------------
    Could anybody help me out on this?
    thanks a lot

    Well, it could be because the compile target is a comment..
    Remove the <!-- before the compile step and the "-->" after it.
    Then, Ant will see the step, and either compile your programs, or give you errors about them.
    Dave Patterson

  • EJB project IDE build dos not include properties files

    We have property files also which we want included as part of the build process
    for EJB projects but if we use the IDE build it does not include them. We have
    to therefore export the IDE build and customize it to include *.properties like
    this
    <zip basedir="${dest.path}" zipfile="${ejb.outputJar}" encoding="UTF8"> <!-- JARs
    filenames are encoded UTF8 --> <zipfileset dir="${project.local.directory}" includes="*.properties"
    /> </zip>
    which causes a problem for us because the exported build file is specific to a
    user's local PC and cannot be used in a team environment.
    How can we have the IDE build include all the files within an EJB project i.e.
    include properties files also.

    Hey Jamie,
    Currently there is no support to include other .properties files into
    the internal build. There's a build.properties that you get as part of
    an EJB project which you could place your values into and use that as
    your template for your team based development and check that into your
    source control.
    If you'd really like to get gross and hack Workshop a little bit you
    could modify the default EJB project template to use your .properties
    file for every EJB project you create. This would then splat a copy of
    your .properties file into the root of the EJB project.
    To do that you'd go to {your BEAHOME}\workshop\templates and crack open
    the ejb-project.zip template zip file and merge your settings into the
    existing build.properties file. This has the same
    effect as replacing the .properties file after you've created your
    project only it keeps you from having to perform that step each time.
    The downside of this is that each person on your team would then have to
    update that template zip file in their workshop installation. (I'd make
    sure to backup the original template file before performing this
    activity so you can always go back to the original template).
    Hope this helps,
    -Michael
    Jamie wrote:
    We have property files also which we want included as part of the build process
    for EJB projects but if we use the IDE build it does not include them. We have
    to therefore export the IDE build and customize it to include *.properties like
    this
    <zip basedir="${dest.path}" zipfile="${ejb.outputJar}" encoding="UTF8"> <!-- JARs
    filenames are encoded UTF8 --> <zipfileset dir="${project.local.directory}" includes="*.properties"
    /> </zip>
    which causes a problem for us because the exported build file is specific to a
    user's local PC and cannot be used in a team environment.
    How can we have the IDE build include all the files within an EJB project i.e.
    include properties files also.

  • WebDAV Error message when setting Properties

    Hi
    I have set up Oracle Drive to allow content to be uploaded to the Portal pages. This appears to be working fine however, when I right-click on a file to set properties I only see an Advanced Properties and not Set Properties as shown in the documentation. Clicking on Advanced Properties produces the following error message
    "Advanced Properties is not supported by this server"
    Can anyone help me resolve this issue please ? Is the Advanced Properties the same as Set Properties as stated by Oracle's documentation ? Is this a version issue ?
    Thanks
    Kevin

    Hi
    Well after further analysis I have been able to set the properties for the item by clicking on 'Properties'. However I am also seeing an 'Advanced Properties' item which produces the described message when I click on it. Can anyone explain what functionality is provided by this?
    Regards,
    Kevin

  • [svn:fx-trunk] 11541: Fix the textLayout build number that is set in the main build. xml to match what will be set when the build machine does NOT do the build

    Revision: 11541
    Author:   [email protected]
    Date:     2009-11-06 14:29:41 -0800 (Fri, 06 Nov 2009)
    Log Message:
    Fix the textLayout build number that is set in the main build.xml to match what will be set when the build machine does NOT do the build
    QE notes: no
    Doc notes: no
    Bugs: no
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/air-config.xml
        flex/sdk/trunk/frameworks/flex-config.xml

    Thats good news.

  • How to set buildID.xml and custom.properties in SDK

    Hello,
    I just completed a new build deployment of SAP ME5.2, because after I deployed the new version, I don't think I have set a
    correct version number.Can you someone give me a sample how to set the buildID.xml and custom.properties? I am a new on the SAP ME5.2
    The Base version is ME_Base_5.2.5.16.5_netweaver-71_Update.zip and
    MEClient_Base_5.2.5.16.5_netweaver-71_Update.zip. the HB customzation
    version is ME_xxxxxx_2.0.0.0.x_netweaver-71.
    Within the sap note 1484551, you mentioned we need change the
    SDKInstallDir/build/buildID.xml file, here is the context of the file:
    buildID.xml -
    <?xml version="1.0" encoding="UTF-8"?>
    <buildID xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <customer>XXXXXX</customer>
    <revision>1.0.0.0</revision>
    <build>1</build>
    </buildID>
    buildID.xml -
    1. how can we change the revision and build?
    There is another file BuildToolDir/build/script/custom.properties, here
    is the file context:
    custom.properties----
    This file contains build properties used to configure the build
    system.
    The name of the software vendor implementing the customizations.
    vendor.name=xxxxxxxxx
    Vendor build identifier. This value is used to uniquely identify
    customizations built by a particular vendor for a particular customer
    and base
    application version.
    This is also used in path locations and in naming certain build
    artifacts, like the custom EJB module and the utility classes archive.
    vendor.id=xxxxxxxxx
    The installation of the J2EE engine installed in the development
    environment.
    ex. C:/usr/sap/CE1\J00
    j2ee.instance.dir=J2EEInstanceDir
    The web context path used to access the main web application. This
    is used by the build to set the
    context-root value in application.xml after an update has been
    imported.
    web.context.path=
    The web context path used to access the production XML interface web
    application. This is used by the build to set the
    context-root value in application.xml after an update has been
    imported.
    xml.context.path=
    The web context path to access resources from the web extension
    application, like images and work instruction HTML files.
    web-ext.context.path=web-ext
    The target database vendor. Valid values are 'oracle' or 'sqlserver'.db.vendor=ORACLE
    The JDBC driver configured for the application server.
    db.drivername=VMJDBC
    JDBC connection propertes for the WIP (Work In Process) database.
    This is the primary application database.
    db.wip.driverclassname=
    db.wip.driver.url=
    db.wip.host=
    db.wip.port=
    db.wip.sid=
    db.wip.user=
    db.wip.password=
    JDBC connection propertes for the ODS (Open Data Store) database.
    This is the offline reporting and archiving database.
    db.ods.driverclassname=
    db.ods.driver.url=
    db.ods.host=
    db.ods.port=
    db.ods.sid=
    db.ods.user=
    db.ods.password=
    Flag indicating whether to add DPMO NC codes to NC idat files when a
    new update is imported. This value is initially
    set by the installer according the the user selection.
    dpmo.nc.codes=
    The default locale used by the production system. The default locale
    is the locale used to display locale
    specific text and messages when the requested locale is not
    available. This property does not need to
    be set if the default locale is english.
    default.locale=en
    Used when running the build from Eclipse to locate the java compiler
    used by the WebLogic EJB compiler.
    jdk.home=C:/Program Files/Java/jdk1.5.0_20
    Compiler debug mode. If set to 'true', debug symbols will be
    compiled into the byte code.
    compile.debug=true
    Keystore alias
    security.alias=xxxxx
    Keystore password
    security.storepass=ChangeIt
    Key password
    security.keypass=ChangeIt
    Keystore type (jks=default,jceks,pkcs12)
    security.storetype=jks
    Optional source control build identifier that is to be displayed with
    standard version information.
    scs.build.ID=
    Optional extended version information to be displayed with standard
    version information.
    ext.info=
    custom.properties----
    2. How can we change this here?
    Regards,
    Leon Lu
    Edited by: Leon Lu on Aug 4, 2011 11:14 AM
    Edited by: Leon Lu on Aug 4, 2011 11:21 AM

    Hi,
    I created one request with logo in the header an page in the footer etc. and called StyleSheet. After you can import this formats by each request.
    You can do this in compound layout.
    Regards,
    Stefan

  • [svn] 3680: Modifying ant build.xml to allow for a local. properties for individual developer build config.

    Revision: 3680
    Author: [email protected]
    Date: 2008-10-16 07:58:21 -0700 (Thu, 16 Oct 2008)
    Log Message:
    Modifying ant build.xml to allow for a local.properties for individual developer build config. Also moving ja_JP locale to the other.locales target (this is called during build machine packaging and isn't needed by dev by default).
    QE: No
    Doc: No
    Checkintests: Pass
    Reviewer: Discussed with Jim
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml

    I tried
    ant deployTestSuites
    this works. If i do that with the wrong domain (dep_cotrol vs dep_me) name it fails with
    ORABPEL-02052Cannot lookup BPEL domain.The BPEL domain "dep_cotrol" cannot be found; the domain may not have initialized properly.Please verify that the BPEL domain loader has a valid set of initialization properties in the application properties file.
    So i think my config is ok. There is a bug in this ant bpelTest which ignores the domain?

  • SOADEMO - deploying SOAOrderBooking build.xml "Could not get Deployment M..

    Hi All, I have seen a few issues with the SOA demo but still not able to resolve my issue so posting a thread.
    First off using SOA suite 10.1.3.1.0 and Jdev 10.1.3.1.0, so the same versions. Downloaded the demo from the same oracle page as downloaded suite from etc so should be compatible. Installed SOA Suite on an OE Linux 4 update 5 install. Using jdev on Vista laptop. I appreciate that these are not the most current versions but they should work as on the Oracle site and I am not able to install newer versions for the next few weeks.
    Going through the install guide for the demo and hitting a problem with deploying the build.xml for SOAOrderBooking as a few others have. The first error I am getting is:
    [deployDecisionServices] Failed at "Could not get DeploymentManager".
    I have checked the build.properties file which matches exactly that from the 'SelectManufacturer' which deployed fine.
    One of the main differences between these two is that the 'SelectManufacturer' does not have any decision services.
    One thread I saw suggested changing in the properties file
    platform=ias_10g
    #platform=oc4j_10g
    to
    # platform=ias_10g
    platform=oc4j_10g
    I did do this and the deployment when further but then fails at a later stage. I should not have to make this change anyway as I am using ias_10g so I have gone back to the original. Why would this change allow me to get further?? Appreciate any comments on this bit apart from my general problem.
    Any ideas why the deployment of the decision services would fail?
    I have spent a fair bit of time as you do trying to resolve it but no luck so any help greatly appreciated. Searched google, metalink, technet etc.
    FYI I have edited the properties file to use a different port for HTTP etc. Again these settings worked fine for 'SelectManufacturer' so do not think there is a problem with the URI being used.
    Also appreciate on debugging could anyone tell me under the IAS control panel which log component I should set to get some more debug info on this deployment error. I have tried a few without success and cannot find a clear explanation of the various component logs.
    Thanks for reading my post Cel

    Hi James, thanks again for your reply.
    I went on to the linux server and ran the below to validate the URI:
    /oracle/product/10.1.3.1/OracleAS_1/jdk/bin/java -jar /oracle/product/10.1.3.1/OracleAS_1/j2ee/home/admin_client.jar deployer:oc4j:opmn://del4100.cel:6003/appserver/oc4j_soa oc4jadmin <password> -validateURI
    This is the same command being executed by jdeveloper when I try to deploy the decision service.
    I get the same error as with jdev:
    Failed at "Could not get DeploymentManager".
    I had a further look at the command and omitted the name of the application server instance which in my case is 'appserver', the default when you install SOA Suite.
    so now ran:
    /oracle/product/10.1.3.1/OracleAS_1/jdk/bin/java -jar /oracle/product/10.1.3.1/OracleAS_1/j2ee/home/admin_client.jar deployer:oc4j:opmn://del4100.cel:6003/oc4j_soa oc4jadmin <password> -validateURI
    This validated the successfully. Went back to jdev and commented out the line from the build.properties:
    # asinstancename=appserver
    Re-ran the ant build and this time the deployment of the decision service succeeded.
    This has now failed on the next stage of the build on compiling the bpel process SOAOrderBooking which I shall look at now.
    Do you know why the above would not work with the appserver instance name. I have checked and it is the correct name and spelling?
    I have another error now on the next stage of the build and wonder if this is related to it.
    The error I am getting is that could not read the wsdl and:
    Error happened when reading wsdl at "http://localhost:7777/esb/wsil/Fulfillment/OrderFulfillment?wsdl", because "Failed to read wsdl file at: "http://localhost:7777/esb/wsil/Fulfillment/OrderFulfillment?wsdl", caused by: java.net.ConnectException. : Connection refused: connect".
    Thanks for your suggestions and welcome any other comments on this next error as I wonder if it is related to the first one that I have worked around.
    Thanks Cel

  • Why not all jars picked up by ojdeloy and how to generate build.xml from command line and not JDEV GUI - quick question

    Hi All
    We have 11.1.1.7 ojdeploy to compile our app.
    We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
    eg:
      <path id="classpath">
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
    </path>
    Log Output -
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
    [ora:ojdeploy] -g
      [ora:ojdeploy] -Xlint:all
      [ora:ojdeploy] -Xlint:-cast
    [ora:ojdeploy] -Xlint:-empty
      [ora:ojdeploy] -Xlint:-fallthrough
      [ora:ojdeploy] -Xlint:-path
      [ora:ojdeploy] -Xlint:-serial
      [ora:ojdeploy] -Xlint:-unchecked
      [ora:ojdeploy] -source 1.6
      [ora:ojdeploy] -target 1.6
      [ora:ojdeploy] -verbose
      [ora:ojdeploy] -encoding Cp1252
      [ora:ojdeploy] -classpath
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
      [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
    1- Is it because it depends on how jpr or jws are configured ?
    2- 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) ?

    The first  warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
    The second warning is about you not installing acpid.
    The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
    And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
    When I do lspci -v I get:
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
    I/O ports at d0f0 [size=8]
    Memory at c0000000 (32-bit, prefetchable) [size=256M]
    Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0
    Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
    Capabilities: <access denied>
    And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
    Last edited by gog (2009-10-15 23:59:49)

  • Error in IKM SQL to JMS XML Append SQLException: Parameter not set

    Hi I am getting following error please can any one help its oracle to JMS XML integration
    ODI-1228: Task jms_vendor_xml (Integration) fails on the target JMS_QUEUE_XML connection jms_xml_vendor.
    Caused By: java.sql.SQLException: java.sql.SQLException: Parameter not set
        at com.sunopsis.jdbc.driver.JMSXMLPreparedStatement.addBatch(JMSXMLPreparedStatement.java:62)
        at oracle.odi.runtime.agent.execution.sql.BatchSQLCommand.execute(BatchSQLCommand.java:42)
        at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
        at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
        at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:87)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
        at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
        at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
        at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
        at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
        at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
        at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
        at java.lang.Thread.run(Thread.java:662)
    Caused by: java.sql.SQLException: Parameter not set
        at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatementRedirector.addBatch(SnpsXmlPreparedStatementRedirector.java:155)
        at com.sunopsis.jdbc.driver.JMSXMLPreparedStatement.addBatch(JMSXMLPreparedStatement.java:58)
        ... 17 more
    Source Code
    select    
        FNL_VENDORT.COMPANY       SNPSFILENAME,
        FNL_VENDORT.VNAME       SNPSFILEPATH,
        FNL_VENDORT.ACCTNUM       VENDORSPK
    from    AMIT.FNL_VENDORT   FNL_VENDORT
    where   
        (1=1)   
        Target Code
    Insert into
    VENDORS
        SNPSFILENAME,
        SNPSFILEPATH,
        SNPSLOADDATE,
        VENDORSPK
    values
        :SNPSFILENAME,
        :SNPSFILEPATH,
        :SNPSLOADDATE,
        :VENDORSPK
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=VENDORSSNP$CRLOAD_FILE=VENDORS.VENDORSSNP$CRFILE_FORMAT=SNP$CRFILE_SEP_FIELD=SNP$CRFILE_SEP_LINE=SNP$CRFILE_FIRST_ROW=SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=SNPSFILENAMESNP$CRTYPE_NAME=VARCHARSNP$CRORDER=1SNP$CRLENGTH=0SNP$CRSCALE=0SNP$CRPRECISION=255SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=SNPSFILEPATHSNP$CRTYPE_NAME=VARCHARSNP$CRORDER=2SNP$CRLENGTH=0SNP$CRSCALE=0SNP$CRPRECISION=255SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=SNPSLOADDATESNP$CRTYPE_NAME=VARCHARSNP$CRORDER=3SNP$CRLENGTH=0SNP$CRSCALE=0SNP$CRPRECISION=255SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=VENDORSPKSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=4SNP$CRLENGTH=0SNP$CRSCALE=0SNP$CRPRECISION=10SNP$CR$$SNPS_END_KEY*/
    /*$$JMS_START_KEY
    JMSDELIVERYMODE=2,
    JMSTYPE=,
    JMSEXPIRATION=0,
    JMSPRIORITY=9,
    MESSAGETIMEOUT=3000,
    NEXTMESSAGETIMEOUT=,
    MESSAGEMAXNUMBER=,
    DURABLE=,
    CLIENTID=,
    MESSAGESELECTOR=
    $$JMS_END_KEY*/

    Hi,
    Try setting all values (without <default>:) to required fields in Target properties to IKM SQL to JMS XML append.
    Thanks

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

  • WLI Application Build issues - The apt.factory.path was not set

    Hi,
    I have been trying to execute the Workshop exported Ant Script on Remote machine. In my local machine where i have access to workshop i am able to run the ant script whithout any issues. But when i try the same script on Remote machine (unix) I ma getting the below exception.
    In my application, there are two projects. One web application and one EJB project, and i am trying to makr Ear file out of this.
    If any of you have faced this issue or if you have any inputs pl help me out.
    /opt/buildserver/home/e0271019/WFM_1031_migrated_Source/Migrated_Code_With_AntScript/wfm/build.xml:340: The following error occurred while executing this line:
    /opt/buildserver/home/e0271019/WFM_1031_migrated_Source/Migrated_Code_With_AntScript/wfm/build.xml:690: The apt.factory.path was not set, but the beehive annotation processors must be on the apt factory path.
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Thanks
    Chandran

    Hi,
    I have been trying to execute the Workshop exported Ant Script on Remote machine. In my local machine where i have access to workshop i am able to run the ant script whithout any issues. But when i try the same script on Remote machine (unix) I ma getting the below exception.
    In my application, there are two projects. One web application and one EJB project, and i am trying to makr Ear file out of this.
    If any of you have faced this issue or if you have any inputs pl help me out.
    /opt/buildserver/home/e0271019/WFM_1031_migrated_Source/Migrated_Code_With_AntScript/wfm/build.xml:340: The following error occurred while executing this line:
    /opt/buildserver/home/e0271019/WFM_1031_migrated_Source/Migrated_Code_With_AntScript/wfm/build.xml:690: The apt.factory.path was not set, but the beehive annotation processors must be on the apt factory path.
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Thanks
    Chandran

  • "Build.xml file not exist"

    Hey Guys,
    i am currently involving in a servelet project (RendreX). i want to install apachi ant as a prerequirement. i am using windows 2003 server. I already downloded latest ant version and apache tomcat4.0. Also i have set all the class path,ANT-HOME(C:\ANT) and other relevent paths. But when i run ant command in the command prompt(C:\ANT>ant)will generate error state that "build.xml" file can't be found. Have i done any wrong thing here? Can anybody give a way that i can easily install apache ant on winows.
    It would be greatly appriciated if u can send me some advice to over come this problem.
    Best Regards
    Mohan

    build.xml is the default build file assumed by ant. You have to provide a build file to control what you expect from ant to do.

  • Build.xml does not exist!

    Hi ,
    I'm doing the converter program (EJB) from J2EE1.4 Tutorial. I installed J2EE1.4 already. I copied converter programs to different directory, not the same dir like tutorial. When I type-- c:\sun\appserver\bin> asant build.xml, it shows build.xml does not exist. I copied build.xml to the same dir of converter programs.
    (1) Do I need to install ANT ??
    (2) What else I need to do?
    Thanks
    Emily

    Yes you need ANT installed to use it, but it would seem you have it installed. Make sure you are running ANT in the same directory as the build.xml file. At least, that's the way I've always done/seen it.

Maybe you are looking for

  • Request.getParameter(

    I have two combo boxes. whenever a user selects some value in first combo box then using ajax code i am getting the contents of other combo box. The first combobox is department list combo box and second one is employee list combo box. The contents o

  • How do I sync address book?

    While in my Mail, I noticed that my address book is almost empty. This doesn't make sense as my Address Book application is quite full. I then see a notice to sync it with my desktop Address book. I follow the directions to open System Preferences -

  • Permanent Job Opportunity - Oracle BI Data Warehouse Developer Chicago, IL

    Submit Resumes to [email protected] The Business Intelligence Specialist will play a critical role in designing, developing, deploying, and supporting data warehouse/data mart applications. In this role, the person will be responsible for all BI

  • Function module for converting number to exponential???

    Hi All   please tell me Function module for converting number to exponential. Deepak

  • Is there someone can tell the status of my thinkpad T401 ?

    I bought a thinkpad T401 in April 2011. But It had 3 problems in 3 month(fan, battery and Video) Last weekend, I received a box from Lenovo and I packed my laptop then sent it back. But now, I don't know the status of my laptop. I`m a PhD student all