Skip to content

Commit f7c6338

Browse files
committed
first real commit
1 parent 7ae09c1 commit f7c6338

File tree

222 files changed

+34630
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+34630
-2
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
/test/tmp/
1010
/test/version_tmp/
1111
/tmp/
12-
12+
*~
13+
*.jar
14+
target
1315
# Used by dotenv library to load environment variables.
1416
# .env
15-
17+
MANIFEST.MF
1618
## Specific to RubyMotion:
1719
.dat*
1820
.repl_history

.mvn/extensions.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<extensions>
3+
<extension>
4+
<groupId>io.takari.polyglot</groupId>
5+
<artifactId>polyglot-ruby</artifactId>
6+
<version>0.1.19</version>
7+
</extension>
8+
</extensions>

Rakefile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
require_relative 'lib/joonsrenderer/version'
2+
3+
def create_manifest
4+
title = 'Implementation-Title: joonsrenderer (java extension for joonsrenderer gem)'
5+
version = format('Implementation-Version: %s', JoonsRenderer::VERSION)
6+
file = File.open('MANIFEST.MF', 'w') do |f|
7+
f.puts(title)
8+
f.puts(version)
9+
f.puts('Class-Path: janino-3.0.6.jar commons-compiler-3.0.6.jar')
10+
end
11+
end
12+
13+
task default: [:init, :compile, :gem]
14+
15+
desc 'Create Manifest'
16+
task :init do
17+
create_manifest
18+
end
19+
20+
desc 'Build gem'
21+
task :gem do
22+
sh "gem build joonsrenderer.gemspec"
23+
end
24+
25+
desc 'Compile'
26+
task :compile do
27+
sh "mvn package"
28+
sh "mv target/joonsrenderer.jar lib"
29+
end
30+
31+
desc 'clean'
32+
task :clean do
33+
Dir['./**/*.%w{jar gem}'].each do |path|
34+
puts "Deleting #{path} ..."
35+
File.delete(path)
36+
end
37+
FileUtils.rm_rf('./target')
38+
end

joonsrenderer.gemspec

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# -*- encoding: utf-8 -*-
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'joonsrenderer/version'
5+
6+
Gem::Specification.new do |gem|
7+
gem.name = 'joonsrenderer'
8+
gem.version = JoonsRenderer::VERSION
9+
gem.authors = ['monkstone']
10+
gem.email = ['mamba2928@yahoo.co.uk']
11+
gem.licenses = %w(GPL-3.0 LGPL-2.0)
12+
gem.description = %q{A realistic ray tracer for propane and JRubyArt}
13+
gem.summary = %q{From Sketch to Ray Traced Image}
14+
gem.homepage = 'https://ruby-processing.github.io/propane/'
15+
gem.files = `git ls-files`.split($/)
16+
gem.files << 'lib/joonsrenderer.jar'
17+
gem.files << 'lib/janino-3.0.6.jar'
18+
gem.files << 'lib/commons-compiler-3.0.6.jar'
19+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
20+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
21+
gem.require_paths = ['lib']
22+
gem.platform = 'java'
23+
end

lib/joonsrenderer/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module JoonsRenderer
2+
VERSION = '1.1'
3+
end

