Browse files

whitespaces

  • Loading branch information...
1 parent 2c7b268 commit 6fec64cc7aef2ed0f2f8e00d8698345d1479ff81 @mkristian mkristian committed May 14, 2010
Showing with 797 additions and 964 deletions.
  1. +25 −26 gem-maven-plugin/pom.xml
  2. +2 −6 gem-maven-plugin/src/it/gemify-complex/pom.xml
  3. +2 −6 gem-maven-plugin/src/it/gemify-empty-gemhome/pom.xml
  4. +2 −2 gem-maven-plugin/src/it/gemify-pom/pom.xml
  5. +1 −1 gem-maven-plugin/src/it/gemify-pom/src/main/java/com/example/App.java
  6. +1 −1 gem-maven-plugin/src/it/gemify-pom/src/test/java/com/example/AppTest.java
  7. +2 −6 gem-maven-plugin/src/it/gemify-simple/pom.xml
  8. +5 −8 gem-maven-plugin/src/it/initialize-force/pom.xml
  9. +5 −8 gem-maven-plugin/src/it/initialize/pom.xml
  10. +2 −5 gem-maven-plugin/src/it/install-gem-pom/pom.xml
  11. +2 −3 gem-maven-plugin/src/it/install-java-gem-pom/pom.xml
  12. +1 −1 gem-maven-plugin/src/it/install-java-gem-pom/src/main/java/com/example/App.java
  13. +1 −1 gem-maven-plugin/src/it/install-java-gem-pom/src/test/java/com/example/AppTest.java
  14. +0 −1 gem-maven-plugin/src/it/package-gem-artifact-from-gemspec-without-pom/gem_first.gemspec
  15. +2 −5 gem-maven-plugin/src/it/package-gem-artifact-from-gemspec-without-pom/pom.xml
  16. +0 −1 gem-maven-plugin/src/it/package-gem-artifact-from-gemspec/gem_first.gemspec
  17. +2 −5 gem-maven-plugin/src/it/package-gem-artifact-from-gemspec/pom.xml
  18. +5 −6 gem-maven-plugin/src/it/pom.xml
  19. +2 −2 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/AbstractGemMojo.java
  20. +10 −10 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/BuildMojo.java
  21. +2 −2 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/Fileset.java
  22. +2 −2 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/GemArtifact.java
  23. +2 −2 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/GemMojo.java
  24. +1 −1 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/GemifyMojo.java
  25. +6 −6 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/GemspecWriter.java
  26. +2 −2 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/InstallGemsMojo.java
  27. +2 −2 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/InstallMojo.java
  28. +2 −2 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/ListMojo.java
  29. +1 −1 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/PackageMojo.java
  30. +2 −2 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/SpecMojo.java
  31. +19 −19 gem-maven-plugin/src/main/resources/META-INF/plexus/components.xml
  32. +2 −2 gem-maven-plugin/src/main/resources/spec2pom.rb
  33. +12 −12 jruby-maven-plugin/pom.xml
  34. +5 −6 jruby-maven-plugin/src/it/compilation-failures/pom.xml
  35. +3 −8 jruby-maven-plugin/src/it/compile-dir/pom.xml
  36. +13 −14 jruby-maven-plugin/src/it/generate-java-and-compile/pom.xml
  37. +1 −1 jruby-maven-plugin/src/it/generate-java-and-compile/src/main/java/com/example/Reply.java
  38. +3 −8 jruby-maven-plugin/src/it/irb-help/pom.xml
  39. +2 −3 jruby-maven-plugin/src/it/jruby-embed/pom.xml
  40. +3 −8 jruby-maven-plugin/src/it/jruby-file/pom.xml
  41. +3 −8 jruby-maven-plugin/src/it/jruby-version/pom.xml
  42. +3 −8 jruby-maven-plugin/src/it/rake-empty-gemhome/pom.xml
  43. +1 −1 jruby-maven-plugin/src/it/rake-file/flags.txt
  44. +2 −3 jruby-maven-plugin/src/it/rake-file/pom.xml
  45. +6 −11 jruby-maven-plugin/src/it/rake-somewhere/pom.xml
  46. +3 −8 jruby-maven-plugin/src/it/rake-tasks/pom.xml
  47. +2 −3 jruby-maven-plugin/src/it/simple-ruby-script-to-outputfile-forked/pom.xml
  48. +3 −8 jruby-maven-plugin/src/it/simple-ruby-script-to-outputfile/pom.xml
  49. +2 −3 jruby-maven-plugin/src/it/simple-ruby-script/pom.xml
  50. +19 −19 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/AbstractJRubyMojo.java
  51. +7 −7 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/CompileMojo.java
  52. +2 −2 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/EmbeddedLauncher.java
  53. +2 −2 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/IRBMojo.java
  54. +5 −5 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/JRubyMojo.java
  55. +1 −1 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/Launcher.java
  56. +2 −2 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/LogAdapter.java
  57. +6 −6 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/RakeMojo.java
  58. +7 −7 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/SpecMojo.java
  59. +0 −1 license.txt
  60. +0 −36 pom-start.xml
  61. +36 −41 pom.xml
  62. +2 −2 rails-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
  63. +1 −1 rails-maven-archetype/src/main/resources/META-INF/maven/archetype.xml
  64. +72 −72 rails-maven-archetype/src/main/resources/archetype-resources/pom.xml
  65. +10 −10 rails-maven-archetype/src/main/resources/archetype-resources/public/maven.html
  66. +3 −3 rails-maven-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
  67. +22 −25 rails2-maven-plugin/pom.xml
  68. +2 −2 rails2-maven-plugin/src/main/java/de/saumya/mojo/rails/AbstractRailsMojo.java
  69. +3 −3 rails2-maven-plugin/src/main/java/de/saumya/mojo/rails/ConsoleMojo.java
  70. +4 −4 rails2-maven-plugin/src/main/java/de/saumya/mojo/rails/GenerateMojo.java
  71. +3 −3 rails2-maven-plugin/src/main/java/de/saumya/mojo/rails/RakeMojo.java
  72. +3 −3 rails2-maven-plugin/src/main/java/de/saumya/mojo/rails/ServerMojo.java
  73. +3 −4 rails3-maven-plugin/pom-start.xml
  74. +43 −45 rails3-maven-plugin/pom.xml
  75. +2 −2 rails3-maven-plugin/src/it/generate-application-mysql/flags.txt
  76. +111 −118 rails3-maven-plugin/src/it/generate-application-mysql/pom.xml
  77. +1 −1 rails3-maven-plugin/src/it/generate-application-sqlite3/flags.txt
  78. +111 −118 rails3-maven-plugin/src/it/generate-application-sqlite3/pom.xml
  79. +0 −15 rails3-maven-plugin/src/it/generate-application-sqlite3/pom.xml-
  80. +8 −8 rails3-maven-plugin/src/it/pom.xml
  81. +2 −2 rails3-maven-plugin/src/main/java/de/saumya/mojo/rails3/AbstractRailsMojo.java
  82. +2 −2 rails3-maven-plugin/src/main/java/de/saumya/mojo/rails3/ConsoleMojo.java
  83. +2 −2 rails3-maven-plugin/src/main/java/de/saumya/mojo/rails3/DbConsoleMojo.java
  84. +3 −3 rails3-maven-plugin/src/main/java/de/saumya/mojo/rails3/GenerateMojo.java
  85. +6 −6 rails3-maven-plugin/src/main/java/de/saumya/mojo/rails3/RailsMojo.java
  86. +3 −3 rails3-maven-plugin/src/main/java/de/saumya/mojo/rails3/RakeMojo.java
  87. +2 −2 rails3-maven-plugin/src/main/java/de/saumya/mojo/rails3/ServerMojo.java
  88. +33 −34 rspec-maven-plugin/pom.xml
  89. +19 −22 rspec-maven-plugin/src/it/launchdir-somewhere/pom.xml
  90. +16 −20 rspec-maven-plugin/src/it/spec-location-with-test-goal/pom.xml
  91. +6 −10 rspec-maven-plugin/src/it/success-with-rspec-goal/pom.xml
  92. +8 −8 rspec-maven-plugin/src/main/java/de/saumya/mojo/rspec/RSpecMojo.java
  93. +22 −22 rspec-maven-plugin/src/main/java/de/saumya/mojo/rspec/maven_progress_formatter.rb
