details: https://code.openbravo.com/erp/devel/pi/rev/8d0b0cebab04 changeset: 28711:8d0b0cebab04 user: Augusto Mauch <augusto.mauch <at> openbravo.com> date: Mon Mar 14 10:42:09 2016 +0100 summary: Fixes issue 32460:install.source can be invoked without executing modulescripts
A flag called execute.modulescripts has been added to allow invoking the install.source task without executing the modulescripts. Specifically the flag has been added to the impo rt.sample.data task, which is invoked from the install.source task. The new parameter is set like this: ant install.source -Dexecute.modulescripts=false If the new parameter is not specified, the modulescripts will be executed by default. diffstat: build.xml | 2 +- src-db/database/build.xml | 7 ++++++- src-db/database/lib/dbsourcemanager.jar | 0 3 files changed, 7 insertions(+), 2 deletions(-) diffs (34 lines): diff -r daaa42c6f9e8 -r 8d0b0cebab04 build.xml --- a/build.xml Thu Mar 03 18:33:33 2016 +0530 +++ b/build.xml Mon Mar 14 10:42:09 2016 +0100 @@ -732,7 +732,7 @@ <echo message="applying modules" /> <antcall inheritall="true" inheritrefs="true" target="apply.module" /> - <antcall target="import.sample.data" /> + <antcall inheritall="true" target="import.sample.data" /> <updatesystemstatus v="RB51"/> <ant dir="${base.db}" target="setApplied" inheritAll="true" inheritRefs="true" /> diff -r daaa42c6f9e8 -r 8d0b0cebab04 src-db/database/build.xml --- a/src-db/database/build.xml Thu Mar 03 18:33:33 2016 +0530 +++ b/src-db/database/build.xml Mon Mar 14 10:42:09 2016 +0100 @@ -167,10 +167,15 @@ </target> <target name="import.sample.data"> + <condition property="execute.modulescripts" value="true"> + <not> + <isset property="execute.modulescripts"/> + </not> + </condition> <taskdef name="importsampledata" classname="org.openbravo.ddlutils.task.ImportSampledata"> <classpath refid="runtime-classpath" /> </taskdef> - <importsampledata driver="${bbdd.driver}" url="${bbdd.owner.url}" user="${bbdd.user}" password="${bbdd.password}" verbosity="${bbdd.verbosity}" basedir="${basedir}/../../" /> + <importsampledata driver="${bbdd.driver}" url="${bbdd.owner.url}" user="${bbdd.user}" password="${bbdd.password}" verbosity="${bbdd.verbosity}" basedir="${basedir}/../../" executeModuleScripts="${execute.modulescripts}"/> <antcall target="database.postupdate.${bbdd.rdbms}" /> </target> diff -r daaa42c6f9e8 -r 8d0b0cebab04 src-db/database/lib/dbsourcemanager.jar Binary file src-db/database/lib/dbsourcemanager.jar has changed ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140 _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits