Christoph,
I modified your ajnt script a little:
build.xml
HTML Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project PC-WARE Client with Jar-in-Jar Loader">
<path id="cp">
<fileset dir="lib"/>
</path>
<target name="create_run_jar">
<delete dir="bin/de"/>
<javac srcdir="src" destdir="bin" classpathref="cp" />
<jar destfile="lib/test.jar">
<manifest>
<attribute name="Main-Class" value="de.testdeploy.TestExecutor"/>
<attribute name="Class-Path" value="log4j-1.2.15.jar swt.jar org.eclipse.jface_3.4.2.M20090107-0800.jar org.eclipse.jface.databinding_1.2.1.M20080827-0800a.jar org.eclipse.jface.text_3.4.2.r342_v20081119-0800.jar commons-logging.jar commons-io.jar httpcore-4.0.jar httpcore-nio-4.0.jar commons-codec-1.3.jar commons-httpclient-3.1.jar org.springframework.beans-3.0.0.M3.jar org.springframework.context-3.0.0.M3.jar org.springframework.context.support-3.0.0.M3.jar org.springframework.core-3.0.0.M3.jar org.springframework.asm-3.0.0.M3.jar org.springframework.expression-3.0.0.M3.jar antlr-runtime-3.0.1.jar org.springframework.web-3.0.0.M3.jar org.eclipse.swt.win32.win32.x86_3.5.0.v3550b.jar org.eclipse.jface_3.5.0.I20090525-2000.jar org.eclipse.core.commands_3.5.0.I20090525-2000.jar org.eclipse.equinox.common_3.5.0.v20090520-1800.jar"/>
</manifest>
<fileset dir="bin"/>
</jar>
</target>
</project>
When I start created jar via 'java -jar test.jar' I get expected input:
Code:
...
19:53:05,140 DEBUG [DefaultListableBeanFactory] Returning cached instance of singleton bean 'loggerService'
19:53:05,156 DEBUG [AutowiredAnnotationBeanPostProcessor] Autowiring by type from bean name 'testExecutor' to bean named 'loggerService'
19:53:05,156 DEBUG [DefaultListableBeanFactory] Finished creating instance of bean 'testExecutor'
19:53:05,156 DEBUG [DefaultListableBeanFactory] Returning cached instance of singleton bean 'testExecutor'
Successful started
In the loggerService