pom.rb

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
project 'joonsrenderer' do
2+
3+
model_version '4.0.0'
4+
id 'joons:joonsrenderer:1.1-SNAPSHOT'
5+
packaging 'jar'
6+
description 'joonsrenderer for propane and JRubyArt'
7+
organization 'ruby-processing', 'https://ruby-processing.github.io'
8+
{ 'fpsunflower' => 'Christopher Kulla', 'geneome' => 'Not Known', 'joonhyublee' => 'Joon Hyub Lee', 'monkstone' => 'Martin Prout' }.each do |key, value|
9+
developer key do
10+
name value
11+
roles 'developer'
12+
end
13+
end
14+
license 'GPL 3', 'http://www.gnu.org/licenses/gpl-3.0-standalone.html'
15+
issue_management 'https://github.com/monkstone/joonsrenderer/issues', 'Github'
16+
17+
properties( 'source.directory' => 'src',
18+
'joonsrenderer.basedir' => '${project.basedir}',
19+
'polyglot.dump.pom' => 'pom.xml',
20+
'maven.compiler.source' => '1.8',
21+
'project.build.sourceEncoding' => 'utf-8',
22+
'maven.compiler.target' => '1.8',
23+
'janino.version' => '3.0.6',
24+
'jogl.version' => '2.3.2',
25+
'processing.version' => '3.2.3'
26+
)
27+
28+
jar 'org.codehaus.janino:janino:${janino.version}'
29+
jar 'org.processing:core:${processing.version}'
30+
jar 'org.jogamp.jogl:jogl-all:${jogl.version}'
31+
jar 'org.jogamp.gluegen:gluegen-rt:${jogl.version}'
32+
33+
overrides do
34+
plugin :resources, '2.6'
35+
plugin :dependency, '2.10' do
36+
execute_goals( id: 'default-cli',
37+
artifactItems: [
38+
{ groupId: 'org.codehaus.janino',
39+
artifactId: 'janino',
40+
version: '${janino.version}',
41+
type: 'jar',
42+
outputDirectory: '${joonsrenderer.basedir}/lib'
43+
},
44+
{ groupId: 'org.codehaus.janino',
45+
artifactId: 'commons-compiler',
46+
version: '${janino.version}',
47+
type: 'jar',
48+
outputDirectory: '${joonsrenderer.basedir}/lib'
49+
}
50+
]
51+
)
52+
end
53+
54+
plugin( :compiler, '3.6.0',
55+
source: '${maven.compiler.source}',
56+
target: '${maven.compiler.target}'
57+
)
58+
plugin( :javadoc, '2.10.4',
59+
detect_offline_links: 'false',
60+
)
61+
plugin( :jar, '3.0.2',
62+
'archive' => {
63+
'manifestFile' => 'MANIFEST.MF'
64+
}
65+
)
66+
end
67+
68+
build do
69+
default_goal 'package'
70+
source_directory 'src'
71+
final_name 'joonsrenderer'
72+
end
73+
end

