Skip to content

Commit

Permalink
use .gitignore in issue-62.2 it test
Browse files Browse the repository at this point in the history
  • Loading branch information
McFoggy committed Oct 31, 2017
1 parent 881603d commit 2156d6a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
13 changes: 12 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@
<configuration>
<debug>false</debug>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<cloneAllFiles>true</cloneAllFiles>
<setupIncludes>
<setupInclude>issues/*-pre/pom.xml</setupInclude>
<setupInclude>*-pre/pom.xml</setupInclude>
Expand All @@ -375,9 +376,19 @@
</configuration>
<executions>
<execution>
<id>integration-test</id>
<id>invoker-install</id>
<goals>
<goal>install</goal>
</goals>
<configuration>
<extraArtifacts>
<extraArtifact>org.apache.maven.plugins:maven-antrun-plugin:1.3:maven-plugin</extraArtifact>
</extraArtifacts>
</configuration>
</execution>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
Expand Down
2 changes: 1 addition & 1 deletion src/it/issues/issue-62.2/invoker.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
invoker.mavenOpts = -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# invoker.mavenOpts = -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
8 changes: 4 additions & 4 deletions src/it/issues/issue-62.2/prebuild.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def log = new PrintWriter( new File(basedir, "prebuild.log").newWriter("UTF-8"),
log.println( "Prebuild started at: " + new Date() + " in: " + basedir )

// Let's create an ignore file
def toIgnore = ["prebuild.log", "build.log"];
def gitIgnore = new PrintWriter( new File(basedir, ".gitignore").newWriter("UTF-8"), true )
toIgnore.each { gitIgnore.println(it) }
gitIgnore.close()
//def toIgnore = ["prebuild.log", "build.log"];
//def gitIgnore = new PrintWriter( new File(basedir, ".gitignore").newWriter("UTF-8"), true )
//toIgnore.each { gitIgnore.println(it) }
//gitIgnore.close()

[
"git --version",
Expand Down

0 comments on commit 2156d6a

Please sign in to comment.