Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#132 Create rocker-compiler.conf in generated-sources #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void run() throws RuntimeException{
// use resource name, but strip leading slash
// place it into the classes directory (not the compile directory)
try{
File configFile = new File(this.configuration.getClassDirectory(), RockerRuntime.CONF_RESOURCE_NAME.substring(1));
File configFile = new File(this.configuration.getOutputDirectory(), RockerRuntime.CONF_RESOURCE_NAME.substring(1));
this.configuration.write(configFile);
log.info("Generated rocker configuration " + configFile);
}catch(IOException iox){
Expand Down
27 changes: 26 additions & 1 deletion rocker-test-reload/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,31 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-generated-resources</id>
<phase>generate-test-resources</phase>
<goals>
<goal>add-test-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${basedir}/target/generated-test-sources/rocker</directory>
<targetPath>${basedir}/target/test-classes</targetPath>
<includes>
<include>**/*.conf</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- adjusts how surefire plugin manipulates classpath for testing -->
<!-- only way to get compiling & reloading to work like we expect -->
<plugin>
Expand Down Expand Up @@ -124,4 +149,4 @@
</dependency>

</dependencies>
</project>
</project>