Skip to main content

Posts

Showing posts with the label ANT

ANT Jdeveloper what it really calls

I was wondering what Jdeveloper did in the background while running ant because I wanted to replicate exactly what was happening in JDev. So I set the ant run task to debug and passed in an invalid argument ant the following was the output: java -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -classpath %ORACLE_HOME%\jdeveloper\jdev\lib\ojc.jar;%ORACLE_HOME%\jdeveloper\jdev\lib\ant-rt.jar;%ORACLE_HOME%\jdeveloper\ant\lib\ant-antlr.jar;%ORACLE_HOME%\jdeveloper\ant\lib\ant-apache-bcel.jar;%ORACLE_HOME%\jdeveloper\ant\lib\ant-apache-bsf.jar;%ORACLE_HOME%\jdeveloper\ant\lib\ant-apache-log4j.jar;%ORACLE_HOME%\jdeveloper\ant\lib\ant-apache-oro.jar;%ORACLE_HOME%\jdeveloper\ant\lib\ant-apache-regexp.jar;%ORACLE_HOME%\jdevelop...

ANT, ADF: Adding version info to my build and help about screen

Build I added two steps to my build (after everything was built) one to create the properties file and the other to package it: <antcall target="create-version-property" inheritAll="true" inheritRefs="true"/> <antcall target="inject-version-file" inheritAll="true" inheritRefs="true"/> Creating the file.   <target name="create-version-property">    <-- check that the jar file is available -->     <available file="${build.file.location}/lib/svnant.jar" property="SVN_ANT_AVAILABLE" />         <fail unless="SVN_ANT_AVAILABLE" message="Run jar target to generate the required task"/>        <-- load the svn ant plugin classpath -->         <taskdef resource="org/tigris/subversion/svnant/svnantlib.xml">             <classpath>         ...

ANT: Appending a file to a jar/war/zip

Just use the update="true" attribute   Example : <jar destfile="${project.deploy.location}/${project.deploy.name}.${project.type}" update="true" >   <zipfileset file="deploy/META-INF/version.properties" prefix="META-INF/"/> </jar> Notes: Jar   destfile - the jar file you want to add to     project.type - this can be war/zip/ear etc     project.deploy.name the name of your artifact     project.deploy.location the location of your artifact zipfileset   file- the file you want to add to your jar   prefix - the prefix/location for this file inside the jar