diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2019-01-05 10:57:49 -0400 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2019-01-05 11:01:04 -0400 |
| commit | 49722f7c7f3ebc2e1fa616adbabace419d08d0d2 (patch) | |
| tree | a73dff53622dd0933e651741ae557ee6c12628f8 /genafx-test.sh | |
| parent | 8b83d0891ee267da498beb9eb28dc69f959fac0d (diff) | |
Convert to Maven II
This gets the main script working, and the pom compiling things.
To get it working right, two options were added for outputting normal &
error outputs to files instead of the standard streams (System.out &
System.err)
Diffstat (limited to 'genafx-test.sh')
| -rwxr-xr-x | genafx-test.sh | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/genafx-test.sh b/genafx-test.sh index 9566276e..4f9726f9 100755 --- a/genafx-test.sh +++ b/genafx-test.sh @@ -6,20 +6,16 @@ baseout="$1" shift 1 fileset="$@" listopts="-z -n named" +outputfle=output/"$baseout".txt +errfle=output/"$baseout".err +outputopts="-o $outputfle -e $errfle" -cd src; +mvn clean compile exec:java -Dexec.args="$outputopts $listopts $fileset" +#java AffixLister $listopts $fileset > output/"$baseout".txt 2> output/"$baseout".err -javac -g AffixLister.java +tail -n 2 "$errfle" -mv -t .. *.class - -cd .. - -java AffixLister $listopts $fileset > output/"$baseout".txt 2> output/"$baseout".err - -tail -n 2 output/"$baseout".err - -a2ps --file-align=virtual --header="Affixes" --tabsize=2 -E -g -o output/"$baseout".ps output/"$baseout".txt +a2ps --file-align=virtual --header="Affixes" --tabsize=2 -E -g -o output/"$baseout".ps "$outputfle" ps2pdf output/"$baseout".ps output/"$baseout".pdf |
