-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Truffle] Experiment with the OM DSL in separate JARs.
1 parent
6986805
commit e06bdf6
Showing
19 changed files
with
251 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version = File.read( File.join( basedir, '..', 'VERSION' ) ).strip | ||
project 'JRuby Truffle OM DSL API' do | ||
|
||
model_version '4.0.0' | ||
inherit 'org.jruby:jruby-parent', version | ||
id 'org.jruby:jruby-truffle-om-dsl-api' | ||
|
||
properties( 'polyglot.dump.pom' => 'pom.xml', | ||
'polyglot.dump.readonly' => true, | ||
|
||
'jruby.basedir' => '${basedir}/..' ) | ||
|
||
jar 'org.jruby:jruby-core', '${project.version}', :scope => 'provided' | ||
|
||
jar 'com.oracle:truffle:0.7' | ||
|
||
plugin( :compiler, | ||
'encoding' => 'utf-8', | ||
'debug' => 'true', | ||
'verbose' => 'false', | ||
'showWarnings' => 'true', | ||
'showDeprecation' => 'true', | ||
'source' => [ '${base.java.version}', '1.7' ], | ||
'target' => [ '${base.javac.version}', '1.7' ], | ||
'useIncrementalCompilation' => 'false' ) do | ||
execute_goals( 'compile', | ||
:id => 'anno', | ||
:phase => 'process-resources', | ||
'compilerArgs' => [ '-XDignore.symbol.file=true', | ||
'-J-ea' ] ) | ||
end | ||
|
||
plugin :shade do | ||
execute_goals( 'shade', | ||
:id => 'create lib/jruby-truffle-om-dsl.jar', | ||
:phase => 'package', | ||
'outputFile' => '${jruby.basedir}/lib/jruby-truffle-om-dsl.jar' ) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
DO NOT MODIFIY - GENERATED CODE | ||
--> | ||
<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> | ||
<parent> | ||
<groupId>org.jruby</groupId> | ||
<artifactId>jruby-parent</artifactId> | ||
<version>9.0.2.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>jruby-truffle-om-dsl-api</artifactId> | ||
<name>JRuby Truffle OM DSL API</name> | ||
<properties> | ||
<jruby.basedir>${basedir}/..</jruby.basedir> | ||
<polyglot.dump.readonly>true</polyglot.dump.readonly> | ||
<polyglot.dump.pom>pom.xml</polyglot.dump.pom> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.jruby</groupId> | ||
<artifactId>jruby-core</artifactId> | ||
<version>${project.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.oracle</groupId> | ||
<artifactId>truffle</artifactId> | ||
<version>0.7</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>anno</id> | ||
<phase>process-resources</phase> | ||
<goals> | ||
<goal>compile</goal> | ||
</goals> | ||
<configuration> | ||
<compilerArgs> | ||
<compilerArg>-XDignore.symbol.file=true</compilerArg> | ||
<compilerArg>-J-ea</compilerArg> | ||
</compilerArgs> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<encoding>utf-8</encoding> | ||
<debug>true</debug> | ||
<verbose>false</verbose> | ||
<showWarnings>true</showWarnings> | ||
<showDeprecation>true</showDeprecation> | ||
<source>${base.java.version}</source> | ||
<source>1.7</source> | ||
<target>${base.javac.version}</target> | ||
<target>1.7</target> | ||
<useIncrementalCompilation>false</useIncrementalCompilation> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>create lib/jruby-truffle-om-dsl.jar</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
<configuration> | ||
<outputFile>${jruby.basedir}/lib/jruby-truffle-om-dsl.jar</outputFile> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version = File.read( File.join( basedir, '..', 'VERSION' ) ).strip | ||
project 'JRuby Truffle OM DSL Processor' do | ||
|
||
model_version '4.0.0' | ||
inherit 'org.jruby:jruby-parent', version | ||
id 'org.jruby:jruby-truffle-om-dsl-processor' | ||
|
||
properties( 'polyglot.dump.pom' => 'pom.xml', | ||
'polyglot.dump.readonly' => true, | ||
|
||
'jruby.basedir' => '${basedir}/..' ) | ||
|
||
jar 'org.jruby:jruby-truffle-om-dsl-api', '${project.version}', :scope => 'provided' | ||
|
||
jar 'com.oracle:truffle:0.7' | ||
|
||
plugin( :compiler, | ||
'encoding' => 'utf-8', | ||
'debug' => 'true', | ||
'verbose' => 'false', | ||
'showWarnings' => 'true', | ||
'showDeprecation' => 'true', | ||
'source' => [ '${base.java.version}', '1.7' ], | ||
'target' => [ '${base.javac.version}', '1.7' ], | ||
'useIncrementalCompilation' => 'false' ) do | ||
execute_goals( 'compile', | ||
:id => 'anno', | ||
:phase => 'process-resources', | ||
'compilerArgs' => [ '-XDignore.symbol.file=true', | ||
'-J-ea' ] ) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
DO NOT MODIFIY - GENERATED CODE | ||
--> | ||
<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> | ||
<parent> | ||
<groupId>org.jruby</groupId> | ||
<artifactId>jruby-parent</artifactId> | ||
<version>9.0.2.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>jruby-truffle-om-dsl-processor</artifactId> | ||
<name>JRuby Truffle OM DSL Processor</name> | ||
<properties> | ||
<jruby.basedir>${basedir}/..</jruby.basedir> | ||
<polyglot.dump.readonly>true</polyglot.dump.readonly> | ||
<polyglot.dump.pom>pom.xml</polyglot.dump.pom> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.jruby</groupId> | ||
<artifactId>jruby-truffle-om-dsl-api</artifactId> | ||
<version>${project.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.oracle</groupId> | ||
<artifactId>truffle</artifactId> | ||
<version>0.7</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>anno</id> | ||
<phase>process-resources</phase> | ||
<goals> | ||
<goal>compile</goal> | ||
</goals> | ||
<configuration> | ||
<compilerArgs> | ||
<compilerArg>-XDignore.symbol.file=true</compilerArg> | ||
<compilerArg>-J-ea</compilerArg> | ||
</compilerArgs> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<encoding>utf-8</encoding> | ||
<debug>true</debug> | ||
<verbose>false</verbose> | ||
<showWarnings>true</showWarnings> | ||
<showDeprecation>true</showDeprecation> | ||
<source>${base.java.version}</source> | ||
<source>1.7</source> | ||
<target>${base.javac.version}</target> | ||
<target>1.7</target> | ||
<useIncrementalCompilation>false</useIncrementalCompilation> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters