Skip to content

Instantly share code, notes, and snippets.

@eeroan
Last active December 11, 2015 16:19
Show Gist options
  • Save eeroan/4626759 to your computer and use it in GitHub Desktop.
Save eeroan/4626759 to your computer and use it in GitHub Desktop.

Revisions

  1. eeroan renamed this gist Jan 24, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. eeroan created this gist Jan 24, 2013.
    40 changes: 40 additions & 0 deletions gistfile1.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    <properties>
    <bundle.rhinoJar>${project.basedir}/lib/js.jar</bundle.rhinoJar>
    <bundle.rhinoMainClass>org.mozilla.javascript.tools.shell.Main</bundle.rhinoMainClass>
    <bundle.rJsPath>${webappPath}/vendor/r-2.1.2.js</bundle.rJsPath>
    </properties>
    <profile>
    <id>bundle-js-assets</id>
    <build>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-antrun-plugin</artifactId>
    <version>1.7</version>
    <executions>
    <execution>
    <id>bundle-js-assets</id>
    <goals>
    <goal>run</goal>
    </goals>
    <phase>compile</phase>
    <configuration>
    <target>
    <java classname="${bundle.rhinoMainClass}" classpath="${bundle.rhinoJar}" failonerror="yes">
    <arg value="${bundle.rJsPath}" />
    <arg value="-o" />
    <arg value="${webappPath}/build.js" />
    </java>
    <java classname="${bundle.rhinoMainClass}" classpath="${bundle.rhinoJar}" failonerror="yes">
    <arg value="${bundle.rJsPath}" />
    <arg value="-o" />
    <arg value="${webappPath}/otherBuild.js" />
    </java>
    </target>
    </configuration>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>
    </profile>