Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mavenized project #9

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/target
.idea
/.gradle
/build
*.iml
*.swp

28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ Here are some instructions how to run the Freerouting project in the NetBeans ID

4) Add your downloaded Freerouting source code with Add Source Package.

5) Build your new project in NetBeans.
5) Build your new project in NetBeans.

6) To get rid of the undefined's download and unzip the attached library jh.jar. It is the system library of the Java Help system.
6) To get rid of the undefined's download and unzip the attached library jh.jar. It is the system library of the Java Help system.

7) Right click on the name of your new project on the left of NetBeans and select Properties.

Expand All @@ -76,3 +76,27 @@ Here are some instructions how to run the Freerouting project in the NetBeans ID

For optional parameters of the Freerouting outfile check the usage of the variable p_args in the source file gui/MainApplication.java.

How to run the Freerouting project as a standalone application
===========================================================================================
Using maven

```shell
$ mvn package

$ java -jar target/freerouting-1.0-SNAPSHOT-jar-with-dependencies.jar
```

Using gradle

```shell
$ gradle build

$ java -jar build/libs/FreeRouting.jar
```
List of options:

* -de — open design file
* -di — open directory
* -l de — set locale to German. Other values are currently ignored
* -s — Disable "Save/Save As/Generate Logfile/Replay Logfile" menu items from "File" menu.
* -test — Enable test version. Debug messages, no confirm on exit
163 changes: 0 additions & 163 deletions board/Unit.java

This file was deleted.

34 changes: 0 additions & 34 deletions board/package.html

This file was deleted.

42 changes: 42 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'Anand.Tamariya' at '5/31/15 6:50 PM' with Gradle 2.2.1
*
* This generated file contains a commented-out sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at http://gradle.org/docs/2.2.1/userguide/tutorial_java_projects.html
*/

// Apply the java plugin to add support for Java
apply plugin: 'application'
mainClassName = "net.freerouting.gui.MainApplication"


// In this section you declare where to find the dependencies of your project
repositories {
// Use 'jcenter' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenLocal()
mavenCentral()
jcenter()
}

// In this section you declare the dependencies for your production and test code
dependencies {
compile 'com.sun.woodstock.dependlibs:jh:2.0'
compile 'javax.help:javahelp:2.0.05'


// Declare the dependency for your favourite test framework you want to use in your tests.
// TestNG is also supported by the Gradle Test task. Just change the
// testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
// 'test.useTestNG()' to your build script.
testCompile "junit:junit:4.11"
}

jar {
manifest {
attributes 'Main-Class': "$mainClassName"
}
}

Loading