Skip to content

Commit

Permalink
Merge pull request #138 from headius/small_fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
headius authored Dec 11, 2024
2 parents 6d6106d + 6e51482 commit d95fa12
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public String toString(){
}
private void getHistoryLogScript(RubyStringBuilder builder) {
builder.appendLine("log = File.join('log', 'history.log')");
builder.appendLine("if File.exists? File.dirname(log)");
builder.appendLine("if File.exist? File.dirname(log)");
builder.appendLine(" File.open(log, 'a') do |f|");
builder.appendLine(" f.puts \"#{$0.sub(/.*\\//, '')} #{ARGV.join ' '}\"");
builder.appendLine(" end");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<version>3.7.1</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies-and-gems</descriptorRef>
Expand All @@ -71,7 +71,7 @@
<execution>
<phase>package</phase>
<goals>
<goal>assembly</goal>
<goal>single</goal>
</goals>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 4 additions & 0 deletions gem-maven-plugin/src/it/gemify-pom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
4 changes: 4 additions & 0 deletions gem-maven-plugin/src/it/include-rubygems-in-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<target>1.6</target>
<source>1.6</source>
<target>8</target>
<source>8</source>
</configuration>
</plugin>
<plugin>
Expand Down
4 changes: 4 additions & 0 deletions gem-maven-plugin/src/it/small-project/java-world/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ else if ((Artifact.SCOPE_PROVIDED + Artifact.SCOPE_TEST).contains(dependency.get
writer.append("end\n");
writer.append("\n");
writer.append("load File.dirname(__FILE__) + '/" + this.gemHook
+ "' if File.exists?( File.dirname(__FILE__) + '/"
+ "' if File.exist?( File.dirname(__FILE__) + '/"
+ this.gemHook + "')\n");
}
catch (final IOException e) {
Expand Down
2 changes: 1 addition & 1 deletion parent-mojo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<version>3.2.1</version>
<executions>
<execution>
<goals><goal>jar</goal></goals>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3</version>
<version>3.4.1</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ruby-tools/src/main/scripts/install_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Dir[ 'target/dependency/*gem' ].each do |file|
f = "../target/rubygems/gems/#{File.basename(file).sub(/.gem/, '')}/lib"
unless File.exists?( f )
unless File.exist?( f )
f = "../target/rubygems/gems/#{File.basename(file).sub(/.gem/, '')}-java/lib"
end
Dir[ File.expand_path( f ) + "/*" ].each do |ff|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.2</source>
<target>1.2</target>
<source>8</source>
<target>8</target>
<includes>
<include>org/apache/tools/ant/launch/*.java</include>
</includes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.2</source>
<target>1.2</target>
<source>8</source>
<target>8</target>
<excludes>
<exclude>org/apache/tools/ant/taskdefs/optional/**</exclude>
<exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
Expand Down

0 comments on commit d95fa12

Please sign in to comment.