Author: adietish
Date: 2010-10-20 08:46:23 -0400 (Wed, 20 Oct 2010)
New Revision: 25942
Added:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/pom.xml
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/settings.xml
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/src/
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/src/main/
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/src/main/java/
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/src/test/
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/src/test/java/
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/src/test/java/bootstrap_test.rb
Log:
temp attempt on ruby gem pom
Added: trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/pom.xml
===================================================================
--- trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/pom.xml
(rev 0)
+++ trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/pom.xml 2010-10-20
12:46:23 UTC (rev 25942)
@@ -0,0 +1,351 @@
+<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>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>5</version>
+ <relativePath></relativePath>
+ </parent> -->
+
+ <groupId>org.jboss.tools.deltacloud.runtime</groupId>
+ <artifactId>deltacloud-runtime</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>Delta Cloud Runtime</name>
+
+ <description>
+ POM for trying to get Delta Cloud running with jruby
+ </description>
+
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <distributionManagement>
+ <repository>
+ <id>torquebox.release.repository</id>
+ <name>TorqueBox Release Repository</name>
+
<
url>scpexe://repository.torquebox.org/opt/torquebox/repository/maven2/...
+ </repository>
+ <snapshotRepository>
+ <id>torquebox.snapshot.repository</id>
+ <name>TorqueBox Snapshot Repository</name>
+
<
url>scpexe://repository.torquebox.org/opt/torquebox/repository/maven2/...
+ </snapshotRepository>
+ </distributionManagement>
+ </profile>
+ </profiles>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jruby</groupId>
+ <artifactId>jruby-complete</artifactId>
+ <version>${version.jruby}</version>
+ </dependency>
+ <dependency>
+ <groupId>rubygems</groupId>
+ <artifactId>rspec</artifactId>
+ <version>${version.rspec}</version>
+ <type>gem</type>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>rubygems</groupId>
+ <artifactId>rake</artifactId>
+ <version>${version.rake}</version>
+ <type>gem</type>
+ </dependency>
+ <dependency>
+ <groupId>rubygems</groupId>
+ <artifactId>rubyzip</artifactId>
+ <version>${version.rubyzip}</version>
+ <type>gem</type>
+ </dependency>
+
+ <dependency>
+ <groupId>rubygems</groupId>
+ <artifactId>steamcannon-deltacloud-core</artifactId>
+ <type>gem</type>
+ </dependency>
+
+ <!-- <dependency>
+ <groupId>org.jruby</groupId>
+ <artifactId>jruby-bin</artifactId>
+ <version>${version.jruby}</version>
+ <type>zip</type>
+ </dependency>
+ -->
+ </dependencies>
+ </dependencyManagement>
+
+ <properties>
+<!-- this was 0.22 before, but no avail from main repo -->
+ <version.jruby-maven-plugins>0.22.0</version.jruby-maven-plugins>
+ <version.junit>4.7</version.junit>
+ <version.jmock>2.5.1</version.jmock>
+ <version.mockito>1.8.4</version.mockito>
+ <version.hamcrest>1.1</version.hamcrest>
+
+ <version.jboss.reloaded>0.1.2</version.jboss.reloaded>
+
+ <version.jruby>1.5.3</version.jruby>
+ <version.snakeyaml>1.5</version.snakeyaml>
+ <version.rack>1.1.0</version.rack>
+
+ <version.rails2>2.3.8</version.rails2>
+ <version.rails3>3.0.0</version.rails3>
+
+ <version.ar.jdbc>0.9.7</version.ar.jdbc>
+ <version.ar.sqlite3>0.9.7</version.ar.sqlite3>
+ <version.ar.mysql>0.9.7</version.ar.mysql>
+ <version.ar.postgresql>0.9.7</version.ar.postgresql>
+
+ <version.jdbc.sqlite3>3.6.3.054</version.jdbc.sqlite3>
+ <version.jdbc.mysql>5.0.4</version.jdbc.mysql>
+ <version.jdbc.postgresql>8.4.701</version.jdbc.postgresql>
+
+ <version.rake>0.8.7</version.rake>
+ <version.rubyzip>0.9.4</version.rubyzip>
+ <version.rspec>1.3.0</version.rspec>
+
+ <version.jbossas>6.0.0.20100911-M5</version.jbossas>
+ <version.jbossas.package>6.0.x</version.jbossas.package>
+ <version.jbossmc>2.2.0.Alpha6</version.jbossmc>
+
+ <version.hornetq>2.0.0.GA</version.hornetq>
+ <version.netty>3.1.5.GA</version.netty>
+ <version.jms>1.1</version.jms>
+
+ <cxf.version>2.2.3</cxf.version>
+
+ <mobicents.sip.version>1.0</mobicents.sip.version>
+ <mobicents.spec.version>1.1.10</mobicents.spec.version>
+
+ </properties>
+
+ <repositories>
+ <repository>
+ <id>rubygems-proxy</id>
+ <name>Rubygems Proxy</name>
+ <
url>http://rubygems-proxy.torquebox.org/releases</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <!-- Plugin Repositories -->
+ <pluginRepositories>
+ <pluginRepository>
+ <id>sonatype-snapshots</id>
+ <name>Sonatype Snapshots Repository</name>
+ <
url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <build>
+ <finalName>${project.artifactId}</finalName>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*.rb</include>
+ <include>**/*.properties</include>
+ </includes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>de.saumya.mojo</groupId>
+ <artifactId>gem-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <showDeprecation>true</showDeprecation>
+ <showWarnings>true</showWarnings>
+ <optimize>true</optimize>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <commitByProject>true</commitByProject>
+ <autoVersionSubmodules>true</autoVersionSubmodules>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <configuration>
+ <instrumentation>
+ <includes>
+ <include>org/torquebox/**/*.class</include>
+ </includes>
+ </instrumentation>
+ <formats>
+ <format>html</format>
+ <format>xml</format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.sonar</groupId>
+ <artifactId>sonar-maven3-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <!--<version>2.1.2</version>-->
+ <version>2.3.3</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <followSymLinks>false</followSymLinks>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.6.1</version>
+ <configuration>
+
<stylesheetfile>${project.build.directory}/site/apidocs/stylesheet.css</stylesheetfile>
+ <docfilessubdirs>true</docfilessubdirs>
+ <resourcesArtifacts>
+ <resourcesArtifact>
+ <groupId>org.torquebox</groupId>
+ <artifactId>torquebox-javadoc-support</artifactId>
+ <version>${project.version}</version>
+ </resourcesArtifact>
+ </resourcesArtifacts>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>de.saumya.mojo</groupId>
+ <artifactId>gem-maven-plugin</artifactId>
+ <version>${version.jruby-maven-plugins}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <jrubyVersion>${version.jruby}</jrubyVersion>
+ <jrubyArgs>-Xmx768m</jrubyArgs>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>de.saumya.mojo</groupId>
+ <artifactId>jruby-maven-plugin</artifactId>
+ <version>${version.jruby-maven-plugins}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <jrubyVersion>${version.jruby}</jrubyVersion>
+ <jrubyArgs>-Xmx768m</jrubyArgs>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>de.saumya.mojo</groupId>
+ <artifactId>rake-maven-plugin</artifactId>
+ <version>${version.jruby-maven-plugins}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <jrubyVersion>${version.jruby}</jrubyVersion>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>de.saumya.mojo</groupId>
+ <artifactId>rspec-maven-plugin</artifactId>
+ <version>${version.jruby-maven-plugins}</version>
+ <executions>
+ <execution>
+ <id>run-specs</id>
+ <phase>test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <inherit>true</inherit>
+ <jrubyVersion>${version.jruby}</jrubyVersion>
+ <gemHome>${project.build.directory}/rubygems</gemHome>
+ <gemPath>${project.build.directory}/rubygems</gemPath>
+ <fork>true</fork>
+ <systemProperties>
+ <property>
+ <name>log4j.configuration</name>
+ <value>test-log4j.xml</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
Added: trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/settings.xml
===================================================================
--- trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/settings.xml
(rev 0)
+++ trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/settings.xml 2010-10-20
12:46:23 UTC (rev 25942)
@@ -0,0 +1,50 @@
+
+<settings
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
+
+ <profiles>
+ <profile>
+ <id>jboss-public-repository</id>
+ <repositories>
+ <repository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+
<
url>http://repository.jboss.org/nexus/content/groups/public/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+
<
url>http://repository.jboss.org/nexus/content/groups/public/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ </profiles>
+
+ <activeProfiles>
+ <activeProfile>jboss-public-repository</activeProfile>
+ </activeProfiles>
+
+</settings>
+
Added:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/src/test/java/bootstrap_test.rb
===================================================================
---
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/src/test/java/bootstrap_test.rb
(rev 0)
+++
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/gems/src/test/java/bootstrap_test.rb 2010-10-20
12:46:23 UTC (rev 25942)
@@ -0,0 +1,20 @@
+require 'rubygems'
+#require 'deltacloud-dependencies.jar'
+require 'deltacloud-dependencies.jar'
+#require 'steamcannon-deltacloud-core'
+
+# Force Rubygems to reload the gem paths
+Gem.clear_paths
+
+version = ">= 0"
+
+if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
+ version = $1
+ ARGV.shift
+end
+
+ARGV[0] = "-i mock"
+
+load Gem.bin_path('steamcannon-deltacloud-core', 'deltacloudd', version)
+
+