Permalink
Browse files

Initial checkin with working Rake build task.

  • Loading branch information...
0 parents commit 6a32adf0b60dc2d2c655dbe2e872196b4e7c8c8f Darrick Wiebe committed Apr 7, 2011
Showing with 212 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +4 −0 Gemfile
  3. +33 −0 Rakefile
  4. +1 −0 VERSION
  5. +5 −0 lib/pacer-graph.rb
  6. +5 −0 lib/pacer-graph/version.rb
  7. +21 −0 pacer-graph.gemspec
  8. +117 −0 pom.xml
  9. +22 −0 pom/standalone.xml
@@ -0,0 +1,4 @@
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in pacer-graph.gemspec
+gemspec
@@ -0,0 +1,33 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
+
+require File.expand_path('../lib/pacer-graph/version', __FILE__)
+
+def jar_name
+ "pacer-graph-#{ Pacer::Graph::VERSION }-standalone.jar"
+end
+
+file 'pom.xml' => 'lib/pacer-graph/version.rb' do
+ pom = File.read 'pom.xml'
+ when_writing('Update pom.xml version number') do
+ updated = false
+ open 'pom.xml', 'w' do |f|
+ pom.each_line do |line|
+ if not updated and line =~ %r{<version>.*</version>}
+ f << line.sub(%r{<version>.*</version>}, "<version>#{ Pacer::Graph::VERSION }</version>")
+ updated = true
+ else
+ f << line
+ end
+ end
+ end
+ end
+end
+
+file jar_name => 'pom.xml' do
+ when_writing("Execute 'mvn package' task") do
+ puts system('mvn clean package')
+ end
+end
+
+task :build => jar_name
@@ -0,0 +1 @@
+1.0.0
@@ -0,0 +1,5 @@
+module Pacer
+ module Graph
+ # Your code goes here...
+ end
+end
@@ -0,0 +1,5 @@
+module Pacer
+ module Graph
+ VERSION = "1.0.1"
+ end
+end
@@ -0,0 +1,21 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "pacer-graph/version"
+
+Gem::Specification.new do |s|
+ s.name = "pacer-graph"
+ s.version = Pacer::Graph::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["TODO: Write your name"]
+ s.email = ["TODO: Write your email address"]
+ s.homepage = ""
+ s.summary = %q{TODO: Write a gem summary}
+ s.description = %q{TODO: Write a gem description}
+
+ s.rubyforge_project = "pacer-graph"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+end
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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.tinkerpop.pacer</groupId>
+ <artifactId>pacer-graph</artifactId>
+ <version>1.0.1</version>
+ <packaging>pom</packaging>
+ <url>https://github.com/pangloss/pacer</url>
+ <name>Pacer Tinkerpop core dependencies including Blueprints Core
+ and Pipes.</name>
+ <description>
+ </description>
+ <inceptionYear>2011</inceptionYear>
+ <developers>
+ <developer>
+ <name>Darrick Wiebe</name>
+ <email>darrick@innatesoftware.com</email>
+ <url>http://github.com/pangloss</url>
+ </developer>
+ </developers>
+ <dependencies>
+ <!-- PROPERTY GRAPH MODEL SUPPORT -->
+ <dependency>
+ <groupId>com.tinkerpop.blueprints</groupId>
+ <artifactId>blueprints-core</artifactId>
+ <version>0.7-SNAPSHOT</version>
+ </dependency>
+ <!-- GRAPH TRAVERSAL SUPPORT -->
+ <dependency>
+ <groupId>com.tinkerpop</groupId>
+ <artifactId>pipes</artifactId>
+ <version>0.5-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>tinkerpop-repository</id>
+ <name>TinkerPop Maven2 Repository</name>
+ <url>http://tinkerpop.com/maven2</url>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <distributionManagement>
+ <repository>
+ <id>tinkerpop-repository</id>
+ <name>TinkerPop Maven2 Repository</name>
+ <url>ftp://ftp.tinkerpop.com:21/public/maven2/</url>
+ </repository>
+ </distributionManagement>
+
+ <build>
+ <directory>${basedir}/target</directory>
+ <finalName>${artifactId}-${version}</finalName>
+ <resources>
+ <resource>
+ <directory>${basedir}/src/main/resources
+ </directory>
+ </resource>
+ </resources>
+ <testResources>
+ <testResource>
+ <directory>${basedir}/src/test/resources
+ </directory>
+ </testResource>
+ </testResources>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-4</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <descriptors>
+ <descriptor>pom/standalone.xml</descriptor>
+ </descriptors>
+ <finalName>${project.artifactId}-${project.version}</finalName>
+ <outputDirectory>target</outputDirectory>
+ <workDirectory>target/assembly/work</workDirectory>
+ <tarLongFileMode>warn</tarLongFileMode>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.6.1</version>
+ </plugin>
+ </plugins>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-ftp</artifactId>
+ <version>1.0-alpha-6</version>
+ </extension>
+ </extensions>
+ </build>
+
+</project>
@@ -0,0 +1,22 @@
+<assembly>
+ <id>standalone</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>target/classes</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ </fileSets>
+
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>/</outputDirectory>
+ <unpack>true</unpack>
+ <scope>runtime</scope>
+ </dependencySet>
+ </dependencySets>
+</assembly>

0 comments on commit 6a32adf

Please sign in to comment.