Application Extension for client
https://sourceforge.net/tracker/?func=detail&aid=2700937&group_id=176962&atid=879334
This commit is contained in:
parent
c539b46b06
commit
cb2b5beb67
|
@ -198,5 +198,6 @@ Export-Package: com.keypoint,
|
||||||
org.jfree.util
|
org.jfree.util
|
||||||
Require-Bundle: org.adempiere.base;bundle-version="0.0.0",
|
Require-Bundle: org.adempiere.base;bundle-version="0.0.0",
|
||||||
org.eclipse.core.runtime;bundle-version="3.5.0",
|
org.eclipse.core.runtime;bundle-version="3.5.0",
|
||||||
org.adempiere.tools;bundle-version="0.0.0"
|
org.adempiere.tools;bundle-version="0.0.0",
|
||||||
|
org.adempiere.jbossfacet;bundle-version="0.0.0"
|
||||||
Bundle-Activator: org.adempiere.client.Activator
|
Bundle-Activator: org.adempiere.client.Activator
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
source.client.jar = src/
|
source.client.jar = src/,build/
|
||||||
bin.includes = META-INF/,\
|
bin.includes = META-INF/,\
|
||||||
lib/swingx-0.9.0.jar,\
|
lib/swingx-0.9.0.jar,\
|
||||||
lib/groovy-all-1.5.1.jar,\
|
lib/groovy-all-1.5.1.jar,\
|
||||||
|
|
|
@ -17,13 +17,24 @@
|
||||||
<property name="build.dir" value="build"/>
|
<property name="build.dir" value="build"/>
|
||||||
<property name="dist.dir" value="../lib"/>
|
<property name="dist.dir" value="../lib"/>
|
||||||
<property name="jar.path" value="../lib"/>
|
<property name="jar.path" value="../lib"/>
|
||||||
|
<property name="jar.name" value="client.jar"/>
|
||||||
<!--<property environment="env"/>-->
|
<!--<property environment="env"/>-->
|
||||||
<import file="../utils_dev/properties.xml"/>
|
<import file="../utils_dev/properties.xml"/>
|
||||||
|
<property name="equinox.target" value="../equinox-target"/>
|
||||||
|
<property name="bundle.name" value="org.adempiere.client"/>
|
||||||
|
<property name="bundle.version" value="0.0.0.2"/>
|
||||||
|
|
||||||
|
<path id="osgi.libs">
|
||||||
|
<fileset dir="${equinox.target}/plugins">
|
||||||
|
<include name="*.jar"/>
|
||||||
|
</fileset>
|
||||||
|
</path>
|
||||||
|
|
||||||
<!-- set path to include the necessary jar files for javac -->
|
<!-- set path to include the necessary jar files for javac -->
|
||||||
<path id="project.class.path">
|
<path id="project.class.path">
|
||||||
<pathelement path="${classpath}"/>
|
<pathelement path="${classpath}"/>
|
||||||
<pathelement path="${jar.path}/CCTools.jar"/>
|
<pathelement path="${jar.path}/CCTools.jar"/>
|
||||||
|
<path refid="osgi.libs"/>
|
||||||
<pathelement path="../base/Base.jar"/>
|
<pathelement path="../base/Base.jar"/>
|
||||||
<pathelement path="../lib/customization.jar"/>
|
<pathelement path="../lib/customization.jar"/>
|
||||||
<pathelement path="../lib/patches.jar"/>
|
<pathelement path="../lib/patches.jar"/>
|
||||||
|
@ -113,6 +124,13 @@
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="plugin">
|
||||||
|
<buildPlugin workspaceDirectory=".."
|
||||||
|
projectName="client"
|
||||||
|
targetPlatformId="target.platform"
|
||||||
|
destination="${dist.dir}"
|
||||||
|
buildSourceJar="false" />
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="clean">
|
<target name="clean">
|
||||||
<!-- Delete the ${build.dir} directory trees -->
|
<!-- Delete the ${build.dir} directory trees -->
|
||||||
|
|
|
@ -9,5 +9,12 @@
|
||||||
class="org.compiere.util.ResourceFinder">
|
class="org.compiere.util.ResourceFinder">
|
||||||
</client>
|
</client>
|
||||||
</extension>
|
</extension>
|
||||||
|
<extension
|
||||||
|
id="org.adempiere.Client"
|
||||||
|
point="org.eclipse.core.runtime.applications">
|
||||||
|
<application>
|
||||||
|
<run class="org.adempiere.client.Application" />
|
||||||
|
</application>
|
||||||
|
</extension>
|
||||||
|
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package org.adempiere.client;
|
package org.adempiere.client;
|
||||||
|
|
||||||
|
import java.rmi.RMISecurityManager;
|
||||||
|
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.eclipse.core.runtime.Plugin;
|
import org.eclipse.core.runtime.Plugin;
|
||||||
import org.osgi.framework.Bundle;
|
import org.osgi.framework.Bundle;
|
||||||
|
@ -12,8 +14,6 @@ public class Activator extends Plugin {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(BundleContext context) throws Exception {
|
public void start(BundleContext context) throws Exception {
|
||||||
log.info("Starting client");
|
|
||||||
org.compiere.AdempiereClient.main(new String[]{});
|
|
||||||
activateAll(context.getBundles());
|
activateAll(context.getBundles());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
package org.adempiere.client;
|
||||||
|
|
||||||
|
import org.compiere.util.CLogger;
|
||||||
|
import org.eclipse.equinox.app.IApplication;
|
||||||
|
import org.eclipse.equinox.app.IApplicationContext;
|
||||||
|
|
||||||
|
public class Application implements IApplication {
|
||||||
|
private static CLogger log = CLogger.getCLogger(Application.class);
|
||||||
|
|
||||||
|
public Object start(IApplicationContext ctx) throws Exception {
|
||||||
|
log.info("Starting client");
|
||||||
|
org.compiere.AdempiereClient.main(new String[]{});
|
||||||
|
return IApplication.EXIT_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void stop() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue