Skip to main content

Source code file content

Revision: 105

» Project Revision History

» Checkout URL

adminapp / trunk / AdfEmgExtensionsDT / build / build.xml

Size: 6130 bytes, 1 line
<?xml version="1.0" encoding="windows-1252" ?>

<project xmlns="antlib:org.apache.tools.ant" name="AdfEmgMobileExtensionsDT" default="stage" basedir="..">

  <property file="build/build.properties"/>
  <property file="${runtime.build.dir}/build.properties"/>

  <echoproperties/>

   <!--Set the classpath-->
   <path id="classpath">


      <fileset dir="${oracle.commons}/modules/oracle.adf.view_11.1.1">
        <include name="**/*.jar"/>
      </fileset>
      <fileset dir="${oracle.commons}/modules/oracle.adf.model_11.1.1">
        <include name="**/*.jar"/>
      </fileset>

      <fileset dir="${oracle.home}/jdev/extensions">
        <include name="**/*.jar"/>
      </fileset>

      <pathelement location="${oracle.home}/ide/extensions/oracle.ide.jar"/>
      <pathelement location="${oracle.home}/jdev/extensions/oracle.ide.library.jar"/>
      <pathelement location="${oracle.home}/jdev/extensions/oracle.jdeveloper.jar"/>
      <pathelement location="${oracle.home}/jdev/extensions/oracle.jdeveloper.java.core.jar"/>
      <pathelement location="${oracle.home}/jdev/extensions/oracle.adf-faces-dt.jar"/>
      <pathelement location="${oracle.home}/jdev/extensions/oracle.adfm.dc-adapters.jar"/>
      <pathelement location="${oracle.home}/jdev/extensions/oracle.adfm.dcpalette.jar"/>

      <pathelement location="${oracle.home}/external/oracle.javamodel-rt.jar"/>
      <pathelement location="${oracle.home}/external/oracle.adfmcoredt.jar"/>
      <pathelement location="${oracle.home}/external/oracle.javatools-nodeps.jar"/>

      <pathelement location="${oracle.home}/adfdt/lib/oracle.adf.common.dt.jar"/>

      <pathelement location="${oracle.commons}/modules/oracle.adf.model_11.1.1/adfdt-common.jar"/>
      <pathelement location="${oracle.commons}/modules/oracle.adf.model_11.1.1/adftransactionsdt.jar"/>
      <pathelement location="${oracle.commons}/modules/oracle.adf.model_11.1.1/adflibrary.jar"/>
      <pathelement location="${oracle.commons}/modules/oracle.javatools_11.1.1/javatools-nodeps.jar"/>
      <pathelement location="${oracle.commons}/modules/oracle.javatools_11.1.1/javamodel-rt.jar"/>
   </path>


  <target name="init" depends="clean">
    <tstamp/>
    <mkdir dir="${design.output.dir}"/>
    <replaceregexp file="${design.source.dir}/META-INF/extension.xml"
                   match='version="(\s*)(.*)"'
                   replace='version="${version.number}"'/>
  </target>

  <target name="clean">
    <delete dir="${stage.dir}"/>
    <delete dir="${design.deploy.dir}"/>
    <delete dir="${design.output.dir}"/>
  </target>

  <target name="compile" description="Compile Java source files" depends="init">
    <javac destdir="${design.output.dir}" classpathref="classpath" debug="${javac.debug}" nowarn="${javac.nowarn}"
           deprecation="${javac.deprecation}" encoding="Cp1252" source="1.6" target="1.6">
      <src path="${design.source.dir}"/>
    </javac>
  </target>

   <target name="createjar" depends="clean, compile">
     <mkdir dir="${design.deploy.dir}"/>
     <jar destfile="${design.deploy.jar}">
       <metainf dir="src/META-INF" includes="extension.xml"/>
       <!-- put the version information in the manifest file as well -->
       <manifest>
         <attribute name="Export-Package" value="org.emg.adf.mobile.dt"/>
         <attribute name="Require-Bundle" value="oracle.ide,oracle.ide.library,oracle.jdeveloper,oracle.jdeveloper.java.core,oracle.javamodel-rt,oracle.javatools-nodeps,oracle.adf-common-dt,oracle.adfmcoredt,oracle.adfm.dc-adapters,oracle.adfm.dcpalette"/>
         <attribute name="Bundle-ClassPath" value="."/>
         <attribute name="Bundle-Version" value="11.1.2"/>
         <attribute name="Bundle-ManifestVersion" value="2"/>
         <attribute name="Bundle-SymbolicName" value="org.emg.adf.mobile.extensions"/>
       </manifest>
       <fileset dir="${design.output.dir}" />
<!--
       <fileset dir="${design.source.dir}" includes="**/*.xml"/>
-->
     </jar>
   </target>

  <target name="deploy" depends="createjar">
    <copy todir="${jdev.extensions.dir}">
      <fileset dir="${design.deploy.dir}"/>
    </copy>
  </target>

  <target name="stage" depends="clean, createjar">

    <!-- Build runtime Jar first -->
    <ant antfile="build.xml" dir="${runtime.build.dir}" target="stage"  inheritall="false"/>

    <replaceregexp file="${design.build.dir}/bundle.xml"
                   match="&lt;u:version&gt;(\s*)(.*)&lt;/u:version&gt;"
                   replace="&lt;u:version&gt;${version.number}&lt;/u:version&gt;"/>
    <replaceregexp file="${design.build.dir}/center.xml"
                   match="&lt;version&gt;(\s*)(.*)&lt;/version&gt;"
                   replace="&lt;version&gt;${version.number}&lt;/version&gt;"/>
    <replaceregexp file="${design.build.dir}/center.xml"
                   match="&lt;bundle-url&gt;(\s*)(.*)&lt;/bundle-url&gt;"
                   replace="&lt;bundle-url&gt;adfemg-mobile-extensions-${version.number}-install.zip&lt;/bundle-url&gt;"/>
    <copy file="${design.build.dir}/bundle.xml" todir="${stage.dir}/META-INF"/>
    <copy file="${design.build.dir}/center.xml" todir="${stage.dir}"/>
    <copy file="${design.deploy.dir}/org.emg.adf.mobile.extensions.jar" todir="${stage.dir}"/>

    <copy todir="${stage.extension.dir}">
      <fileset dir="${runtime.deploy.dir}">
         <include name="*.jar"/>
         <include name="*.zip"/>
      </fileset>
      <fileset dir="${datasynch.deploy.dir}">
         <include name="*.jar"/>
      </fileset>
    </copy>

<!--
    <copy todir="${stage.documentation.dir}">
      <fileset dir="${documentation.dir}"/>
    </copy>
-->
     <zip destfile="${stage.dir}/adfemg-mobile-extensions-${version.number}-install.zip" basedir="${stage.dir}">
       <include name="**/*.*"/>
       <exclude name="*.zip"/>
       <exclude name="center.xml"/>
     </zip>

    <delete>
      <fileset dir="${stage.dir}">
        <include name="**/.rvi"/>
      </fileset>
    </delete>
  </target>

</project>
 
 
Close
loading
Please Confirm
Close