build.xml
changeset 2686 01b9786ae86e
parent 2647 bc84fb780919
child 2691 da4daa0dc851
equal deleted inserted replaced
2685:d747a87fb93d 2686:01b9786ae86e
   233 
   233 
   234 	<target name="compile.development" depends="init" if="mode.class">
   234 	<target name="compile.development" depends="init" if="mode.class">
   235 		<ant dir="${base.src}" target="compile.development" inheritAll="true" inheritRefs="true" />
   235 		<ant dir="${base.src}" target="compile.development" inheritAll="true" inheritRefs="true" />
   236 	</target>
   236 	</target>
   237 
   237 
       
   238 	<target name="validate.database">
       
   239 		<ant dir="${base.src}" target="validate.database" inheritAll="true" inheritRefs="true" />
       
   240 	</target>
       
   241 
       
   242 	<target name="validate.modules">
       
   243 		<ant dir="${base.src}" target="validate.modules" inheritAll="true" inheritRefs="true" />
       
   244 	</target>
       
   245 
   238 	<target name="compile.war" if="mode.war">
   246 	<target name="compile.war" if="mode.war">
   239 		<antcall target="compile" />
   247 		<antcall target="compile" />
   240 		<antcall target="war" />
   248 		<antcall target="war" />
   241 	</target>
   249 	</target>
   242 
   250 
   367 		<antcall target="compile.complete.deploy" />
   375 		<antcall target="compile.complete.deploy" />
   368 		<echo message="applying modules" />
   376 		<echo message="applying modules" />
   369 		<taskdef name="applyModule" classname="org.openbravo.erpCommon.modules.ApplyModuleTask">
   377 		<taskdef name="applyModule" classname="org.openbravo.erpCommon.modules.ApplyModuleTask">
   370 			<classpath refid="project.class.path" />
   378 			<classpath refid="project.class.path" />
   371 		</taskdef>
   379 		</taskdef>
   372 		<applyModule userId="0" propertiesFile="${base.config}/Openbravo.properties" />
   380 		<applyModule userId="0" propertiesFile="${base.config}/Openbravo.properties"/>
   373 		<!-- 
   381 		
   374     	this antcall implements the previous method of importing data 
       
   375     	use that if the new method does not work for you: 
       
   376     -->
       
   377 		<antcall target="import.sample.data" />
   382 		<antcall target="import.sample.data" />
       
   383 
       
   384 		<antcall target="validate.database" />
       
   385 		<antcall target="validate.modules" />
   378 	</target>
   386 	</target>
   379 
   387 
   380 	<target name="eclipse.install.source" depends="init,code.rev">
   388 	<target name="eclipse.install.source" depends="init,code.rev">
   381 		<antcall target="database.lib" />
   389 		<antcall target="database.lib" />
   382 		<antcall target="core.lib" />
   390 		<antcall target="core.lib" />
   389 		<taskdef name="applyModule" classname="org.openbravo.erpCommon.modules.ApplyModuleTask">
   397 		<taskdef name="applyModule" classname="org.openbravo.erpCommon.modules.ApplyModuleTask">
   390 			<classpath refid="project.class.path" />
   398 			<classpath refid="project.class.path" />
   391 		</taskdef>
   399 		</taskdef>
   392 		<applyModule userId="0" propertiesFile="${base.config}/Openbravo.properties" />
   400 		<applyModule userId="0" propertiesFile="${base.config}/Openbravo.properties" />
   393 		<antcall target="import.sample.data" />
   401 		<antcall target="import.sample.data" />
       
   402 
       
   403 		<antcall target="validate.database" />
       
   404 		<antcall target="validate.modules" />
   394 	</target>
   405 	</target>
   395 
   406 
   396 	<target name="create.database" depends="init,code.rev">
   407 	<target name="create.database" depends="init,code.rev">
   397 		<antcall target="database.lib" />
   408 		<antcall target="database.lib" />
   398 		<antcall target="core.lib" />
   409 		<antcall target="core.lib" />
   593 
   604 
   594 	<target name="package.module">
   605 	<target name="package.module">
   595 		<taskdef name="extractModule" classname="org.openbravo.erpCommon.modules.ExtractModuleTask">
   606 		<taskdef name="extractModule" classname="org.openbravo.erpCommon.modules.ExtractModuleTask">
   596 			<classpath refid="project.class.path" />
   607 			<classpath refid="project.class.path" />
   597 		</taskdef>
   608 		</taskdef>
   598 
   609 		
       
   610 		<taskdef name="validateModules" classname="org.openbravo.service.system.SystemValidationTask">		
       
   611 			<classpath refid="project.class.path" />
       
   612 		</taskdef>
       
   613 		
       
   614 		<echo message="Validating Module..." />
       
   615 		<validateModules moduleName="${module}" failOnError="true" userId="0" propertiesFile="${base.config}/Openbravo.properties" type="module"/>
       
   616 		
   599 		<antcall target="obx.export.database" />
   617 		<antcall target="obx.export.database" />
   600 		<antcall target="obx.export.config.script" />
   618 		<antcall target="obx.export.config.script" />
   601 
   619 
   602 		<extractModule moduleName="${module}" userId="0" propertiesFile="${base.config}/Openbravo.properties" exportRD="${obx.export.RD}" />
   620 		<extractModule moduleName="${module}" userId="0" propertiesFile="${base.config}/Openbravo.properties" exportRD="${obx.export.RD}" />
   603 	</target>
   621 	</target>