Application Extension for client

https://sourceforge.net/tracker/?func=detail&aid=2700937&group_id=176962&atid=879334
This commit is contained in:
joergviola 2010-04-28 20:54:38 +00:00
parent c539b46b06
commit cb2b5beb67
6 changed files with 50 additions and 5 deletions

View File

@ -198,5 +198,6 @@ Export-Package: com.keypoint,
org.jfree.util
Require-Bundle: org.adempiere.base;bundle-version="0.0.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

View File

@ -1,4 +1,4 @@
source.client.jar = src/
source.client.jar = src/,build/
bin.includes = META-INF/,\
lib/swingx-0.9.0.jar,\
lib/groovy-all-1.5.1.jar,\

View File

@ -17,13 +17,24 @@
<property name="build.dir" value="build"/>
<property name="dist.dir" value="../lib"/>
<property name="jar.path" value="../lib"/>
<property name="jar.name" value="client.jar"/>
<!--<property environment="env"/>-->
<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 -->
<path id="project.class.path">
<pathelement path="${classpath}"/>
<pathelement path="${jar.path}/CCTools.jar"/>
<path refid="osgi.libs"/>
<pathelement path="../base/Base.jar"/>
<pathelement path="../lib/customization.jar"/>
<pathelement path="../lib/patches.jar"/>
@ -113,6 +124,13 @@
</jar>
</target>
<target name="plugin">
<buildPlugin workspaceDirectory=".."
projectName="client"
targetPlatformId="target.platform"
destination="${dist.dir}"
buildSourceJar="false" />
</target>
<target name="clean">
<!-- Delete the ${build.dir} directory trees -->

View File

@ -9,5 +9,12 @@
class="org.compiere.util.ResourceFinder">
</client>
</extension>
<extension
id="org.adempiere.Client"
point="org.eclipse.core.runtime.applications">
<application>
<run class="org.adempiere.client.Application" />
</application>
</extension>
</plugin>

View File

@ -1,5 +1,7 @@
package org.adempiere.client;
import java.rmi.RMISecurityManager;
import org.compiere.util.CLogger;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.Bundle;
@ -12,8 +14,6 @@ public class Activator extends Plugin {
@Override
public void start(BundleContext context) throws Exception {
log.info("Starting client");
org.compiere.AdempiereClient.main(new String[]{});
activateAll(context.getBundles());
}

View File

@ -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() {
}
}