View
51 gem-maven-plugin/pom.xml
@@ -17,18 +17,18 @@
<artifactId>jruby-maven-plugin</artifactId>
<version>${project.parent.version}</version>
</dependency>
- <dependency>
+ <dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>file-management</artifactId>
<version>1.2.1</version>
- </dependency>
+ </dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
- <version>1.4</version>
+ <version>1.4</version>
<executions>
<execution>
<id>add-source</id>
@@ -45,44 +45,43 @@
</executions>
</plugin>
<plugin>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.1.1</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.1</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
<id>src-dependencies</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
- <includeGroupIds>de.saumya.mojo</includeGroupIds>
- <includes>de/saumya/mojo/jruby/AbstractJRubyMojo.java</includes>
+ <includeGroupIds>de.saumya.mojo</includeGroupIds>
+ <includes>de/saumya/mojo/jruby/AbstractJRubyMojo.java</includes>
<classifier>sources</classifier>
<outputDirectory>${project.build.directory}/sources</outputDirectory>
</configuration>
</execution>
-
- </executions>
+ </executions>
</plugin>
<plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.3</version>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.3</version>
<configuration>
<excludes>
- <exclude>de/saumya/mojo/jruby/**</exclude>
- </excludes>
+ <exclude>de/saumya/mojo/jruby/**</exclude>
+ </excludes>
</configuration>
</plugin>
</plugins>
View
8 gem-maven-plugin/src/it/gemify-complex/pom.xml
@@ -1,11 +1,7 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>dummy</artifactId>
<version>testing</version>
-
</project>
-
View
8 gem-maven-plugin/src/it/gemify-empty-gemhome/pom.xml
@@ -1,11 +1,7 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>dummy</artifactId>
<version>testing</version>
-
</project>
-
View
4 gem-maven-plugin/src/it/gemify-pom/pom.xml
@@ -1,5 +1,5 @@
-<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/maven-v4_0_0.xsd">
+<?xml version="1.0"?>
+<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>gemify</artifactId>
View
2 gem-maven-plugin/src/it/gemify-pom/src/main/java/com/example/App.java
@@ -4,7 +4,7 @@
* Hello world!
*
*/
-public class App
+public class App
{
public static void main( String[] args )
{
View
2 gem-maven-plugin/src/it/gemify-pom/src/test/java/com/example/AppTest.java
@@ -7,7 +7,7 @@
/**
* Unit test for simple App.
*/
-public class AppTest
+public class AppTest
extends TestCase
{
/**
View
8 gem-maven-plugin/src/it/gemify-simple/pom.xml
@@ -1,11 +1,7 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>dummy</artifactId>
<version>testing</version>
-
</project>
-
View
13 gem-maven-plugin/src/it/initialize-force/pom.xml
@@ -1,7 +1,5 @@
-<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">
+<?xml version="1.0"?>
+<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>
<parent>
<groupId>com.example</groupId>
@@ -15,11 +13,11 @@
<repository>
<id>rubygems</id>
<releases>
- <updatePolicy>never</updatePolicy>
- <checksumPolicy>ignore</checksumPolicy>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
- <enabled>false</enabled>
+ <enabled>false</enabled>
</snapshots>
<url>http://rubygems.org/gems</url>
<layout>gem</layout>
@@ -43,4 +41,3 @@
<gem.forceVersion>true</gem.forceVersion>
</properties>
</project>
-
View
13 gem-maven-plugin/src/it/initialize/pom.xml
@@ -1,7 +1,5 @@
-<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">
+<?xml version="1.0"?>
+<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>
<parent>
<groupId>com.example</groupId>
@@ -15,11 +13,11 @@
<repository>
<id>rubygems</id>
<releases>
- <updatePolicy>never</updatePolicy>
- <checksumPolicy>ignore</checksumPolicy>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
- <enabled>false</enabled>
+ <enabled>false</enabled>
</snapshots>
<url>http://rubygems.org/gems</url>
<layout>gem</layout>
@@ -40,4 +38,3 @@
</dependency>
</dependencies>
</project>
-
View
7 gem-maven-plugin/src/it/install-gem-pom/pom.xml
@@ -1,7 +1,5 @@
-<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">
+<?xml version="1.0"?>
+<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>
<parent>
<groupId>com.example</groupId>
@@ -13,4 +11,3 @@
<artifactId>pom_first</artifactId>
<packaging>gem</packaging>
</project>
-
View
5 gem-maven-plugin/src/it/install-java-gem-pom/pom.xml
@@ -1,6 +1,5 @@
-<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/maven-v4_0_0.xsd">
+<?xml version="1.0"?>
+<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.example</groupId>
View
2 gem-maven-plugin/src/it/install-java-gem-pom/src/main/java/com/example/App.java
@@ -4,7 +4,7 @@
* Hello world!
*
*/
-public class App
+public class App
{
public static void main( String[] args )
{
View
2 gem-maven-plugin/src/it/install-java-gem-pom/src/test/java/com/example/AppTest.java
@@ -7,7 +7,7 @@
/**
* Unit test for simple App.
*/
-public class AppTest
+public class AppTest
extends TestCase
{
/**
View
1 gem-maven-plugin/src/it/package-gem-artifact-from-gemspec-without-pom/gem_first.gemspec
@@ -4,4 +4,3 @@ Gem::Specification.new do |s|
s.files = ["lib/gem_first.rb"]
s.summary = "gem first test gem"
end
-
View
7 gem-maven-plugin/src/it/package-gem-artifact-from-gemspec-without-pom/pom.xml
@@ -1,7 +1,5 @@
-<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">
+<?xml version="1.0"?>
+<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>rubygems</groupId>
<artifactId>gem_first</artifactId>
@@ -10,4 +8,3 @@
<gem.spec>none_existing.gemspec</gem.spec>
</properties>
</project>
-
View
1 gem-maven-plugin/src/it/package-gem-artifact-from-gemspec/gem_first.gemspec
@@ -4,4 +4,3 @@ Gem::Specification.new do |s|
s.files = ["lib/gem_first.rb"]
s.summary = "gem first test gem"
end
-
View
7 gem-maven-plugin/src/it/package-gem-artifact-from-gemspec/pom.xml
@@ -1,7 +1,5 @@
-<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">
+<?xml version="1.0"?>
+<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>rubygems</groupId>
<artifactId>gem_first</artifactId>
@@ -10,4 +8,3 @@
<gemspec>gem_first.gemspec</gemspec>
</properties>
</project>
-
View
11 gem-maven-plugin/src/it/pom.xml
@@ -1,18 +1,17 @@
-<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/maven-v4_0_0.xsd">
+<?xml version="1.0"?>
+<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>gem-maven-plugin</artifactId>
<packaging>pom</packaging>
<version>0.0.0</version>
<name>play ground for gem testing</name>
-
<build>
<plugins>
<plugin>
- <groupId>de.saumya.mojo</groupId>
- <artifactId>gem-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <groupId>de.saumya.mojo</groupId>
+ <artifactId>gem-maven-plugin</artifactId>
+ <version>0.12.0-SNAPSHOT</version>
<extensions>true</extensions>
</plugin>
</plugins>
View
4 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/AbstractGemMojo.java
@@ -56,14 +56,14 @@
/**
* allow to overwrite the version by explicitly declaring a dependency in
* the pom. will not check any dependencies on gemspecs level.
- *
+ *
* @parameter expression="${gem.forceVersion}" default-value="false"
*/
private boolean forceVersion;
/**
* follow transitive dependencies when initializing rubygem dependencies.
- *
+ *
* @parameter expression="${gem.useTransitiveDependencies}"
* default-value="false"
*/
View
20 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/BuildMojo.java
@@ -16,62 +16,62 @@
* goal to build a gem from the given project. must be of type "gem". it takes
* the metainfo from the pom alongs with extra configuration of the plugin to
* build the gem.
- *
+ *
* @goal build
* @requiresProject true
* @deprecated use package goal
*/
@Deprecated
public class BuildMojo extends AbstractJRubyMojo {
/**
- *
+ *
* @parameter
*/
protected final List<Fileset> gemfilesets = null;
/**
* map of dependency where the key is the gemname and value is the version
* pattern
- *
+ *
* @parameter
*/
protected Map<String, String> dependencies = null;
/**
* map of developer dependency where the key is the gemname and value is the
* version pattern
- *
+ *
* @parameter
*/
protected Map<String, String> developmentDependencies = null;
/**
* the file location for the generated gemspec
- *
- * @parameter
+ *
+ * @parameter
* default-value="${project.build.directory}/${project.artifactId}.gemspec"
*/
private final File gemSpec = null;
/**
* temporary directory to collect all the files for the gem
- *
- * @parameter
+ *
+ * @parameter
* default-value="${project.build.directory}/${project.artifactId}"
*/
private final File gemDirectory = null;
/**
* file of the generated jar file
- *
+ *
* @parameter default-value=
* "${project.build.directory}/${project.build.finalName}.jar"
*/
private final File jarfile = null;
/**
* file of the final gem.
- *
+ *
* @parameter default-value=
* "${project.build.directory}/${project.build.finalName}-java.gem"
*/
View
4 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/Fileset.java
@@ -1,8 +1,8 @@
/**
- *
+ *
*/
package de.saumya.mojo.gem;
@SuppressWarnings("serial")
public class Fileset extends org.apache.maven.shared.model.fileset.FileSet {
-}
+}
View
4 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/GemArtifact.java
@@ -1,5 +1,5 @@
/**
- *
+ *
*/
package de.saumya.mojo.gem;
@@ -342,4 +342,4 @@ public ArtifactMetadata getMetadata(final Class<?> metadataClass) {
return null;
}
-}
+}
View
4 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/GemMojo.java
@@ -6,13 +6,13 @@
/**
* goal to run gem with the given arguments.
- *
+ *
* @goal gem
*/
public class GemMojo extends AbstractJRubyMojo {
/**
* arguments for the gem command of JRuby.
- *
+ *
* @parameter default-value="${gem.args}"
*/
protected String args = null;
View
2 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/GemifyMojo.java
@@ -26,7 +26,7 @@
/**
* goal to convert that artifact into a gem.
- *
+ *
* @goal gemify
* @requiresDependencyResolution test
*/
View
12 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/GemspecWriter.java
@@ -1,5 +1,5 @@
/**
- *
+ *
*/
package de.saumya.mojo.gem;
@@ -28,7 +28,7 @@
class GemspecWriter {
- final MavenProject project;
+ final MavenProject project;
final Writer writer;
final String excludes = ".*~$|^[.][a-zA-Z].*";
final List<File> dirs = new ArrayList<File>();
@@ -195,7 +195,7 @@ void appendFile(final File file) throws IOException {
.append(file.toString())
.append("']\n");
}
-
+
if (file.lastModified() > this.latestModified) {
this.latestModified = file.lastModified();
}
@@ -305,15 +305,15 @@ private void copyFiles(final File target) throws IOException {
}
private void copyDir(final File target, final File dir) throws IOException {
- final File realDir = new File( this.project.getBasedir(), dir.getPath() );
+ final File realDir = new File( this.project.getBasedir(), dir.getPath() );
if (realDir.isDirectory()) {
for (final String file : realDir.list()) {
copyDir(target, new File(dir, file));
}
}
else {
if (realDir.exists() && !realDir.getName().matches(this.excludes)) {
- final File targetFile = new File( target, dir.getPath() );
+ final File targetFile = new File( target, dir.getPath() );
FileUtils.copyFile(realDir, targetFile);
}
}
@@ -327,4 +327,4 @@ void close() throws IOException {
this.writer.close();
}
}
-}
+}
View
4 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/InstallGemsMojo.java
@@ -6,15 +6,15 @@
/**
* goal to run gem install
- *
+ *
* @goal install-gems
* @deprecated use InstallMojo instead
*/
@Deprecated
public class InstallGemsMojo extends AbstractJRubyMojo {
/**
* list of comma separated gem names.
- *
+ *
* @parameter default-value="${jruby.gems}"
*/
private final String gems = null;
View
4 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/InstallMojo.java
@@ -7,7 +7,7 @@
/**
* goal to locally install a given gem
- *
+ *
* @goal install
*/
public class InstallMojo extends AbstractJRubyMojo {
@@ -19,7 +19,7 @@
/**
* arguments for the gem command of JRuby.
- *
+ *
* @parameter default-value="${gem.install}"
*/
protected String args = null;
View
4 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/ListMojo.java
@@ -6,13 +6,13 @@
/**
* goal to run "gem list".
- *
+ *
* @goal list
*/
public class ListMojo extends AbstractJRubyMojo {
/**
* arguments for the gem command of JRuby.
- *
+ *
* @parameter default-value="${gem.list}"
*/
protected String args = null;
View
2 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/PackageMojo.java
@@ -20,7 +20,7 @@
/**
* goal to convert that artifact into a gem.
- *
+ *
* @goal package
* @requiresDependencyResolution test
*/
View
4 gem-maven-plugin/src/main/java/de/saumya/mojo/gem/SpecMojo.java
@@ -6,13 +6,13 @@
/**
* goal to run "gem spec".
- *
+ *
* @goal spec
*/
public class SpecMojo extends AbstractJRubyMojo {
/**
* arguments for the gem command of JRuby.
- *
+ *
* @parameter default-value="${gem.spec}"
*/
protected String args = null;
View
38 gem-maven-plugin/src/main/resources/META-INF/plexus/components.xml
@@ -2,11 +2,11 @@
<components>
<component>
<role>
- org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout
+ org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout
</role>
<role-hint>gem</role-hint>
<implementation>
- de.saumya.mojo.gem.GemRepositoryLayout
+ de.saumya.mojo.gem.GemRepositoryLayout
</implementation>
</component>
<component>
@@ -17,22 +17,22 @@
</implementation>
<configuration>
<phases>
- <initialize>
- de.saumya.mojo:gem-maven-plugin:initialize
- </initialize>
+ <initialize>
+ de.saumya.mojo:gem-maven-plugin:initialize
+ </initialize>
<process-resources>
org.apache.maven.plugins:maven-resources-plugin:resources
</process-resources>
<compile>
org.apache.maven.plugins:maven-compiler-plugin:compile
</compile>
<package>
- de.saumya.mojo:gem-maven-plugin:package
- </package>
- <install>
+ de.saumya.mojo:gem-maven-plugin:package
+ </package>
+ <install>
org.apache.maven.plugins:maven-install-plugin:install
- </install>
- <deploy>
+ </install>
+ <deploy>
org.apache.maven.plugins:maven-deploy-plugin:deploy
</deploy>
</phases>
@@ -62,23 +62,23 @@
</implementation>
<configuration>
<phases>
- <initialize>
- de.saumya.mojo:gem-maven-plugin:initialize
- </initialize>
+ <initialize>
+ de.saumya.mojo:gem-maven-plugin:initialize
+ </initialize>
<process-resources>
org.apache.maven.plugins:maven-resources-plugin:resources
</process-resources>
<compile>
org.apache.maven.plugins:maven-compiler-plugin:compile
</compile>
<package>
- org.apache.maven.plugins:maven-jar-plugin:jar,
- de.saumya.mojo:gem-maven-plugin:package
- </package>
- <install>
+ org.apache.maven.plugins:maven-jar-plugin:jar,
+ de.saumya.mojo:gem-maven-plugin:package
+ </package>
+ <install>
org.apache.maven.plugins:maven-install-plugin:install
- </install>
- <deploy>
+ </install>
+ <deploy>
org.apache.maven.plugins:maven-deploy-plugin:deploy
</deploy>
</phases>
View
4 gem-maven-plugin/src/main/resources/spec2pom.rb
@@ -5,8 +5,8 @@
puts <<-POM
<?xml version="1.0"?>
-<project
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
View
24 jruby-maven-plugin/pom.xml
@@ -23,22 +23,22 @@
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
- <encoding>UTF-8</encoding>
+ <encoding>UTF-8</encoding>
<goalPrefix>ruby</goalPrefix>
</configuration>
</plugin>
<plugin>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.1.1</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.1</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
View
11 jruby-maven-plugin/src/it/compilation-failures/pom.xml
@@ -12,13 +12,12 @@
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
- <configuration>
- <ignoreFailures>true</ignoreFailures>
- </configuration>
+ <version>0.12.0-SNAPSHOT</version>
+ <configuration>
+ <ignoreFailures>true</ignoreFailures>
+ </configuration>
</plugin>
</plugins>
</build>
-
-</project>
+</project>
View
11 jruby-maven-plugin/src/it/compile-dir/pom.xml
@@ -1,21 +1,16 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>jruby-version</artifactId>
<version>testing</version>
-
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
-
</project>
-
View
27 jruby-maven-plugin/src/it/generate-java-and-compile/pom.xml
@@ -18,21 +18,20 @@
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
- <configuration>
- <generateJava>true</generateJava>
- </configuration>
- <executions>
- <execution>
- <phase>compile</phase>
- <goals>
- <goal>compile</goal>
- </goals>
- </execution>
- </executions>
+ <version>0.12.0-SNAPSHOT</version>
+ <configuration>
+ <generateJava>true</generateJava>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>compile</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
-
-</project>
+</project>
View
2 jruby-maven-plugin/src/it/generate-java-and-compile/src/main/java/com/example/Reply.java
@@ -2,4 +2,4 @@
public interface Reply {
String reply();
-}
+}
View
11 jruby-maven-plugin/src/it/irb-help/pom.xml
@@ -1,21 +1,16 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>jruby-version</artifactId>
<version>testing</version>
-
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
-
</project>
-
View
5 jruby-maven-plugin/src/it/jruby-embed/pom.xml
@@ -12,10 +12,9 @@
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
-
-</project>
+</project>
View
11 jruby-maven-plugin/src/it/jruby-file/pom.xml
@@ -1,21 +1,16 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>jruby-version</artifactId>
<version>testing</version>
-
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
-
</project>
-
View
11 jruby-maven-plugin/src/it/jruby-version/pom.xml
@@ -1,21 +1,16 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>jruby-version</artifactId>
<version>testing</version>
-
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
-
</project>
-
View
11 jruby-maven-plugin/src/it/rake-empty-gemhome/pom.xml
@@ -1,21 +1,16 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>spec-file</artifactId>
<version>testing</version>
-
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
-
</project>
-
View
2 jruby-maven-plugin/src/it/rake-file/flags.txt
@@ -1,2 +1,2 @@
--Djruby.rake.args=-T
+-Djruby.rake.args=-T
-Djruby.rake.file=file
View
5 jruby-maven-plugin/src/it/rake-file/pom.xml
@@ -12,10 +12,9 @@
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
-
-</project>
+</project>
View
17 jruby-maven-plugin/src/it/rake-somewhere/pom.xml
@@ -1,24 +1,19 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>jruby-version</artifactId>
<version>testing</version>
-
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
- <configuration>
- <launchDirectory>somewhere</launchDirectory>
- </configuration>
+ <version>0.12.0-SNAPSHOT</version>
+ <configuration>
+ <launchDirectory>somewhere</launchDirectory>
+ </configuration>
</plugin>
</plugins>
</build>
-
</project>
-
View
11 jruby-maven-plugin/src/it/rake-tasks/pom.xml
@@ -1,21 +1,16 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>jruby-version</artifactId>
<version>testing</version>
-
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
-
</project>
-
View
5 jruby-maven-plugin/src/it/simple-ruby-script-to-outputfile-forked/pom.xml
@@ -12,7 +12,7 @@
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
<configuration>
<file>${basedir}/src/main/ruby/hello.rb</file>
<args>kristian</args>
@@ -21,6 +21,5 @@
</plugin>
</plugins>
</build>
-
-</project>
+</project>
View
11 jruby-maven-plugin/src/it/simple-ruby-script-to-outputfile/pom.xml
@@ -1,18 +1,15 @@
-<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">
+<?xml version="1.0"?>
+<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>de.saumya.mojo</groupId>
<artifactId>jruby-version</artifactId>
<version>testing</version>
-
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
<configuration>
<file>${basedir}/src/main/ruby/hello.rb</file>
<args>kristian</args>
@@ -21,6 +18,4 @@
</plugin>
</plugins>
</build>
-
</project>
-
View
5 jruby-maven-plugin/src/it/simple-ruby-script/pom.xml
@@ -12,7 +12,7 @@
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.12.0-SNAPSHOT</version>
<configuration>
<script>
puts "hello world"
@@ -21,6 +21,5 @@
</plugin>
</plugins>
</build>
-
-</project>
+</project>
View
38 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/AbstractJRubyMojo.java
@@ -30,7 +30,7 @@
/**
* Base for all JRuby mojos.
- *
+ *
* @requiresProject false
*/
public abstract class AbstractJRubyMojo extends AbstractMojo {
@@ -41,58 +41,58 @@
/**
* fork the JRuby execution.
- *
+ *
* @parameter expression="${jruby.fork}" default-value="true"
*/
protected boolean fork;
/**
* verbose jruby related output
- *
+ *
* @parameter expression="${jruby.verbose}" default-value="false"
*/
protected boolean verbose;
/**
* the launch directory for the JRuby execution.
- *
+ *
* @parameter expression="${project.basedir}"
*/
protected File launchDirectory;
/**
* directory of JRuby home to use when forking JRuby.
- *
+ *
* @parameter default-value="${jruby.home}"
*/
protected File jrubyHome;
/**
* directory of gem home to use when forking JRuby.
- *
+ *
* @parameter expression="${jruby.gem.home}"
* default-value="${project.build.directory}/rubygems"
*/
protected File gemHome;
/**
* directory of JRuby path to use when forking JRuby.
- *
+ *
* @parameter expression="${jruby.gem.path}"
* default-value="${project.build.directory}/rubygems"
*/
protected File gemPath;
/**
* The amount of memory to use when forking JRuby.
- *
+ *
* @parameter expression="${jruby.launch.memory}" default-value="384m"
*/
protected String jrubyLaunchMemory;
/**
* reference to maven project for internal use.
- *
+ *
* @parameter expression="${project}"
* @required
* @readOnly true
@@ -101,7 +101,7 @@
/**
* The project's artifacts.
- *
+ *
* @parameter default-value="${project.artifacts}"
* @required
* @readonly
@@ -110,7 +110,7 @@
/**
* artifact factory for internal use.
- *
+ *
* @component
* @required
* @readonly
@@ -119,7 +119,7 @@
/**
* artifact resolver for internal use.
- *
+ *
* @component
* @required
* @readonly
@@ -128,7 +128,7 @@
/**
* local repository for internal use.
- *
+ *
* @parameter default-value="${localRepository}"
* @required
* @readonly
@@ -137,7 +137,7 @@
/**
* list of remote repositories for internal use.
- *
+ *
* @parameter default-value="${project.remoteArtifactRepositories}"
* @required
* @readonly
@@ -148,14 +148,14 @@
* if the pom.xml has no runtime dependency to a jruby-complete.jar then
* this version is used to resolve the jruby-complete dependency from the
* local/remote maven repository. defaults to "1.4.1".
- *
+ *
* @parameter default-value="${jruby.version}"
*/
protected String jrubyVersion;
/**
* directory to leave some flags for already installed gems.
- *
+ *
* @parameter expression="${jruby.gem.flags}"
* default-value="${project.build.directory}/gems"
*/
@@ -164,14 +164,14 @@
/**
* output file where the stdout will be redirected to
- *
+ *
* @parameter
*/
protected File outputFile;
/**
* output directory for internal use.
- *
+ *
* @parameter default-value="${project.build.outputDirectory}"
* @required
* @readonly
@@ -180,7 +180,7 @@
/**
* classrealm for internal use.
- *
+ *
* @parameter expression="${dummyExpression}"
* @readonly
*/
View
14 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/CompileMojo.java
@@ -6,11 +6,11 @@
/**
* executes the compiles ruby classes to java bytecode (jrubyc).
- *
+ *
* <br/>
- *
+ *
* NOTE: this goal uses only a small subset of the features of jrubyc.
- *
+ *
* @goal compile
* @phase compile
* @requiresDependencyResolution compile
@@ -19,7 +19,7 @@
/**
* directory where to find the ruby files
- *
+ *
* @parameter default-value="src/main/ruby"
*/
protected File rubyDirectory;
@@ -28,7 +28,7 @@
* where the compiled class files are written unless you choose to generate
* java classes (needs >=jruby-1.5). default is the same as for java
* classes.
- *
+ *
* @parameter default-value="${project.build.outputDirectory}"
*/
protected File outputDirectory;
@@ -45,7 +45,7 @@
/**
* where the java files (needs >=jruby-1.5).
- *
+ *
* @parameter default-value="${basedir}/target/jrubyc-generated-sources"
*/
protected File generatedJavaDirectory;
@@ -80,4 +80,4 @@ else if (!this.outputDirectory.exists()) {
getLog().debug("script: " + script);
execute(script.toString());
}
-}
+}
View
4 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/EmbeddedLauncher.java
@@ -1,5 +1,5 @@
/**
- *
+ *
*/
package de.saumya.mojo.jruby;
@@ -155,4 +155,4 @@ ClassRealm cloneClassRealm(final Artifact jrubyArtifact,
return newClassRealm;
}
-}
+}
View
4 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/IRBMojo.java
@@ -4,7 +4,7 @@
/**
* maven wrpper around IRB.
- *
+ *
* @goal irb
* @requiresDependencyResolution test
*/
@@ -19,7 +19,7 @@
/**
* arguments for the irb command.
- *
+ *
* @parameter default-value="${jruby.irb.args}"
*/
protected String args = null;
View
10 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/JRubyMojo.java
@@ -8,29 +8,29 @@
/**
* executes the jruby command.
- *
+ *
* @goal jruby
* @requiresDependencyResolution test
*/
public class JRubyMojo extends AbstractJRubyMojo {
/**
* ruby code which gets executed.
- *
+ *
* @parameter default-value="${jruby.script}"
*/
protected String script = null;
/**
* ruby file which gets executed.
- *
+ *
* @parameter default-value="${jruby.file}"
*/
protected File file = null;
/**
* arguments for the jruby command.
- *
+ *
* @parameter default-value="${jruby.args}"
*/
protected String args = null;
@@ -56,4 +56,4 @@ public void execute() throws MojoExecutionException {
getLog().warn("no arguments given. use -Djruby.args=... or -Djruby.script=... or -Djruby.file=...");
}
}
-}
+}
View
2 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/Launcher.java
@@ -15,4 +15,4 @@ public abstract void execute(final File launchDirectory,
throws MojoExecutionException,
DependencyResolutionRequiredException;
-}
+}
View
4 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/LogAdapter.java
@@ -1,5 +1,5 @@
/**
- *
+ *
*/
package de.saumya.mojo.jruby;
@@ -71,4 +71,4 @@ private void log(final BuildEvent event) {
break;
}
}
-}
+}
View
12 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/RakeMojo.java
@@ -8,21 +8,21 @@
/**
* maven wrapper around the rake command.
- *
+ *
* @goal rake
* @requiresDependencyResolution test
*/
public class RakeMojo extends AbstractJRubyMojo {
/**
* rakefile to be used for the rake command.
- *
+ *
* @parameter default-value="${jruby.rake.file}"
*/
private final File rakefile = null;
/**
* output directory for internal use.
- *
+ *
* @parameter expression="${project.build.directory}"
* @required
* @readOnly
@@ -31,14 +31,14 @@
/**
* ruby script which rakes executes as rakefile.
- *
+ *
* @parameter default-value="${jruby.rake.script}"
*/
private final String script = null;
/**
* arguments for the rake command.
- *
+ *
* @parameter default-value="${jruby.rake.args}"
*/
private final String args = null;
@@ -69,4 +69,4 @@ else if (this.rakefile != null) {
}
execute(args.toString());
}
-}
+}
View
14 jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/SpecMojo.java
@@ -6,7 +6,7 @@
/**
* Goal to run rspecs. (deprecated, use rspec-maven-plugin instead)
- *
+ *
* @goal spec
* @phase test
* @requiresDependencyResolution test
@@ -16,37 +16,37 @@
/**
* directory with the spec files.
- *
+ *
* @parameter expression="${jruby.spec.dir}" default-value="spec"
*/
protected File specDirectory;
/**
* include pattern for files in the spec directory
- *
+ *
* @parameter expression="${jruby.spec.pattern}"
* default-value="**\/*_spec.rb"
*/
protected String includes;
/**
* file to run with spec.
- *
+ *
* @parameter default-value="${jruby.spec.file}"
*/
protected File specFile;
/**
* file with spec options.
- *
+ *
* @parameter expression="${jruby.spec.opts}" default-value="spec/spec.opts"
* @required
*/
protected File specOptions;
/**
* skip specs.
- *
+ *
* @parameter expression="${skipSpecs}" default-value="false"
* alias="skipTests"
* @required
@@ -55,7 +55,7 @@
/**
* arguments for the spec command.
- *
+ *
* @parameter default-value="${jruby.spec.args}"
*/
protected String args = null;
View
1 license.txt
@@ -20,4 +20,3 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
View
36 pom-start.xml
@@ -1,36 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0">
- <modelVersion>4.0.0</modelVersion>
- <groupId>de.saumya.mojo</groupId>
- <artifactId>generate</artifactId>
- <version>0.0.0</version>
-
- <pluginRepositories>
- <pluginRepository>
- <id>sonatype-nexus-snapshots</id>
- <name>Sonatype Nexus Snapshots</name>
- <url>http://oss.sonatype.org/content/repositories/snapshots</url>
- </pluginRepository>
- </pluginRepositories>
-
- <build>
- <plugins>
- <plugin>
- <groupId>de.saumya.mojo</groupId>
- <artifactId>rails3-maven-plugin</artifactId>
- <version>0.11.0-SNAPSHOT</version>
- </plugin>
- <plugin>
- <groupId>de.saumya.mojo</groupId>
- <artifactId>rails2-maven-plugin</artifactId>
- <version>0.11.0-SNAPSHOT</version>
- </plugin>
- <plugin>
- <groupId>de.saumya.mojo</groupId>
- <artifactId>rails-maven-archetype</artifactId>
- <version>0.11.0-SNAPSHOT</version>
- </plugin>
- </plugins>
- </build>
-
-</project>
-
View
77 pom.xml
@@ -40,45 +40,42 @@
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>2.2.1</version>
- </dependency>
+ </dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>2.2.1</version>
- </dependency>
+ </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<scope>test</scope>
</dependency>
</dependencies>
-
<distributionManagement>
-<!--
+ <!--
<repository>
<id>ssh-repository</id>
<url>scpexe://mojo.saumya.de/home/mojo/public</url>
</repository>
--->
+-->
<repository>
<id>sonatype-nexus-staging</id>
<name>Nexus Release Repository</name>
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
- </repository>
+ </repository>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
-
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
-
<build>
-<!--
+ <!--
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
@@ -87,7 +84,7 @@
</extension>
</extensions>
-->
- <plugins>
+ <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
@@ -97,17 +94,17 @@
<artifactId>maven-plugin-plugin</artifactId>
<version>2.5.1</version>
<executions>
- <execution>
- <phase>process-sources</phase>
- <goals>
- <goal>helpmojo</goal>
- </goals>
- </execution>
+ <execution>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>helpmojo</goal>
+ </goals>
+ </execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
- <version>2.2</version>
+ <version>2.2</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.5</source>
@@ -120,10 +117,9 @@
<configuration>
<encoding>UTF-8</encoding>
</configuration>
- </plugin>
+ </plugin>
</plugins>
</build>
-
<modules>
<module>jruby-maven-plugin</module>
<module>gem-maven-plugin</module>
@@ -132,7 +128,6 @@
<module>rails3-maven-plugin</module>
<module>rspec-maven-plugin</module>
</modules>
-
<profiles>
<profile>
<id>release</id>
@@ -162,7 +157,7 @@
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
- <version>2.1.1</version>
+ <version>2.1.1</version>
<executions>
<execution>
<id>attach-sources</id>
@@ -189,7 +184,7 @@
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
- <version>2.5</version>
+ <version>2.5</version>
<configuration>
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
@@ -200,29 +195,29 @@
<profile>
<id>integration-test</id>