Obfuscate in build.xml

Hi,
does obfuscating jars in ant in windows not work? I have the following code & get the error that seems to be related to obfuscation.
<project name="sims" default="CustomerDist" basedir=".">
  <property file="ant.properties"/>
  <property environment="localenv"/>
  <!--
  <taskdef name="proguard" classname="proguard.ant.ProGuardTask" classpath="builder/proguard.jar" />
  -->
  <taskdef classpath="jcoverage.jar" resource="tasks.properties"/>
  <target name="init">
    <fail unless="PROPERTIESLOADED">missing PROPERTIESLOADED, have you renamed ant.properties.sample to ant.properties?</fail>
    <available property="elandlibs_DirectoryExists"
               file="${elandlibs}"
               type="dir"
               />
    <fail unless="elandlibs_DirectoryExists">Cannot find the shared 'javalibs' CVS project. Have you checked this project out of CVS and set the elandlibs property in ant.properties?</fail>
    <mkdir dir="${testbuild}"/>
    <mkdir dir="${build}"/>
    <mkdir dir="${build2}"/>
    <mkdir dir="${dist}"/>
    <mkdir dir="distInternal"/>
    <mkdir dir="${libdir}"/>
    <fail unless="OBFUSCATE_JAR">missing environment variable OBFUSCATE_JAR from ant.properties</fail>
      <!-- Decide whether to OBFUSCATE  the sims jar file-->
      <condition property="obfuscate">
       <not><or>
        <equals arg1="${OBFUSCATE_JAR}" arg2="NO"/>
        <equals arg1="${OBFUSCATE_JAR}" arg2="No"/>
        <equals arg1="${OBFUSCATE_JAR}" arg2="no"/>
        <equals arg1="${OBFUSCATE_JAR}" arg2="False"/>
        <equals arg1="${OBFUSCATE_JAR}" arg2="FALSE"/>
       </or></not>
      </condition>
    <copy todir="${libdir}">
      <fileset dir="extra">
         <include name="com.ibm.mq.jar"/>
         <include name="com.ibm.mqjms.jar"/>
         <include name="elandjavadev-v2.1.008.jar"/>
         <include name="jbcl.jar"/>
         <include name="jgl3.1.0.jar"/>
      </fileset>
    </copy>
    <copy todir="${libdir}">
      <fileset dir="${elandlibs}">
         <include name="xmlrpc-1.1.jar"/>
         <include name="xercesImpl-2.4.jar"/>
         <include name="xml-apis-2.4.jar"/>
         <include name="xmlParserAPIs-2.4.jar"/>
         <include name="elandsdk-1.0.3.jar"/>
         <include name="rwos-v2.4.0.001_int-javaapi.jar"/>
         <include name="log4j-1.2.8.jar"/>
         <include name="oro-2.0.8.jar" />
         <include name="dom4j-1.3.jar" />
            <include name="castor-0.9.5.3-xml.jar"/>
            <include name="jta1.0.1.jar"/>
            <include name="xercesImpl-2.4.jar"/>
      </fileset>
    </copy>
      <path id="castor.classpath">
         <fileset dir="${elandlibs}">
            <include name="castor-0.9.5.3-xml.jar"/>
            <include name="jta1.0.1.jar"/>
            <include name="xercesImpl-2.4.jar"/>
         </fileset>
      </path>
  </target>
  <target name="installer" depends="CustomerDist">
     <copy todir="install">
         <fileset dir="${dist}"/>
     </copy>
     <ant antfile="build.xml" dir="install" target="installer"/>
  </target>
   <target name="refresh_config_beans" depends="init,cleancastorfiles">
       <property name="target_schema" value="RunwaySimulatorConfig.xsd" />
       <echo>Generating code for XSD Schema: ${target_schema}</echo>
      <copy file="RunwaySimulatorConfig.xsd" tofile="src/RunwaySimulatorConfig.xsd"/>
       <java classname="org.exolab.castor.builder.SourceGenerator"
        fork="yes" dir="${src}" classpathref="castor.classpath">
      <arg line="-i ${target_schema} -f -dest . -nomarshall -package com.elandtech.sims.config.castor"/>
       </java>
       <delete file="src/RunwaySimulatorConfig.xsd"/>
   </target>
   <target name="cleancastorfiles" depends="init">
      <delete dir="${src}/com/elandtech/sims/config/castor"/>
        <echo>Deleting the directory: ${src}/com/elandtech/sims/config/castor}</echo>
   </target>
  <target name="compile" depends="init,refresh_config_beans" description="compile the source " >
    <copy todir="${build}">
      <fileset dir="src" includes="**/*.jpg"/>
    </copy>
    <javac srcdir="${src}" destdir="${build}" debug="on" optimize="on" deprecation="off">
      <classpath>
        <fileset dir="${libdir}">
          <include name="**/*.jar" />
        </fileset>
        <pathelement path="${build}" />
      </classpath>
    </javac>
    <copy todir="${build}">
      <fileset dir="src" includes="**/*.properties"/>
    </copy>
    <copy todir="${build}">
      <fileset dir="src" includes="**/*.gif"/>
    </copy>
    <copy todir="${build}">
      <fileset dir="src" includes="**/*.jpg"/>
    </copy>
    <copy todir="${build}">
      <fileset dir="src" includes="**/*.txt"/>
    </copy>
    <copy todir="${build}">
      <fileset dir="src" includes="**/*.ghost"/>
    </copy>
    <copy todir="${build}">
      <fileset dir="src" includes="**/*.dec"/>
    </copy>
    <copy todir="${build}">
      <fileset dir="src" includes="**/*.nan"/>
    </copy>
  </target>
  <target name="jar" depends="compile" description="generate JAR file" >
    <mkdir dir="${dist}/lib"/>
    <copy todir="${dist}/lib">
      <fileset dir="${libdir}"/>
    </copy>
    <jar destfile="${dist}/lib/sims.jar"  manifest="jars/sims.mf" >
       <fileset dir="${build}">
           <exclude name="**/itc/**"/>
           <exclude name="**/ghostengines/ITCGhostEngine.class"/>
           <exclude name="**/ghostengines/runway/**"/>
           <exclude name="**/ghostengines/RunwayGhostEngine.class"/>
       </fileset>
    </jar>
    <jar destfile="${dist}/lib/GhostEngineRunway.jar"
       basedir="${build}"
       excludes="*"
       includes="**/ghostengines/runway/** **/ghostengines/RunwayGhostEngine.class **/ghostengines/RequestResponsePair.class" />
    <jar destfile="${dist}/lib/GhostEngineRunway.jar"
       basedir="${build}"
       excludes="*"
       includes="**/ghostengines/runway/** **/ghostengines/RunwayGhostEngine.class" />
    <jar destfile="${dist}/lib/GhostEngineITC.jar"
       basedir="${build}"
       excludes="*"
       includes="**/itc/** **/ghostengines/ITCGhostEngine.class" />
    <!-- <echo>Obfuscate avoidance set to ${localenv.OBFUSCATE}</echo> -->
    <echo>Obfuscate avoidance set to ${OBFUSCATE_JAR}</echo>
  </target>
  <target name="obfuscate" depends="jar" description="obfuscate code" if="obfuscate" >
    <move file="${dist}/lib/sims.jar" tofile="${dist}/lib/sims_unobf.jar"/>
  <taskdef resource="proguard/ant/task.properties"
           classpath="builder/proguard.jar" />
   <proguard ignorewarnings="on" >
        -injars       ${dist}/lib/sims_unobf.jar
        -outjars      ${dist}/lib/sims.jar
        -libraryjars  ${java.home}/lib/rt.jar
        -printmapping progaurd_mapping.txt
        -keep public class com.elandtech.sims.Main {
            public static void main(java.lang.String[]);
        -dontshrink
        -dontoptimize
        -renamesourcefileattribute SourceFile
        -keepattributes InnerClasses,SourceFile,LineNumberTable,Deprecated,Signature,*Annotation*,EnclosingMethod
        <!-- Ghost Engine Classes.. -->
        -keep public class com.elandtech.sims.ghostengines.GhostEngine
        -keep public class com.elandtech.sims.ghostengines.GhostEngine  {
            public protected *;
        -keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine
        -keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine {
            public protected *;
        -keep public class com.elandtech.sims.ghostengines.SimsGhostEngine
        -keep public class com.elandtech.sims.ghostengines.SimsGhostEngine {
            public protected *;
        -keep public class com.elandtech.sims.ghostengines.RequestResponsePair
        -keep public class com.elandtech.sims.ghostengines.RequestResponsePair {
            public protected *;
        -keep public class com.elandtech.sims.ghostengines.ITCGhostEngine
        -keep public class com.elandtech.sims.ghostengines.ITCGhostEngine {
            public protected *;
        -keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine
        -keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine {
            public protected *;
        <!-- Logging interface.. -->
        -keep public class com.elandtech.sims.logging.LogManager
        -keep public class com.elandtech.sims.logging.LogManager {
            public protected *;
        -keep public class com.elandtech.sims.logging.LogMessage
        -keep public class com.elandtech.sims.logging.LogMessage {
            public protected *;
        -keep public class com.elandtech.sims.logging.LogGenerator
        -keep public class com.elandtech.sims.logging.LogGenerator {
            public protected *;
        -keep public class com.elandtech.sims.logging.Log4jLogger {
            public protected *;
        -keep public class com.elandtech.sims.logging.LogListener. {
            public protected *;
        -keep public class com.elandtech.sims.logging.FileLogger {
            public protected *;
        <!-- Remote interface.. -->
        -keep public class com.elandtech.sims.api.Handler
         -keep public class com.elandtech.sims.api.Handler {
              public protected *;
        -keep public class com.elandtech.sims.api.RemoteClient
          -keep public class com.elandtech.sims.api.RemoteClient {
               public protected *;
        <!-- Configuration classes.. -->
        -keep public class com.elandtech.sims.config.SimsSettings
        -keep public class com.elandtech.sims.config.ConnectionSettings
        -keep public class com.elandtech.sims.config.SimsSettings {
            public protected *;
        -keep public class com.elandtech.sims.config.ConnectionSettings
        -keep public class com.elandtech.sims.config.ConnectionSettings {
            public protected *;
        <!-- Utility classes.. -->
        -keep public class com.elandtech.eland.commonx.text.EString {
            public protected *;
    </proguard>
    <delete file="${dist}/lib/sims_unobf.jar"/>
  </target>
  <!-- Create a Customer distribution. -->
  <target name="CustomerDist" depends="jar, obfuscate, readversion" description="generate the distribution" >
   <copy file="scripts/startup.bat" tofile="${dist}/startup.bat"/>
    <mkdir dir="${dist}/docs"/>
    <copy todir="${dist}/docs">
      <fileset dir="docs" includes="**/*.pdf"/>
    </copy>
    <copy file="RunwaySimulatorConfig.xsd" tofile="${dist}/docs/RunwaySimulatorConfig.xsd"/>
    <copy todir="${dist}">
      <fileset dir="configdist"/>
    </copy>
    <zip zipfile="RunwayHostsSimCustDist${version}.zip">
      <fileset dir="${dist}"/>
    </zip>
  </target>
  <target name="clean" description="clean up" >
    <delete dir="${testbuild}"/>
    <delete dir="${junitreports}"/>
    <delete dir="${build}"/>
    <delete dir="build2"/>
    <delete dir="${dist}"/>
    <delete dir="${libdir}"/>
    <delete dir="distInternal"/>
    <delete dir="tmp"/>
    <delete>
       <fileset dir="." includes="sims-**.zip"/>
    </delete>
  </target>
  <taskdef name="genjar" classname="org.apache.tools.ant.taskdefs.optional.genjar.GenJar" classpath="builder/GenJar.jar"/>
  <path id="classpath">
     <fileset dir="${libdir}">
         <include name="**/*.jar"/>
     </fileset>
  </path>
    <path id="classpath.sims">
        <pathelement location="${build}"/>
        <fileset dir="${libdir}">
            <include name="**/*.jar"/>
        </fileset>
    </path>
    <path id="classpath.build">
       <pathelement location="${build}"/>
    </path>
  <target name="includeAllResources" >
          <unzip dest="build2">
            <patternset>
                <include name="**/*.properties"/>
                <exclude name="**/*.java"/>
                <exclude name="**/*.class"/>
                <include name="**/*.gif" />
                <include name="**/*.jpg" />
            </patternset>
            <fileset dir="extra">
                <include name="**/*.jar"/>
                <include name="**/*.zip"/>
            </fileset>
        </unzip>
  </target>
  <target name="gen-obfuscate"
          depends="jar"
          description="obfuscate the complete jar" if="obfuscate">
   <taskdef resource="proguard/ant/task.properties"
           classpath="builder/proguard.jar" />
   <move file="distInternal/sims.jar" tofile="distInternal/sims_temp.jar"/>
   <proguard>
        -injars       distInternal/sims_temp.jar
        -outjars      distInternal/sims.jar
        -libraryjars  ${java.home}/lib/rt.jar
        -printmapping progaurd_mapping.txt
        -keep public class com.elandtech.sims.Main {
            public static void main(java.lang.String[]);
        -dontshrink
        -dontoptimize
        -renamesourcefileattribute SourceFile
        -keepattributes InnerClasses,SourceFile,LineNumberTable,Deprecated,Signature,*Annotation*,EnclosingMethod
        <!-- Ghost Engine Classes.. -->
        -keep public class com.elandtech.sims.ghostengines.GhostEngine
        -keep public class com.elandtech.sims.ghostengines.GhostEngine  {
            public protected *;
        -keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine
        -keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine {
            public protected *;
        -keep public class com.elandtech.sims.ghostengines.SimsGhostEngine
        -keep public class com.elandtech.sims.ghostengines.SimsGhostEngine {
            public protected *;
        -keep public class com.elandtech.sims.ghostengines.RequestResponsePair
        -keep public class com.elandtech.sims.ghostengines.RequestResponsePair {
            public protected *;
        -keep public class com.elandtech.sims.ghostengines.ITCGhostEngine
        -keep public class com.elandtech.sims.ghostengines.ITCGhostEngine {
            public protected *;
        -keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine
        -keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine {
            public protected *;
        <!-- Logging interface.. -->
        -keep public class com.elandtech.sims.logging.LogManager
        -keep public class com.elandtech.sims.logging.LogManager {
            public protected *;
        -keep public class com.elandtech.sims.logging.LogMessage
        -keep public class com.elandtech.sims.logging.LogMessage {
            public protected *;
        -keep public class com.elandtech.sims.logging.LogGenerator
        -keep public class com.elandtech.sims.logging.LogGenerator {
            public protected *;
        -keep public class com.elandtech.sims.logging.Log4jLogger {
            public protected *;
        -keep public class com.elandtech.sims.logging.LogListener. {
            public protected *;
        -keep public class com.elandtech.sims.logging.FileLogger {
            public protected *;
        <!-- Remote interface.. -->
        -keep public class com.elandtech.sims.api.Handler
        -keep public class com.elandtech.sims.api.RemoteClient
        <!-- Configuration classes.. -->
        -keep public class com.elandtech.sims.config.SimsSettings
        -keep public class com.elandtech.sims.config.ConnectionSettings
        -keep public class com.elandtech.sims.config.SimsSettings {
            public protected *;
        -keep public class com.elandtech.sims.config.ConnectionSettings
        -keep public class com.elandtech.sims.config.ConnectionSettings {
            public protected *;
        <!-- Utility classes.. -->
        -keep public class com.elandtech.eland.commonx.text.EString {
            public protected *;
   </proguard>
    <delete file="distInternal/sims_temp.jar"/>
  </target>
  <!-- Create a combined distribution where all the classes and resources are combined in to one file. -->
  <target name="InternalDist"
          depends="readversion,jar,includeAllResources"
          description="Generates all in one Jar file">
    <copy file="${dist}/lib/sims.jar" tofile="distInternal/sims.jar"/>
    <!-- first perform the obfuscate  on the core SIMS product -->
    <antcall target="gen-obfuscate"/>
    <!-- Create a sims.jar file containing all the files required to run the sims-->
    <genjar jarfile="distInternal/sims${version}.jar">
      <class name="com.elandtech.sims.Main"/>
      <class name="com.elandtech.sims.ghostengines.SimsGhostEngine"/>
      <class name="com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine"/>
      <class name="com.elandtech.sims.ghostengines.RunwayGhostEngine"/>
      <class name="com.elandtech.sims.ghostengines.ITCGhostEngine"/>
      <library jar="${libdir}/castor-0.9.5.3-xml.jar"/>
      <library jar="${libdir}/log4j-1.2.8.jar"/>
      <library jar="distInternal/sims.jar"/>
      <library jar="${libdir}/xmlrpc-1.1.jar"/>
      <library jar="${libdir}/xml-apis-2.4.jar"/>
      <library jar="${libdir}/xercesImpl-2.4.jar"/>
      <resource>
         <fileset dir="${build}">
           <include name="**/*.properties" />
           <include name="**/*.gif" />
           <include name="**/*.jpg" />
         </fileset>
      </resource>
      <resource>
         <fileset dir="${build2}">
           <include name="**/*.properties" />
           <include name="**/*.gif" />
           <include name="**/*.jpg" />
         </fileset>
      </resource>
      <classpath>
          <pathelement location="distInternal/sims.jar"/>
        <pathelement location="build"/>
        <fileset dir="${libdir}">
            <include name="**/*.jar"/>
        </fileset>
      </classpath>
      <manifest template="${src}/META-INF/sims.mf"/>
    </genjar>
    <copyfile src="scripts/startup_dist2.bat" dest="distInternal/startup.bat"/>
    <mkdir dir="distInternal/docs"/>
    <copy todir="distInternal/docs">
      <fileset dir="docs" includes="**/*.pdf"/>
    </copy>
    <copy file="RunwaySimulatorConfig.xsd" tofile="distInternal/docs/RunwaySimulatorConfig.xsd"/>
    <replace file="distInternal/startup.bat" token="${SIMS_FILENAME}" value="sims_${version}.jar"/>
    <copy todir="distInternal">
      <fileset dir="configdist"/>
    </copy>
    <zip zipfile="RunwayHostsSimIntDist${version}.zip">
      <fileset dir="distInternal"/>
    </zip>
    <delete file="distInternal/sims.jar"/>
  </target>
  <!--  ************************************************************
                     Create a jar containing the
                     Ghost Runway Ghost Engine API Only
        ************************************************************ -->
  <target name="genGhostEngine"
          depends="readversion,compile,includeAllResources"
          description="Generates all in one Jar file">
      <!-- -->
    <genjar jarfile="ghostEngine.jar">
      <class name="com.elandtech.sims.ghostengines.sample.TestRunwayGhost"/>
      <!--
      <resource>
         <fileset dir="${build}">
           <include name="**/*.properties" />
           <include name="**/*.gif" />
           <include name="**/*.jpg" />
           <include name="**/*.dec" />
           <include name="**/*.ghost" />
           <include name="**/*.txt" />
         </fileset>
      </resource>
      <resource>
         <fileset dir="${build2}">
           <include name="**/*.properties" />
           <include name="**/*.gif" />
           <include name="**/*.jpg" />
           <include name="**/*.dec" />
           <include name="**/*.ghost" />
           <include name="**/*.txt" />
         </fileset>
      </resource>
      -->
      <classpath refid="classpath.sims" />
      <!--<manifest template="${src}/META-INF/sims.mf"/> -->
    </genjar>
  </target>
  <!-- utility task to get version information and put it in to enviornment variables ${version} and ${cvsversion}-->
  <taskdef name="getversion" classname="com.elandtech.anttasks.GetVersion" classpath="builder/elandAntTasks.jar"/>
  <target name="readversion" >
     <getversion file="${app.version.file}" />
     <echo>Reading version information from file = ${app.version.file}</echo>
     <echo>version = ${version}</echo>
     <echo>cvsversion = ${cvsversion}</echo>
  </target>
  <!--
      These targets are defined in versionbuild.xml
  -->
  <!-- Tag all files using the variable ${cvsversion}  read in from ${app.version.file} -->
   <target name="cvstag" depends="readversion">
     <ant antfile="versionbuild.xml" dir="." target="cvstag"/>
  </target>
  <!-- increment mini version number-->
  <target name="newmini" >
     <ant antfile="versionbuild.xml" dir="." target="newmini"/>
  </target>
  <!-- increment minor version number-->
  <target name="newminor"  >
     <ant antfile="versionbuild.xml" dir="." target="newminor"/>
  </target>
  <!-- increment Major version number-->
  <target name="newmajor" >
     <ant antfile="versionbuild.xml" dir="." target="newmajor"/>
  </target>
  <!-- Turn beta version on-->
  <target name="betaon" >
     <ant antfile="versionbuild.xml" dir="." target="betaon"/>
  </target>
  <!-- Turn beta version off-->
  <target name="betaoff" >
     <ant antfile="versionbuild.xml" dir="." target="betaoff"/>
  </target>
  <!--
      These targets are defined in junitbuild.xml
  -->
  <target name="testall" depends="init,compile" description="Calls testall in junitbuild.xml">
     <ant antfile="junitbuild.xml" dir="." target="testall"/>
  </target>
  <target name="testsubset" depends="init,compile" description="Calls testsubset in junitbuild.xml">
     <ant antfile="junitbuild.xml" dir="." target="testsubset"/>
  </target>
  <target name="coverage" depends="init,compile" description="Calls coverage in junitbuild.xml">
     <ant antfile="junitbuild.xml" dir="." target="testall-coverage"/>
  </target>
</project>and I get th errors:
BUILD FAILED
C:\myProjects\sims\build.xml:487: The following error occurred while executing this line:
C:\myProjects\sims\build.xml:383: Expecting class path separator ';' before 'Files\Java\jre1.5.0_09/lib/rt.jar' in argument number 1
can anyone help with this please?

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.

Similar Messages

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

  • Ant: How to execute / skip tasks by property in build.xml ?

    Hi,
    I want to create a build.xml to execute / skip tasks dynamically by property in build.xml.
    eg: I can define one property "needObfuscate" in either "true" or "false". I will contruct 2 tasks for obfuscate and non-obfuscate to fullfill the 2 cases. Only one of them WILL be executed depend on the flag "needObfuscate".
    ** I know Antenna's task "wtkpackage" has an arguement "obfuscate" to set. It's an example, what I want to know is how to execute / skip the tasks.
    Task "condition" is just used to set the property in runtime.
    <condition property="result" value="User choose 001.">
    <equals arg1="001" arg2="${select}"/>
    </condition>
    There is other tasks can fullfill what I expect ?
    Please guide me how to make it.
    Thanks.

    Hi,
    I've done one build.xml like below:
    <?xml version="1.0"?>
    <project name="PropertyPromptExample" default="main" basedir=".">
    <target name="windowsTask">
    <echo>windowsTask</echo>
    </target>
    <target name="linuxTask">
    <echo>linuxTask</echo>
    </target>
    <target name="main">
    <input message="Please enter platform(0 Windows, 1 Linux):" addproperty="select"/>
    <condition property="platform" value="windowsTask">
    <equals arg1="0" arg2="${select}"/>
    </condition>
    <condition property="platform" value="linuxTask">
    <equals arg1="1" arg2="${select}"/>
    </condition>
    <antcall target="${platform}"/>
    </target>
    </project>
    :)

  • "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 classpath ref to be used in another build XML file

    Hi,
    I have ant build.xml with a target as
    <target name="build_project">
              <ant antfile="C:/projects/antbuild/build.xml" inheritAll="true">
                   <target name="clean" />
              </ant>
         </target>
         in report1.xml.
         This build.xml inturn have the classpath defined in it with the JARS added to the classpath.
         In the report2.xml,
         Can I use the classpathref in build.xml which is defined in report2.xml? Where report2.xml is imported in report1.xml as
         <import file="report2.xml" />
         If I can do so I don't have to create duplicate class path ref again adding all the JARS in report2.xml?
         Please clarify.
    Thanks.

    I've used quite a bit of ANT in the past, but I don't really know what to answer to your question that is in any way helpful to you. I remember that ANT has some form of build file inheritance built in, I've played around with it in years ago to try and crank out somewhat standardized build files with reusable elements. What I can recall is that I had to read a book on advanced ANT usage to be able to work it out, the online manual wasn't nearly enough.

  • Build.xml file

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

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

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

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

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

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

  • Error while building xml document

    Hi Everyone,
    I have a problem while building xml document.
    I have developed my java files using IBM Eclipse 3.0 and i had no problem while executing the files.
    But while i am trying to execute the same code in jdk/bin, xml document is not working..
    No error encountered while compiling but while executing when i try to print the xml string it just gives the root element name like [root : null]
    Can anyone suggest some solution?

    To the values element add xmlns:xsi and xsi:noNamespaceSchemaLocation.
    <values xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:noNamespaceSchemaLocation="file:///c:/schema.xsd">schema.xsd is schema file.

  • Error in my build.xml file (help with spotting syntax error requested)

    Hi
    I have written an XML file called build.xml for one of my applications. My XML editor complains that there is an error at the last line of the XML file, but I simply find it unable to correct the errror.
    It says:
    Fatal error:Build.xml[76:3-9]: End-Tag without start-tag
    The XML file itself:
    <project basedir="." default="deploy" name="concepts">
    <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>
    <target name="init">
    <mkdir dir="${build.dir}"></mkdir>
    <mkdir dir="${classes.dir}"></mkdir>
    <mkdir dir="${dist.dir}"></mkdir>
    </target>
    <target name="deploy" depends="clover-yes, clover-no">
    <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
    <include name="org/apache/commons/fileupload/**/*.java" />
    <include name="com/portalbook/portlets/**/*.java" />
    <include name="com/portalbook/portlets/content/**/*.java" />
    </javac>
    <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 depends="compile" name="war">
    <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 the portal-concepts-lib.jar -->
    <jar jarfile="${build.lib}/concepts-lib.jar">
    <fileset dir="${classes.dir}"></fileset>
    </jar>
    <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>
    <jar jarfile="${build.lib}/concepts.ear">
    <fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
    </fileset>
    </jar>
    <target depends="deploy" 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 depends="war" name="all"></target>
    <target name="clean">
    <delete dir="${build.dir}">
    </delete>
    <delete dir="${dist.dir}">
    </delete>
    </target>
    </project>
    I am a little inexperienced in XML files. So I am unable to spot the error.
    I would greatly appreciate it, if some kind soul were to help me out.
    thanks a lot

    The tag
    <target name="deploy" depends="clover-yes, clover-no">...is never closed.
    close that tag:
    <target name="deploy" depends="clover-yes, clover-no">
         <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
              <include name="org/apache/commons/fileupload/**/*.java" />
              <include name="com/portalbook/portlets/**/*.java" />
              <include name="com/portalbook/portlets/content/**/*.java" />
         </javac>
    </target>Second error is that the depends in there (clover-yes, clover-no) are not existing as targets in your xml.

  • Errror while Running the ant file(build.xml) when applying B2B-BPEL patch

    Hello all,
    I am trying to apply the B2B WSIL Browser patch and while running the ant file i got the following warning while backing out d3l.jar file
    echo Backing out dl3l.jar to avoid conflicts with B2B...
    move *Warning: Could not find file C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\xqs\lib\d3l.jar to copy.*
    and the following error when it was not able to find admin_client.jar file
    *java Unable to access jarfile C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\j2ee\home\admin_client.jar*
    java Java Result: 1
    echo Binding B2B WSIL Browser...
    *java Unable to access jarfile C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\j2ee\home\admin_client.jar*
    and the BUILD FAILED
    *so i created the necessary folders in the newly generated folder manually in ${env.ORACLE_HOME} i.e xqs\lib & j2ee\home and pasted the d3l.jar and admin_client.jar in these folders respectively,and again ran the ant file,this time the error is first problem is cleared i.e it is not showing the warning that it could not find* d3l.jar_+ file and it is also converting this file as d3l.jar.hide_+ *, but this time in the place of second error a new error is generated i.e* +
    Problem_
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL&gt;ant
    Buildfile: build.xml
    apply-b2b-bpel-10.1.3:
    echo Prompting for B2B repository connection parameters...
    input Please enter B2B repository hostname [http://127.0.0.1:] [http://127.0.0.1]
    172.17.4.14
    input Please enter B2B repository port 1521: 1521
    1521
    input Please enter B2B repository sid ORCL: ORCL
    orcl
    input Please enter B2B password b2b: b2b
    b2b
    input Please enter oc4j instance name home: home
    home
    input Please enter oc4j admin password welcome1: welcome1
    welcome1
    input Please enter opmn request port 6003: 6003
    6003
    echo Copying b2b.jar and tip.properties to appropriate locations...
    copy Copying 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\lib
    copy Copying 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.OB_HOME}\system\classes
    echo Backing out dl3l.jar to avoid conflicts with B2B...
    move Moving 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\xqs\lib
    echo Deploying B2B WSIL Browser ...
    echo OPMN Port is : 6003
    echo Container is : home
    echo Host is : ${env.HOSTNAME}
    echo iasadminpassword is : welcome1
    java java.lang.NoClassDefFoundError: oracle/oc4j/admin/deploy/cmdline/Oc4jAdminCmdline
    java Exception in thread "main"
    java Java Result: 1
    echo Binding B2B WSIL Browser...
    java java.lang.NoClassDefFoundError: oracle/oc4j/admin/deploy/cmdline/Oc4jAdminCmdline
    java Exception in thread "main"
    BUILD FAILED
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\build.xml:88: The following error occurred while executing this line:
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\build.xml:49: Java returned: 1
    Total time: 31 seconds
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL&gt;
    i have set the classpath for the jdk and jre files correctly and also checked it with a sample program and the file is compiling and running with correct output.then why is it showing up java.lang.NoClassDefFoundError exception.Did anyone face the same problem or have a solution for this problem if they have then plzzz help me
    thnx
    Sunny
    Edited by: sunny kay on Jan 27, 2009 4:14 AM

    Hello sri,
    Thanks for your response as you have told i have set the ORACLE_HOME = C:\product\10.1.3.1\OracleAS_1
    and added C:\product\10.1.3.1\OracleAS_1\bin to my sys path
    and i have also set the JAVA_HOME=C:\product\10.1.3.1\OracleAS_1\jdk
    and added C:\product\10.1.3.1\OracleAS_1\jdk\bin to my sys path
    and ran the patch,now its coming up with a different problem after entering the B2B repository connection parameters...
    and it is
    Problem_
    echo Deploying B2B WSIL Browser ...
    echo OPMN Port is : 6003
    echo Container is : home
    echo Host is : ${env.HOSTNAME}
    echo iasadminpassword is : welcome1
    java
    java
    java Failed at "Could not get DeploymentManager".
    java
    java This is typically the result of an invalid deployer URI format being
    supplied, the target server not being in a started state or incorrect authentic
    ation details being supplied.
    java
    java More information is available by enabling logging -- please see the
    Oracle Containers for J2EE Configuration and Administration Guide for details.
    java
    java
    java Java Result: 1
    echo Binding B2B WSIL Browser...
    java
    java
    java Failed at "Could not get DeploymentManager".
    java
    java This is typically the result of an invalid deployer URI format being
    supplied, the target server not being in a started state or incorrect authentic
    ation details being supplied.
    java
    java More information is available by enabling logging -- please see the
    Oracle Containers for J2EE Configuration and Administration Guide for details.
    java
    java
    BUILD FAILED
    The Application Server is in the started state and these are the details that i have entered when B2B Repository Connection Parameters is prompeted
    echo Prompting for B2B repository connection parameters...
    input Please enter B2B repository hostname [http://127.0.0.1]: [http://127.0.0.1]
    172.17.4.14
    input Please enter B2B repository port [1521|http://forums.oracle.com/forums/]: [1521|http://forums.oracle.com/forums/]
    1521
    input Please enter B2B repository sid ORCL: ORCL
    orcl
    input Please enter B2B password [b2b|http://forums.oracle.com/forums/]: [b2b|http://forums.oracle.com/forums/]
    b2b
    input Please enter oc4j instance name home: home
    home
    input Please enter oc4j admin password [welcome1|http://forums.oracle.com/forums/]: [welcome1|http://forums.oracle.com/forums/]
    welcome1
    input Please enter opmn request port [6003|http://forums.oracle.com/forums/]: [6003|http://forums.oracle.com/forums/]
    6003
    is anything wrong in this i have tried by giving the default host name instead of mine but result is still the same.what is the problem can you figure it out and provide me a solution.
    thnx
    Sunny

  • Compilation problem in build.xml

    Hi,
    This is my build.xml
    <?xml version="1.0"?>
    <project name="TestApp" default="compile">
    <description>TestApp</description>
    <property name="J2EE_HOME_13" value="/usr/testapp/bea921/jdk150_06"/>
    <property name="J2EE_HOME" value="${J2EE_HOME_13}"/>
    <property name="WL_HOME" value="/usr/testapp/bea921/weblogic92"/>
    <property name="WLLIB" value="${WL_HOME}/server/lib"/>
    <property name="CPATH1" value="${J2EE_HOME}/lib/tools.jar:${J2EE_HOME}/lib/j2ee.jar"/>
    <property name="CPATH2" value="${WL_HOME}/server:${WLLIB}/weblogic_sp.jar:${WLLIB}/weblogic.jar"/>
    <property name="CPATH" value="${CPATH1}:${CPATH2}"/>
    <property name="src.dir" location="/home/mashan/WEB-INF/classes/com/data" />
    <property name="classes.dir" location="/home/mashan/WEB-INF/classes/com/data" />
    <property name="javac.debug" value="on" />
    <target name="compile" description="Compile TestApp">
    <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${CPATH}" debug="${javac.debug}">
    </javac>
    </target>
    </project>
    Here both source and dest. dir are same.My build.xml is in WEB-INF/classes , when i run the build.xml it is generating a folder at /home/mashan/WEB-INF/classes/com/data/com/data/*.class files.
    Where i want to generate the class files at /home/mashan/WEB-INF/classes/com/data/*.class.
    So that the server can pick up the file from the root directory. Please do rectify this problem.
    Where i am going wrong with this build.xml. Im using weblogic server.Please do update the build.xml.
    Thanks

    I also have this problem. When I build the build.xml file, errors happen:
    Buildfile: D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\Ant\build.xml
    createDatabase:
    refreshSchema:
    BUILD FAILED
    D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\Ant\build.xml:20: The following error occurred while executing this line:
    D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\DBSchema\build.xml:89: The following error occurred while executing this line:
    D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\DBSchema\build.xml:54: The following error occurred while executing this line:
    D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\DBSchema\build.xml:26: D:\softjdevstudio1111TP2\jdbc\lib not found.
    Total time: 0 seconds
    My build.properties is set as following (meanwhile, I can connect database 10gR2):
    # Master Ant properties file for Fusion Order Demo
    # All build files refer to this master list of properties
    # $Id: build.properties 812 2007-02-20 07:14:33Z lmunsing $
    # Base Directory for library lookup
    jdeveloper.home=D:\soft\jdevstudio1111TP2
    src.home=..//..
    # JDBC info used to create Schema
    jdbc.driver=oracle.jdbc.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@localhost
    jdbc.port=1521
    jdbc.sid=orcl
    # Information about the default setup for the demo user
    db.adminUser=system
    db.adminUser.password=welcome1
    db.demoUser=FOD
    db.demoUser.password=welcome1
    db.demoUser.tablespace=USERS
    db.demoUser.tempTablespace=TEMP
    --------------------------------------------------------------------------------------

  • How to use Weblogic Server 6.1 build.xml with ant

    Hi Java's
    I have downloaded the latest version of BEA Weblogic server 6.1,they have changed the build.cmd to build.xml for compiling and building the ejb applications.they are telling that we have use $ant to run the build.xml but i couldn't able to do that.i'm getting "command not found error"..i'm using winnt.please help me how to use $ ant.Is it a seperate exe or batch file that i have to download ?if so where to download it.how to use it.please help.
    Regards
    Balaji

    To use it after installation, set your path to your
    <ant_installation_dir>\bin, then navigate to the diectory containing the build.xml. then follow the instructions in the weblogic documentation for running ant.

  • Build.xml

    what is an "build.xml" archive?
    haw can I use it?
    thanks
    Ariel

    build.xml sounds like the usual "ant" build default filename.
    Go read about "ant" here, though it's odd that you're asking about it and seemingly oblivious as to where it even comes from.
    http://ant.apache.org/

  • More than one ANT Build-Script "build.xml" in a JDev Project?

    Hi,
    were using JDev 10.1.3.3 with our Projects in which i am trying to inject the code coverage tool "Cobertura".
    We want to handle Cobertura through ANT-Targets, so we have to set up an .XML-Buildscript.
    But we already have a Build.xml to cover our deployment needs.
    I don't want to put the cobertura-targets into our Build.xml - would be a mix of purpose to me...
    Instead of having one big .xml, i wanted to have "Build.xml" and "Cobertura.xml", but when generate the latter and put in the ANT-Project it isn't recognized as an ANT-Script, but as an ordinary XML.
    With new-->Ant-->buildfile i can only generate the "Build.xml".
    Is it possible to convert a regular XML into an Ant-Script, so that JDev would recognize them?!
    regards,
    Henning
    Edited by: Haymaker84 on 03.12.2008 03:00

    whoops...
    i was able to generate another buildscript with the standart dialog!

Maybe you are looking for

  • Mouse over a dot

    I have created a component that has small points on it (ellipse with a radius of about 4). This is shown on top of another image and is dynamically generated at runtime. My problem is that when I add a mouse listener to the object i need to determine

  • SAP IHC PAYMENT ORDER - posting date prior to Current posting date

    Hello folks, I have a general question about SAP-IHC module. While creating a manual internal payment order using IHC1IP transaction code, if I change the "Date Executed" date, the system allows to post the payment order in closed period(posting date

  • BI Publisher Using BI Server Security

    I have setup BI Publisher to use BI Server security which works well, I can even see the Admin Tab ;-) My problem is that I can no longer access the Security>Roles and Permissions Tab. I get a HTTP 500 error. Has anyone else come across this problem?

  • What does your account type does not support the view account feature mean?

    What does your account type does not support the view account feature mean?

  • Leopard won't install on my Dual G4 PowerPC

    Hey there! I've been trying to upgrade to Leopard, and here's what happens.. I pop in the CD, and it comes up with the install. I double click "Install Leopard", and enter in my password and it restarts my computer. After it restarts, it comes up wit