Skip to content
Snippets Groups Projects
Commit 0f5d29a2 authored by Denis Arrivault's avatar Denis Arrivault
Browse files

Final version

parent 26088076
No related branches found
No related tags found
No related merge requests found
Showing
with 520 additions and 151 deletions
*.iml *.iml
.gradle/* .gradle/*
*.class *.class
libs/
\ No newline at end of file
<component name="libraryTable"> <component name="libraryTable">
<library name="Gradle: :antlr4-annotations-4.2:"> <library name="Gradle: :antlr4-annotations-4.2:">
<CLASSES> <CLASSES>
<root url="jar://$PROJECT_DIR$/build/unpacked/dist/lib/antlr4-annotations-4.2.jar!/" /> <root url="jar://$PROJECT_DIR$/libs/lib/antlr4-annotations-4.2.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
......
<component name="libraryTable"> <component name="libraryTable">
<library name="Gradle: :antlr4-runtime-4.2:"> <library name="Gradle: :antlr4-runtime-4.2:">
<CLASSES> <CLASSES>
<root url="jar://$PROJECT_DIR$/build/unpacked/dist/lib/antlr4-runtime-4.2.jar!/" /> <root url="jar://$PROJECT_DIR$/libs/lib/antlr4-runtime-4.2.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
......
<component name="libraryTable"> <component name="libraryTable">
<library name="Gradle: :commons-cli-1.4:"> <library name="Gradle: :commons-cli-1.4:">
<CLASSES> <CLASSES>
<root url="jar://$PROJECT_DIR$/build/unpacked/dist/lib/commons-cli-1.4.jar!/" /> <root url="jar://$PROJECT_DIR$/libs/lib/commons-cli-1.4.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
......
<component name="libraryTable"> <component name="libraryTable">
<library name="Gradle: :davis-core-0.5.2-86-ge8a13f2:"> <library name="Gradle: :davis-core-0.5.2-86-ge8a13f2:">
<CLASSES> <CLASSES>
<root url="jar://$PROJECT_DIR$/build/unpacked/dist/lib/davis-core-0.5.2-86-ge8a13f2.jar!/" /> <root url="jar://$PROJECT_DIR$/libs/lib/davis-core-0.5.2-86-ge8a13f2.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
......
<component name="libraryTable"> <component name="libraryTable">
<library name="Gradle: :davis-ui-0.5.2-86-ge8a13f2:"> <library name="Gradle: :davis-ui-0.5.2-86-ge8a13f2:">
<CLASSES> <CLASSES>
<root url="jar://$PROJECT_DIR$/build/unpacked/dist/lib/davis-ui-0.5.2-86-ge8a13f2.jar!/" /> <root url="jar://$PROJECT_DIR$/libs/lib/davis-ui-0.5.2-86-ge8a13f2.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
......
<component name="libraryTable"> <component name="libraryTable">
<library name="Gradle: :digraph-parser-1.0:"> <library name="Gradle: :digraph-parser-1.0:">
<CLASSES> <CLASSES>
<root url="jar://$PROJECT_DIR$/build/unpacked/dist/lib/digraph-parser-1.0.jar!/" /> <root url="jar://$PROJECT_DIR$/libs/lib/digraph-parser-1.0.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
......
<component name="libraryTable">
<library name="Gradle: ~emmanuel.godard:udavis:zip:0.7rc1">
<CLASSES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/~emmanuel.godard/udavis/0.7rc1/4914b2c09c24eebab313cef4ff1737d1d84aaa59/udavis-0.7rc1.zip!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
\ No newline at end of file
<component name="libraryTable"> <component name="libraryTable">
<library name="Gradle: :org.abego.treelayout.core-1.0.1:"> <library name="Gradle: :org.abego.treelayout.core-1.0.1:">
<CLASSES> <CLASSES>
<root url="jar://$PROJECT_DIR$/build/unpacked/dist/lib/org.abego.treelayout.core-1.0.1.jar!/" /> <root url="jar://$PROJECT_DIR$/libs/lib/org.abego.treelayout.core-1.0.1.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
......
<component name="libraryTable"> <component name="libraryTable">
<library name="Gradle: :tools:"> <library name="Gradle: :tools:">
<CLASSES> <CLASSES>
<root url="jar://$PROJECT_DIR$/build/unpacked/dist/lib/tools.jar!/" /> <root url="jar://$PROJECT_DIR$/libs/lib/tools.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
......
<component name="libraryTable">
<library name="Gradle: commons-cli:commons-cli:1.4">
<CLASSES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/commons-cli/commons-cli/1.4/c51c00206bb913cd8612b24abd9fa98ae89719b1/commons-cli-1.4.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/commons-cli/commons-cli/1.4/40dfd9fdef125e19136135e68d54af6d9b0cfbb8/commons-cli-1.4-sources.jar!/" />
</SOURCES>
</library>
</component>
\ No newline at end of file
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<project version="4"> <project version="4">
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$PROJECT_DIR$/.idea/modules/basic-example.iml" filepath="$PROJECT_DIR$/.idea/modules/basic-example.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/basic-example.iml" filepath="$PROJECT_DIR$/.idea/basic-example.iml" /> <module fileurl="file://$PROJECT_DIR$/.idea/basic-example.iml" filepath="$PROJECT_DIR$/.idea/basic-example.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/basic-example.main.iml" filepath="$PROJECT_DIR$/.idea/modules/basic-example.main.iml" /> <module fileurl="file://$PROJECT_DIR$/.idea/modules/basic-example.main.iml" filepath="$PROJECT_DIR$/.idea/modules/basic-example.main.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/basic-example.test.iml" filepath="$PROJECT_DIR$/.idea/modules/basic-example.test.iml" /> <module fileurl="file://$PROJECT_DIR$/.idea/modules/basic-example.test.iml" filepath="$PROJECT_DIR$/.idea/modules/basic-example.test.iml" />
......
This diff is collapsed.
/**
* Include the gradle-download-task plugin
*/
plugins {
id 'de.undercouch.download' version '3.4.3'
}
apply plugin: "java" apply plugin: "java"
apply plugin: "idea" apply plugin: "idea"
apply plugin: "application" apply plugin: "application"
def davisFiles = "${buildDir}/unpacked/dist/lib"
def davisFiles = "${projectDir}/libs/"
println("${davisFiles}") println("${davisFiles}")
repositories { repositories {
...@@ -11,24 +19,32 @@ repositories { ...@@ -11,24 +19,32 @@ repositories {
name = "jbotsim-repo" name = "jbotsim-repo"
url = "https://repo1.maven.org/maven2/io/jbotsim/" url = "https://repo1.maven.org/maven2/io/jbotsim/"
} }
ivy { flatDir {
url 'http://pageperso.lif.univ-mrs.fr/' dirs "libs/lib"
layout 'pattern', {
artifact '[organisation]/[module]-[revision].[ext]'
} }
} }
flatDir {
dirs "${davisFiles}" /**
* The following two tasks download a ZIP file and extract its
* contents to the build directory
*/
task downloadZipFile(type: Download) {
src 'http://pageperso.lif.univ-mrs.fr/~emmanuel.godard/udavis-0.7rc1.zip'
dest new File('libs', 'udavis-0.7rc1.zip')
} }
task downloadAndUnzipFile(dependsOn: downloadZipFile, type: Copy) {
from zipTree(downloadZipFile.dest)
into 'libs'
} }
defaultTasks 'downloadAndUnzipFile'
compileJava.dependsOn(downloadAndUnzipFile)
dependencies { dependencies {
compile files("${System.properties['java.home']}/../lib/tools.jar")
compile group: 'io.jbotsim', name: 'jbotsim-extras-common', version: jbotsimVersion compile group: 'io.jbotsim', name: 'jbotsim-extras-common', version: jbotsimVersion
compile group: 'commons-cli', name: 'commons-cli', version: 1.4
compile group: 'io.jbotsim', name: 'jbotsim-serialization-common', version: jbotsimVersion compile group: 'io.jbotsim', name: 'jbotsim-serialization-common', version: jbotsimVersion
compile group: 'io.jbotsim', name: 'jbotsim-extras-swing', version: jbotsimVersion compile group: 'io.jbotsim', name: 'jbotsim-extras-swing', version: jbotsimVersion
compile '~emmanuel.godard:udavis:0.7rc1@zip'
compile name: 'antlr4-annotations-4.2' compile name: 'antlr4-annotations-4.2'
compile name: 'antlr4-runtime-4.2' compile name: 'antlr4-runtime-4.2'
compile name: 'commons-cli-1.4' compile name: 'commons-cli-1.4'
...@@ -39,27 +55,6 @@ dependencies { ...@@ -39,27 +55,6 @@ dependencies {
compile name: 'tools' compile name: 'tools'
} }
//Add parameters to the run task
run {
//The run task can be called with parameters :
//gradle run -PappArgs="['examples/agents/RingAnon3Sym.java', 'RandomIds', '15', 'examples/agents/RingSize.java']"
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
}
task unzip(type: Copy) {
def zipPath = project.configurations.compile.find {it.name.startsWith("udavis") }
println zipPath
def zipFile = file(zipPath)
def outputDir = file("${buildDir}/unpacked/dist")
from zipTree(zipFile)
into outputDir
}
compileJava.dependsOn(unzip)
//Define integrationTest sources and ressources //Define integrationTest sources and ressources
sourceSets.main.java.srcDir('src') sourceSets.main.java.srcDir('src')
...@@ -101,3 +96,9 @@ scripts.each() { scriptName, scriptArgs -> ...@@ -101,3 +96,9 @@ scripts.each() { scriptName, scriptArgs ->
args = Eval.me(scriptArgs) args = Eval.me(scriptArgs)
} }
} }
//Add directories to remove by the clean task
clean.doFirst {
delete fileTree(dir: rootProject.file("src"), include: '**/*.class')
delete rootProject.file("libs")
}
\ No newline at end of file
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment