-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Moved from gradle to ant. Implemented loglevel.
* Created new FlingSpec class for configuring the TestRunner. * Updated jchalk. * Changed output format. * Tests are now using fling instead of junit.
- Loading branch information
Showing
49 changed files
with
1,361 additions
and
779 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
|
||
[*.java] | ||
charset = utf-8 | ||
insert_final_newline = true | ||
max_line_length = 100 | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# Compiled output | ||
build | ||
|
||
.gradle | ||
.vscode | ||
.settings | ||
.classpath | ||
# Misc | ||
.settings/ | ||
.project | ||
|
||
# build files | ||
bin | ||
build | ||
.directory | ||
notes.md | ||
.vim/Session.vim |
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,8 @@ | ||
{ | ||
"java.project.referencedLibraries": [ | ||
"lib/**/*.jar", | ||
"lib/*.jar" | ||
], | ||
"java.format.settings.url": "eclipse-formatter.xml" | ||
} | ||
|
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,4 @@ | ||
augroup project_init | ||
au! | ||
au FileType java setlocal et cc=100 tw=100 | ||
augroup 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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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,93 @@ | ||
<?xml version="1.0"?> | ||
<project name="fling" default="build"> | ||
|
||
<property name="project.name" value="fling" /> | ||
<property name="project.version" value="1.2.0" /> | ||
|
||
<target name="clean" description="Remove all generated files"> | ||
<delete dir="build" /> | ||
</target> | ||
|
||
<target name="compile" description="Compile the program"> | ||
<mkdir dir="build/classes/main" /> | ||
<javac | ||
srcdir="src/main" | ||
destdir="build/classes/main" | ||
compiler="modern" | ||
target="8" | ||
source="8" | ||
encoding="utf8" | ||
debug="on" | ||
debuglevel="lines,vars,source" | ||
includeantruntime="false"> | ||
<classpath> | ||
<fileset dir="lib" includes="*.jar" excludes="*sources.jar"/> | ||
</classpath> | ||
<compilerarg value="-Xlint" /> | ||
<compilerarg value="-Xdiags:verbose" /> | ||
</javac> | ||
</target> | ||
|
||
<target name="compile-test" description="Compile the tests" depends="compile"> | ||
<mkdir dir="build/classes/test" /> | ||
<javac | ||
srcdir="src/test" | ||
destdir="build/classes/test" | ||
encoding="utf8" | ||
debug="on" | ||
debuglevel="lines,vars,source" | ||
includeantruntime="false"> | ||
<classpath> | ||
<pathelement path="build/classes/main"/> | ||
<fileset dir="lib" includes="*.jar" excludes="*sources.jar"/> | ||
</classpath> | ||
</javac> | ||
</target> | ||
|
||
<target name="jar" depends="compile" description="Create a jar"> | ||
<jar destfile="build/artifacts/fling-${project.version}.jar"> | ||
<zipgroupfileset dir="lib" includes="jchalk*.jar" excludes="*sources.jar"/> | ||
<fileset dir="build/classes/main" includes="**/*.class" /> | ||
<manifest> | ||
<attribute name="Main-Class" value="io.github.sindrets.fling.Main" /> | ||
<attribute name="Implementation-Title" value="${project.name}" /> | ||
<attribute name="Implementation-Version" value="${project.version}" /> | ||
</manifest> | ||
</jar> | ||
<jar destfile="build/artifacts/fling-${project.version}-sources.jar"> | ||
<fileset dir="src/main" includes="**/*.java" /> | ||
<manifest> | ||
<attribute name="Main-Class" value="io.github.sindrets.fling.Main" /> | ||
<attribute name="Implementation-Title" value="${project.name}" /> | ||
<attribute name="Implementation-Version" value="${project.version}" /> | ||
</manifest> | ||
</jar> | ||
</target> | ||
|
||
<target name="zip" description="Create a zip"> | ||
<delete file="build/artifacts/fling-${project.version}.zip"/> | ||
<mkdir dir="build/artifacts" /> | ||
<zip destfile="build/artifacts/fling-${project.version}.zip"> | ||
<zipfileset dir="."> | ||
<exclude name="build/**"/> | ||
</zipfileset> | ||
</zip> | ||
</target> | ||
|
||
<target name="watch"> | ||
<exec executable="sh"> | ||
<arg value="-c"/> | ||
<arg value="while sleep 1; do find src -path '*.java' | entr -ds 'ant jar'; done"/> | ||
</exec> | ||
</target> | ||
|
||
<target name="test" depends="compile-test" description="Run tests"> | ||
<java jar="bin/fling-1.2.0.jar" failonerror="true" fork="true"> | ||
<arg value="build/classes/main:build/classes/test:lib/jchalk-1.1.0.jar"/> | ||
<arg value="--exclude=**/mock/*" /> | ||
<arg value="--loglevel=3" /> | ||
</java> | ||
</target> | ||
|
||
<target name="build" depends="jar,test" /> | ||
</project> |
Oops, something went wrong.