root - my-legacy-app\src\includes\js
|-jasmine-tests\src\test\javascript
Created
September 22, 2011 17:40
-
-
Save mcornell/1235433 to your computer and use it in GitHub Desktop.
Enabling maven-jasmine-plugin with your legacy application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<properties> | |
<legacy.js.src>${project.basedir}\..\my-legacy-app\src\includes\js</legacy.js.src> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.github.searls</groupId> | |
<artifactId>jasmine-maven-plugin</artifactId> | |
<version>1.0.2-beta-5</version> | |
<configuration> | |
<jsSrcDir>${legacy.js.src}</jsSrcDir> | |
<preloadSources> | |
<source>jquery-1.5.1.min.js</source> | |
<source>lib/jasmine-jquery-1.3.1.js</source> | |
</preloadSources> | |
</configuration> | |
<executions> | |
<execution> | |
<id>jasmine</id> | |
<goals> | |
<goal>generateManualRunner</goal> | |
<goal>resources</goal> | |
<goal>testResources</goal> | |
<goal>test</goal> | |
<goal>preparePackage</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.twofourone</groupId> | |
<artifactId>legacy-app-jasmine-tests</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<name>Some Javascript Tests For Legacy App</name> | |
<properties> | |
<legacy.js.src>${project.basedir}\..\my-legacy-app\src\includes\js</legacy.js.src> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.github.searls</groupId> | |
<artifactId>jasmine-maven-plugin</artifactId> | |
<version>1.0.2-beta-5</version> | |
<configuration> | |
<jsSrcDir>${legacy.js.src}</jsSrcDir> | |
<preloadSources> | |
<source>jquery-1.5.1.min.js</source> | |
<source>lib/jasmine-jquery-1.3.1.js</source> | |
</preloadSources> | |
</configuration> | |
<executions> | |
<execution> | |
<id>jasmine</id> | |
<goals> | |
<goal>generateManualRunner</goal> | |
<goal>resources</goal> | |
<goal>testResources</goal> | |
<goal>test</goal> | |
<goal>preparePackage</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>developer</id> | |
<properties> | |
<checkedout.legacy.js.src>${project.basedir}\..\..\my\crazy\path\to\my\checked\out\application\includes\js\</checkedout.legacy.js.src> | |
<legacy.js.src>${project.basedir}\src\temp\js\</legacy.js.src> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.pyx4j</groupId> | |
<artifactId>maven-junction-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>initialize</phase> | |
<goals> | |
<goal>link</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<links> | |
<link> | |
<dst>${legacy.js.src}</dst> | |
<src>${checkedout.legacy.js.src}</src> | |
</link> | |
</links> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profiles> | |
<profile> | |
<id>developer</id> | |
<properties> | |
<deployed.legacy.js.src>${project.basedir}\..\..\my\crazy\path\to\my\checked\out\application\includes\js\</deployed.legacy.js.src> | |
<legacy.js.src>${project.basedir}\src\temp\js\</legacy.js.src> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.pyx4j</groupId> | |
<artifactId>maven-junction-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>initialize</phase> | |
<goals> | |
<goal>link</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<links> | |
<link> | |
<dst>${legacy.js.src}</dst> | |
<src>${deployed.legacy.js.src}</src> | |
</link> | |
</links> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment