use appassembler to generate booters
diff --git a/asterix-server/pom.xml b/asterix-server/pom.xml
index edc7872..8500228 100644
--- a/asterix-server/pom.xml
+++ b/asterix-server/pom.xml
@@ -28,33 +28,42 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.3</version>
+ <configuration>
+ <assembleDirectory>
+ ${project.build.directory}/generated-resources/appassembler
+ </assembleDirectory>
+ <daemons>
+ <daemon>
+ <id>asterixcc</id>
+ <mainClass>edu.uci.ics.hyracks.control.cc.CCDriver</mainClass>
+ <platforms>
+ <platform>booter-unix</platform>
+ <platform>booter-windows</platform>
+ </platforms>
+ <commandLineArguments>
+ <commandLineArgument>-app-cc-main-class</commandLineArgument>
+ <commandLineArgument>edu.uci.ics.asterix.hyracks.bootstrap.CCApplicationEntryPoint</commandLineArgument>
+ </commandLineArguments>
+ </daemon>
+ <daemon>
+ <id>asterixnc</id>
+ <mainClass>edu.uci.ics.hyracks.control.nc.NCDriver</mainClass>
+ <platforms>
+ <platform>booter-unix</platform>
+ <platform>booter-windows</platform>
+ </platforms>
+ <commandLineArguments>
+ <commandLineArgument>-app-nc-main-class</commandLineArgument>
+ <commandLineArgument>edu.uci.ics.asterix.hyracks.bootstrap.NCApplicationEntryPoint</commandLineArgument>
+ </commandLineArguments>
+ </daemon>
+ </daemons>
+ </configuration>
<executions>
<execution>
- <configuration>
- <programs>
- <program>
- <mainClass>edu.uci.ics.hyracks.control.cc.CCDriver</mainClass>
- <name>asterixcc</name>
- <commandLineArguments>
- <commandLineArgument>-app-cc-main-class</commandLineArgument>
- <commandLineArgument>edu.uci.ics.asterix.hyracks.bootstrap.CCApplicationEntryPoint</commandLineArgument>
- </commandLineArguments>
- </program>
- <program>
- <mainClass>edu.uci.ics.hyracks.control.nc.NCDriver</mainClass>
- <name>asterixnc</name>
- <commandLineArguments>
- <commandLineArgument>-app-nc-main-class</commandLineArgument>
- <commandLineArgument>edu.uci.ics.asterix.hyracks.bootstrap.NCApplicationEntryPoint</commandLineArgument>
- </commandLineArguments>
- </program>
- </programs>
- <repositoryLayout>flat</repositoryLayout>
- <repositoryName>lib</repositoryName>
- </configuration>
- <phase>package</phase>
<goals>
- <goal>assemble</goal>
+ <goal>generate-daemons</goal>
+ <goal>create-repository</goal>
</goals>
</execution>
</executions>
@@ -96,5 +105,10 @@
<artifactId>asterix-app</artifactId>
<version>0.8.1-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.codehaus.mojo.appassembler</groupId>
+ <artifactId>appassembler-booter</artifactId>
+ <version>1.3.1</version>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
diff --git a/asterix-server/src/main/assembly/binary-assembly.xml b/asterix-server/src/main/assembly/binary-assembly.xml
index ae362ca..8068c76 100644
--- a/asterix-server/src/main/assembly/binary-assembly.xml
+++ b/asterix-server/src/main/assembly/binary-assembly.xml
@@ -21,17 +21,26 @@
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
- <directory>target/appassembler/bin</directory>
+ <directory>target/appassembler/repo</directory>
+ <outputDirectory>repo</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>target/generated-resources/appassembler/booter-unix/etc</directory>
+ <outputDirectory>etc</outputDirectory>
+ <includes>
+ <include>asterixcc.xml</include>
+ <include>asterixnc.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>target/generated-resources/appassembler/booter-unix/bin</directory>
<outputDirectory>bin</outputDirectory>
<fileMode>0755</fileMode>
</fileSet>
<fileSet>
- <directory>target/appassembler/lib</directory>
- <outputDirectory>lib</outputDirectory>
- </fileSet>
- <fileSet>
- <directory>docs</directory>
- <outputDirectory>docs</outputDirectory>
+ <directory>target/generated-resources/appassembler/booter-windows/bin</directory>
+ <outputDirectory>bin</outputDirectory>
+ <fileMode>0755</fileMode>
</fileSet>
</fileSets>
</assembly>