[UI] fix jasmine tests copies rest-api fixtures from brooklyn-server submodule repo
Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/356b0f9c Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/356b0f9c Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/356b0f9c Branch: refs/heads/master Commit: 356b0f9c5d350f33dbee9eafd167ab4c3523aeb2 Parents: 5d242dc Author: John McCabe <[email protected]> Authored: Sat Dec 19 12:13:56 2015 +0000 Committer: Alex Heneveld <[email protected]> Committed: Mon Dec 21 16:43:38 2015 +0000 ---------------------------------------------------------------------- brooklyn-ui/pom.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/356b0f9c/brooklyn-ui/pom.xml ---------------------------------------------------------------------- diff --git a/brooklyn-ui/pom.xml b/brooklyn-ui/pom.xml index 7674362..a0d331d 100644 --- a/brooklyn-ui/pom.xml +++ b/brooklyn-ui/pom.xml @@ -47,8 +47,10 @@ <maven-dependency-plugin.version>2.8</maven-dependency-plugin.version> <nodejs-maven-plugin.version>1.0.3</nodejs-maven-plugin.version> <maven-war-plugin.version>2.4</maven-war-plugin.version> + <nodejs-maven-binaries.version>0.10.25</nodejs-maven-binaries.version> <requirejs-maven-plugin.version>2.0.0</requirejs-maven-plugin.version> <maven-replacer-plugin.version>1.5.2</maven-replacer-plugin.version> + <maven-resources-plugin.version>2.7</maven-resources-plugin.version> </properties> <build> @@ -74,6 +76,28 @@ run tests in the browser with: $ mvn jasmine:bdd --> <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>${maven-resources-plugin.version}</version> + <executions> + <execution> + <id>copy-fixtures</id> + <phase>process-test-resources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${project.build.directory}/jasmine/fixtures</outputDirectory> + <resources> + <resource> + <!-- copy rest-api fixtures from brooklyn-server submodule repo --> + <directory>${project.basedir}/../brooklyn-server/rest/rest-api/src/test/resources/fixtures</directory> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>com.github.searls</groupId> <artifactId>jasmine-maven-plugin</artifactId> <version>${jasmine-maven-plugin.version}</version>
