| <project default="default" xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:maven="jelly:maven" xmlns:ant="jelly:ant"> |
| |
| <goal name="default" prereqs="install-scriptom"/> |
| |
| <preGoal name="java:compile"> |
| <ant:path id="jacob.classpath"> |
| <ant:pathelement path="${project.home}lib/jacob.jar"/> |
| </ant:path> |
| <maven:addPath id="maven.dependency.classpath" refid="jacob.classpath"/> |
| </preGoal> |
| |
| <goal name="install-scriptom" prereqs="jar"> |
| |
| <echo>Installing scriptom</echo> |
| <echo>Creating directories</echo> |
| <mkdir dir="${groovy.install.staging.dest}"/> |
| <mkdir dir="${groovy.install.staging.dest}/lib"/> |
| <mkdir dir="${groovy.install.staging.dest}/bin"/> |
| |
| <echo>${project.home}</echo> |
| |
| <echo>Copying scriptom.jar</echo> |
| <copy file="${maven.build.dir}/${maven.final.name}.jar" toDir="${groovy.install.staging.dest}/lib"/> |
| <echo>Copying jacob.jar</echo> |
| <copy file="${project.home}lib/jacob.jar" toDir="${groovy.install.staging.dest}/lib"/> |
| <echo>Copying jacob.dll</echo> |
| <copy file="${project.home}lib/jacob.dll" toDir="${groovy.install.staging.dest}/bin"/> |
| |
| </goal> |
| |
| </project> |