src/build.xml
changeset 7502 b349f71af836
parent 6986 56038a11b9db
child 7208 0d80d55c133f
equal deleted inserted replaced
7501:97743883e631 7502:b349f71af836
   130 
   130 
   131   <target name="trl.clean" if="translation">
   131   <target name="trl.clean" if="translation">
   132     <java classname="org.openbravo.translate.Translate" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
   132     <java classname="org.openbravo.translate.Translate" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
   133       <arg line="clean '${base.config}/Openbravo.properties'" />
   133       <arg line="clean '${base.config}/Openbravo.properties'" />
   134       <classpath refid="project.class.path" />
   134       <classpath refid="project.class.path" />
       
   135       <sysproperty key="java.security.egd" value="${java.security.egd}"/>
   135     </java>
   136     </java>
   136   </target>
   137   </target>
   137   
   138   
   138   <target name="trl.remove.unused" if="translation">
   139   <target name="trl.remove.unused" if="translation">
   139     <java classname="org.openbravo.translate.Translate" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
   140     <java classname="org.openbravo.translate.Translate" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
   140       <arg line="remove '${base.config}/Openbravo.properties'" />
   141       <arg line="remove '${base.config}/Openbravo.properties'" />
   141       <classpath refid="project.class.path" />
   142       <classpath refid="project.class.path" />
       
   143       <sysproperty key="java.security.egd" value="${java.security.egd}"/>
   142     </java>
   144     </java>
   143   </target>
   145   </target>
   144 
   146 
   145   <target name="clean" depends="trl.clean">
   147   <target name="clean" depends="trl.clean">
   146     <property name="complete" value="true" />
   148     <property name="complete" value="true" />
   161   <target name="sqlc" depends="copy.srcClient">
   163   <target name="sqlc" depends="copy.srcClient">
   162     <updatesystemstatus v="RB42" />
   164     <updatesystemstatus v="RB42" />
   163     <java classname="org.openbravo.data.Sqlc" fork="yes" jvm="${env.JAVA_HOME}/bin/java" maxmemory="${build.maxmemory}" failonerror="true">
   165     <java classname="org.openbravo.data.Sqlc" fork="yes" jvm="${env.JAVA_HOME}/bin/java" maxmemory="${build.maxmemory}" failonerror="true">
   164       <arg line="'${base.config}'/Openbravo.properties .xsql . '${build.sqlc}'/src" />
   166       <arg line="'${base.config}'/Openbravo.properties .xsql . '${build.sqlc}'/src" />
   165       <classpath refid="project.class.path" />
   167       <classpath refid="project.class.path" />
       
   168       <sysproperty key="java.security.egd" value="${java.security.egd}"/>
   166     </java>
   169     </java>
   167     <java classname="org.openbravo.data.Sqlc" fork="yes" jvm="${env.JAVA_HOME}/bin/java" maxmemory="${build.maxmemory}" failonerror="true">
   170     <java classname="org.openbravo.data.Sqlc" fork="yes" jvm="${env.JAVA_HOME}/bin/java" maxmemory="${build.maxmemory}" failonerror="true">
   168       <arg line="'${base.config}'/Openbravo.properties .xsql '${base.modules}' '${build.sqlc}'/src */src" />
   171       <arg line="'${base.config}'/Openbravo.properties .xsql '${base.modules}' '${build.sqlc}'/src */src" />
   169       <jvmarg value="-Dsqlc.queryExecutionStrategy=traditional"/>
   172       <jvmarg value="-Dsqlc.queryExecutionStrategy=traditional"/>
   170       <classpath refid="project.class.path" />
   173       <classpath refid="project.class.path" />
       
   174       <sysproperty key="java.security.egd" value="${java.security.egd}"/>
   171     </java>
   175     </java>
   172     <copy file="${base.src}/buildAD.xml" tofile="${build.AD}/build.xml" />
   176     <copy file="${base.src}/buildAD.xml" tofile="${build.AD}/build.xml" />
   173     <copy file="${base.src}/log4j.lcf" tofile="${build.AD}/log4j.lcf" />
   177     <copy file="${base.src}/log4j.lcf" tofile="${build.AD}/log4j.lcf" />
   174     <ant dir="${build.AD}" target="buildAD" inheritAll="true" inheritRefs="true" />
   178     <ant dir="${build.AD}" target="buildAD" inheritAll="true" inheritRefs="true" />
   175   </target>
   179   </target>
   250     <!-- debug="true" will perform the in-memory model initialization before generating entities
   254     <!-- debug="true" will perform the in-memory model initialization before generating entities
   251 	if an error occurs then, then a stacktrace is printed. -->
   255 	if an error occurs then, then a stacktrace is printed. -->
   252     <workflow debug="false" srcGenPath="${base.src.gen}" propertiesFile="${base.config}/Openbravo.properties" file="${base.src}/org/openbravo/base/gen/gen_entity.oaw" fork="true" maxmemory="${build.maxmemory}">
   256     <workflow debug="false" srcGenPath="${base.src.gen}" propertiesFile="${base.config}/Openbravo.properties" file="${base.src}/org/openbravo/base/gen/gen_entity.oaw" fork="true" maxmemory="${build.maxmemory}">
   253       <param name="ob.properties.location" value="${base.config}/Openbravo.properties" />
   257       <param name="ob.properties.location" value="${base.config}/Openbravo.properties" />
   254       <param name="base.src.gen" value="${base.src.gen}" />
   258       <param name="base.src.gen" value="${base.src.gen}" />
       
   259       <sysproperty key="java.security.egd" value="${java.security.egd}"/>
   255       <classpath>
   260       <classpath>
   256         <path refid="project.class.path" />
   261         <path refid="project.class.path" />
   257       </classpath>
   262       </classpath>
   258     </workflow>
   263     </workflow>
   259 
   264 
   399   <target name="wad" depends="init, wadvalidation">
   404   <target name="wad" depends="init, wadvalidation">
   400     <updatesystemstatus v="RB41"/>
   405     <updatesystemstatus v="RB41"/>
   401     <java classname="org.openbravo.wad.Wad" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}" failonerror="true">
   406     <java classname="org.openbravo.wad.Wad" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}" failonerror="true">
   402       <arg line="'${base.config}' '${tab}' '${build.AD}/org/openbravo/erpWindows' '${build.AD}/org/openbravo/erpCommon' '${build.sqlc}/src' '${webTab}' '${build.AD}/org/openbravo/erpCommon/ad_actionButton' '${base.design}' '${base.translate.structure}' '${client.web.xml}' '..' '${attach.path}' '${web.url}' '${base.src}' '${complete}' '${module}' 'noquick'" />
   407       <arg line="'${base.config}' '${tab}' '${build.AD}/org/openbravo/erpWindows' '${build.AD}/org/openbravo/erpCommon' '${build.sqlc}/src' '${webTab}' '${build.AD}/org/openbravo/erpCommon/ad_actionButton' '${base.design}' '${base.translate.structure}' '${client.web.xml}' '..' '${attach.path}' '${web.url}' '${base.src}' '${complete}' '${module}' 'noquick'" />
   403       <classpath refid="project.class.path" />
   408       <classpath refid="project.class.path" />
       
   409       <sysproperty key="java.security.egd" value="${java.security.egd}"/>
   404     </java>
   410     </java>
   405     <antcall target="postwad" inheritall="true" inheritrefs="true" />
   411     <antcall target="postwad" inheritall="true" inheritrefs="true" />
   406   </target>
   412   </target>
   407 
   413 
   408   <target name="wad.quick" depends="init, wadvalidation">
   414   <target name="wad.quick" depends="init, wadvalidation">
   409     <updatesystemstatus v="RB41"/>
   415     <updatesystemstatus v="RB41"/>
   410     <java classname="org.openbravo.wad.Wad" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
   416     <java classname="org.openbravo.wad.Wad" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
   411       <arg line="'${base.config}' '${tab}' '${build.AD}/org/openbravo/erpWindows' '${build.AD}/org/openbravo/erpCommon' '${build.sqlc}/src' '${webTab}' '${build.AD}/org/openbravo/erpCommon/ad_actionButton' '${base.design}' '${base.translate.structure}' '${client.web.xml}' '..' '${attach.path}' '${web.url}' '${base.src}' '${complete}' '${module}' 'quick'" />
   417       <arg line="'${base.config}' '${tab}' '${build.AD}/org/openbravo/erpWindows' '${build.AD}/org/openbravo/erpCommon' '${build.sqlc}/src' '${webTab}' '${build.AD}/org/openbravo/erpCommon/ad_actionButton' '${base.design}' '${base.translate.structure}' '${client.web.xml}' '..' '${attach.path}' '${web.url}' '${base.src}' '${complete}' '${module}' 'quick'" />
   412       <classpath refid="project.class.path" />
   418       <classpath refid="project.class.path" />
       
   419       <sysproperty key="java.security.egd" value="${java.security.egd}"/>
   413     </java>
   420     </java>
   414     <antcall target="postwad" inheritall="true" inheritrefs="true" />
   421     <antcall target="postwad" inheritall="true" inheritrefs="true" />
   415   </target>
   422   </target>
   416 
   423 
   417   <target name="postsrc" depends="postsrc.modules">
   424   <target name="postsrc" depends="postsrc.modules">
   474   <!-- FIXME: These tasks is only for development and testing purposes, remove it afterwards-->
   481   <!-- FIXME: These tasks is only for development and testing purposes, remove it afterwards-->
   475   <target name="sqlcmod" depends="copy.srcClient">
   482   <target name="sqlcmod" depends="copy.srcClient">
   476     <java classname="org.openbravo.data.Sqlc" fork="yes" jvm="${env.JAVA_HOME}/bin/java" maxmemory="${build.maxmemory}" failonerror="true">
   483     <java classname="org.openbravo.data.Sqlc" fork="yes" jvm="${env.JAVA_HOME}/bin/java" maxmemory="${build.maxmemory}" failonerror="true">
   477       <arg line="'${base.config}'/Openbravo.properties .xsql '${base.modules}' '${build.sqlc}'/src */src" />
   484       <arg line="'${base.config}'/Openbravo.properties .xsql '${base.modules}' '${build.sqlc}'/src */src" />
   478       <classpath refid="project.class.path" />
   485       <classpath refid="project.class.path" />
       
   486       <sysproperty key="java.security.egd" value="${java.security.egd}"/>
   479     </java>
   487     </java>
   480   </target>
   488   </target>
   481 
   489 
   482   <target name="compileSqlcmod" depends="sqlcmod">
   490   <target name="compileSqlcmod" depends="sqlcmod">
   483     <javac srcdir="${build.sqlc}/src:${base.modules}" destdir="${build}" encoding="UTF-8" fork="true" memorymaximumsize="${build.maxmemory}" debug="true" debuglevel="lines,vars,source" deprecation="on">
   491     <javac srcdir="${build.sqlc}/src:${base.modules}" destdir="${build}" encoding="UTF-8" fork="true" memorymaximumsize="${build.maxmemory}" debug="true" debuglevel="lines,vars,source" deprecation="on">
   742 
   750 
   743   <target name="compile.translate.modules">
   751   <target name="compile.translate.modules">
   744     <java classname="org.openbravo.translate.Translate" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
   752     <java classname="org.openbravo.translate.Translate" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
   745       <arg line="'${base.config}/Openbravo.properties' ${extension} '${base.modules}' '*/src'" />
   753       <arg line="'${base.config}/Openbravo.properties' ${extension} '${base.modules}' '*/src'" />
   746       <classpath refid="project.class.path" />
   754       <classpath refid="project.class.path" />
       
   755       <sysproperty key="java.security.egd" value="${java.security.egd}"/>
   747     </java>
   756     </java>
   748   </target>
   757   </target>
   749 
   758 
   750   <target name="installWebService" depends="init" if="wsdd">
   759   <target name="installWebService" depends="init" if="wsdd">
   751     <taskdef name="wsAdmin" classname="org.openbravo.erpCommon.utility.WebServiceAdmin">
   760     <taskdef name="wsAdmin" classname="org.openbravo.erpCommon.utility.WebServiceAdmin">
   767 
   776 
   768   <target name="compile.translate">
   777   <target name="compile.translate">
   769     <java classname="org.openbravo.translate.Translate" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
   778     <java classname="org.openbravo.translate.Translate" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
   770       <arg line="'${base.config}/Openbravo.properties' ${extension} '${basedir}'" />
   779       <arg line="'${base.config}/Openbravo.properties' ${extension} '${basedir}'" />
   771       <classpath refid="project.class.path" />
   780       <classpath refid="project.class.path" />
       
   781       <sysproperty key="java.security.egd" value="${java.security.egd}"/>
   772     </java>
   782     </java>
   773   </target>
   783   </target>
   774 
   784 
   775   <target name="copy.files">
   785   <target name="copy.files">
   776     <updatesystemstatus v="RB45"/>
   786     <updatesystemstatus v="RB45"/>