pom.xml

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
5+
DO NOT MODIFIY - GENERATED CODE
6+
7+
8+
-->
9+
<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"
10+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
11+
<modelVersion>4.0.0</modelVersion>
12+
<groupId>joons</groupId>
13+
<artifactId>joonsrenderer</artifactId>
14+
<version>1.1-SNAPSHOT</version>
15+
<name>joonsrenderer</name>
16+
<description>joonsrenderer for propane and JRubyArt</description>
17+
<organization>
18+
<name>ruby-processing</name>
19+
<url>https://ruby-processing.github.io</url>
20+
</organization>
21+
<licenses>
22+
<license>
23+
<name>GPL 3</name>
24+
<url>http://www.gnu.org/licenses/gpl-3.0-standalone.html</url>
25+
</license>
26+
</licenses>
27+
<developers>
28+
<developer>
29+
<id>fpsunflower</id>
30+
<name>Christopher Kulla</name>
31+
<roles>
32+
<role>developer</role>
33+
</roles>
34+
</developer>
35+
<developer>
36+
<id>geneome</id>
37+
<name>Not Known</name>
38+
<roles>
39+
<role>developer</role>
40+
</roles>
41+
</developer>
42+
<developer>
43+
<id>joonhyublee</id>
44+
<name>Joon Hyub Lee</name>
45+
<roles>
46+
<role>developer</role>
47+
</roles>
48+
</developer>
49+
<developer>
50+
<id>monkstone</id>
51+
<name>Martin Prout</name>
52+
<roles>
53+
<role>developer</role>
54+
</roles>
55+
</developer>
56+
</developers>
57+
<issueManagement>
58+
<system>Github</system>
59+
<url>https://github.com/monkstone/joonsrenderer/issues</url>
60+
</issueManagement>
61+
<properties>
62+
<jogl.version>2.3.2</jogl.version>
63+
<source.directory>src</source.directory>
64+
<joonsrenderer.basedir>${project.basedir}</joonsrenderer.basedir>
65+
<maven.compiler.target>1.8</maven.compiler.target>
66+
<processing.version>3.2.3</processing.version>
67+
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
68+
<janino.version>3.0.6</janino.version>
69+
<polyglot.dump.pom>pom.xml</polyglot.dump.pom>
70+
<maven.compiler.source>1.8</maven.compiler.source>
71+
</properties>
72+
<dependencies>
73+
<dependency>
74+
<groupId>org.codehaus.janino</groupId>
75+
<artifactId>janino</artifactId>
76+
<version>${janino.version}</version>
77+
</dependency>
78+
<dependency>
79+
<groupId>org.processing</groupId>
80+
<artifactId>core</artifactId>
81+
<version>${processing.version}</version>
82+
</dependency>
83+
<dependency>
84+
<groupId>org.jogamp.jogl</groupId>
85+
<artifactId>jogl-all</artifactId>
86+
<version>${jogl.version}</version>
87+
</dependency>
88+
<dependency>
89+
<groupId>org.jogamp.gluegen</groupId>
90+
<artifactId>gluegen-rt</artifactId>
91+
<version>${jogl.version}</version>
92+
</dependency>
93+
</dependencies>
94+
<build>
95+
<sourceDirectory>src</sourceDirectory>
96+
<defaultGoal>package</defaultGoal>
97+
<finalName>joonsrenderer</finalName>
98+
<pluginManagement>
99+
<plugins>
100+
<plugin>
101+
<artifactId>maven-resources-plugin</artifactId>
102+
<version>2.6</version>
103+
</plugin>
104+
<plugin>
105+
<artifactId>maven-dependency-plugin</artifactId>
106+
<version>2.10</version>
107+
<executions>
108+
<execution>
109+
<id>default-cli</id>
110+
<configuration>
111+
<artifactItems>
112+
<artifactItem>
113+
<groupId>org.codehaus.janino</groupId>
114+
<artifactId>janino</artifactId>
115+
<version>${janino.version}</version>
116+
<type>jar</type>
117+
<outputDirectory>${joonsrenderer.basedir}/lib</outputDirectory>
118+
</artifactItem>
119+
<artifactItem>
120+
<groupId>org.codehaus.janino</groupId>
121+
<artifactId>commons-compiler</artifactId>
122+
<version>${janino.version}</version>
123+
<type>jar</type>
124+
<outputDirectory>${joonsrenderer.basedir}/lib</outputDirectory>
125+
</artifactItem>
126+
</artifactItems>
127+
</configuration>
128+
</execution>
129+
</executions>
130+
</plugin>
131+
<plugin>
132+
<artifactId>maven-compiler-plugin</artifactId>
133+
<version>3.6.0</version>
134+
<configuration>
135+
<source>${maven.compiler.source}</source>
136+
<target>${maven.compiler.target}</target>
137+
</configuration>
138+
</plugin>
139+
<plugin>
140+
<artifactId>maven-javadoc-plugin</artifactId>
141+
<version>2.10.4</version>
142+
<configuration>
143+
<detectOfflineLinks>false</detectOfflineLinks>
144+
</configuration>
145+
</plugin>
146+
<plugin>
147+
<artifactId>maven-jar-plugin</artifactId>
148+
<version>3.0.2</version>
149+
<configuration>
150+
<archive>
151+
<manifestFile>MANIFEST.MF</manifestFile>
152+
</archive>
153+
</configuration>
154+
</plugin>
155+
</plugins>
156+
</pluginManagement>
157+
</build>
158+
</project>

0 commit comments

Comments
 (0)