2010-03-11 02:17:42 +07:00
|
|
|
<!--
|
2010-07-08 13:14:12 +07:00
|
|
|
The equinox target project holds the equinox framework components and has
|
2010-03-11 02:17:42 +07:00
|
|
|
the following responsibilities:
|
|
|
|
- acting as an equinox-target for the eclipse dev environment
|
|
|
|
- providing setup for an OSGi container for developing swing client in OSGi
|
|
|
|
- providing setup for a servlet bridge webapp for developing web clients in OSGi
|
|
|
|
- providing setup for a webstart jnlp for developing webstart clients in OSGi
|
|
|
|
- installing equinox runtime components in the ADempiere install process
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project name="equinox-target" basedir="." default="all">
|
2010-07-08 13:14:12 +07:00
|
|
|
|
2010-03-11 02:17:42 +07:00
|
|
|
<property name="src" value="." />
|
|
|
|
<property name="dist" value="./dist" />
|
|
|
|
<property name="dist-standalone" value="${dist}/standalone" />
|
|
|
|
<property name="dist-web" value="${dist}/web" />
|
2010-07-08 13:14:12 +07:00
|
|
|
<property name="osgi-runtime" value="org.eclipse.osgi_3.6.0.v20100517.jar" />
|
2010-03-11 02:17:42 +07:00
|
|
|
<property name="adempiere-client" value="org.adempiere.client_0.0.0.2.jar" />
|
2010-07-08 13:14:12 +07:00
|
|
|
|
|
|
|
<target name="all" depends="clean,dist-standalone,dist-web"/>
|
|
|
|
|
2010-03-11 02:17:42 +07:00
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${dist}"/>
|
|
|
|
</target>
|
2010-07-08 13:14:12 +07:00
|
|
|
|
2010-03-11 02:17:42 +07:00
|
|
|
<target name="dist-standalone">
|
|
|
|
<mkdir dir="${dist-standalone}"/>
|
|
|
|
<copy overwrite="true" todir="${dist-standalone}" >
|
|
|
|
<fileset dir="${src}">
|
|
|
|
<include name="configuration/**/*"/>
|
|
|
|
<include name="plugins/**/*"/>
|
|
|
|
<include name="${osgi-runtime}"/>
|
|
|
|
<include name="org.eclipse.equinox.common_*.jar"/>
|
|
|
|
<include name="org.eclipse.update.configurator_*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<echo message="Remember: Copy client bundle into ${dist-standalone}."/>
|
|
|
|
</target>
|
2010-07-08 13:14:12 +07:00
|
|
|
|
2010-03-11 02:17:42 +07:00
|
|
|
<target name="run-standalone">
|
2010-04-29 03:56:18 +07:00
|
|
|
<move failonerror="false" file="${dist-standalone}/plugins/${adempiere-client}" todir="${dist-standalone}" />
|
|
|
|
<java dir="${dist-standalone}" fork="true" jvmversion="1.6" jar="${dist-standalone}/${osgi-runtime}">
|
|
|
|
<arg value="-console"/>
|
|
|
|
<arg value="-clean"/>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="debug-standalone">
|
2010-03-11 02:17:42 +07:00
|
|
|
<move failonerror="false" file="${dist-standalone}/plugins/${adempiere-client}" todir="${dist-standalone}" />
|
2010-03-12 03:37:31 +07:00
|
|
|
<java dir="${dist-standalone}" fork="true" jvmversion="1.6" jar="${dist-standalone}/${osgi-runtime}">
|
2010-03-11 02:17:42 +07:00
|
|
|
<arg value="-console"/>
|
|
|
|
<arg value="-clean"/>
|
2010-03-12 03:37:31 +07:00
|
|
|
<jvmarg value="-Xdebug"/>
|
|
|
|
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"/>
|
2010-03-11 02:17:42 +07:00
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="dist-web">
|
|
|
|
<mkdir dir="${dist-web}"/>
|
|
|
|
<copy overwrite="true" todir="${dist-web}" >
|
2010-07-08 13:14:12 +07:00
|
|
|
<fileset dir="${src}">
|
|
|
|
<include name="plugins/**/*"/>
|
|
|
|
<include name="${osgi-runtime}"/>
|
|
|
|
<include name="org.eclipse.equinox.common_*.jar"/>
|
|
|
|
<include name="org.eclipse.update.configurator_*.jar"/>
|
2010-03-11 02:17:42 +07:00
|
|
|
</fileset>
|
2010-07-08 13:14:12 +07:00
|
|
|
<fileset dir="${src}/webapp">
|
|
|
|
<include name="configuration/**/*"/>
|
2010-03-11 02:17:42 +07:00
|
|
|
</fileset>
|
2010-07-08 13:14:12 +07:00
|
|
|
<fileset dir="${src}/jetty">
|
|
|
|
<include name="plugins/**/*"/>
|
2010-05-07 00:56:57 +07:00
|
|
|
</fileset>
|
2010-07-08 13:14:12 +07:00
|
|
|
<fileset dir="${src}/spring">
|
|
|
|
<include name="plugins/**/*"/>
|
2010-03-11 02:17:42 +07:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
</project>
|