Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
216b3c5303 | |||
d473d74112 | |||
15750f65d4 | |||
e296e87003 | |||
269a9b9125 |
@ -9,8 +9,13 @@
|
||||
<mkdir dir="${package.dir}/lib"/>
|
||||
<copy file="${build.dir}/${name}-${version}.${build.number}.jar"
|
||||
tofile="${package.dir}/${name}-${version}.jar"/>
|
||||
<copy todir="${package.dir}">
|
||||
<filterset><filter token="VERSION" value="${version}"/></filterset>
|
||||
<fileset dir="${resources.dir}/bin"/>
|
||||
</copy>
|
||||
<copy todir="${package.dir}/lib">
|
||||
<fileset dir="${build.dir}/lib/runtime/jar"/>
|
||||
<fileset dir="${resources.dir}/config"/>
|
||||
</copy>
|
||||
<zip basedir="${build.dir}" includes="${name}-${version}/"
|
||||
destfile="${build.dir}/${name}-${version}.zip"/>
|
||||
|
Binary file not shown.
BIN
lib/compile/jar/timestamper-lib-2.1.jar
Normal file
BIN
lib/compile/jar/timestamper-lib-2.1.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/commons-beanutils-1.8.0.jar
Normal file
BIN
lib/runtime/jar/commons-beanutils-1.8.0.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/commons-codec-1.4.jar
Normal file
BIN
lib/runtime/jar/commons-codec-1.4.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/commons-collections-3.2.1.jar
Normal file
BIN
lib/runtime/jar/commons-collections-3.2.1.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/commons-lang-2.4.jar
Normal file
BIN
lib/runtime/jar/commons-lang-2.4.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/ezmorph-1.0.6.jar
Normal file
BIN
lib/runtime/jar/ezmorph-1.0.6.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/http-builder-0.5.1.jar
Normal file
BIN
lib/runtime/jar/http-builder-0.5.1.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/httpclient-4.1.1.jar
Normal file
BIN
lib/runtime/jar/httpclient-4.1.1.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/httpclient-cache-4.1.1.jar
Normal file
BIN
lib/runtime/jar/httpclient-cache-4.1.1.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/httpcore-4.1.jar
Normal file
BIN
lib/runtime/jar/httpcore-4.1.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/httpmime-4.1.1.jar
Normal file
BIN
lib/runtime/jar/httpmime-4.1.1.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/jcl-over-slf4j-1.6.1.jar
Normal file
BIN
lib/runtime/jar/jcl-over-slf4j-1.6.1.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/json-lib-2.3-jdk15.jar
Normal file
BIN
lib/runtime/jar/json-lib-2.3-jdk15.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/nekohtml-1.9.9.jar
Normal file
BIN
lib/runtime/jar/nekohtml-1.9.9.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
lib/runtime/jar/timestamper-lib-2.1.jar
Normal file
BIN
lib/runtime/jar/timestamper-lib-2.1.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/xercesImpl-2.8.1.jar
Normal file
BIN
lib/runtime/jar/xercesImpl-2.8.1.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/xml-apis-1.3.04.jar
Normal file
BIN
lib/runtime/jar/xml-apis-1.3.04.jar
Normal file
Binary file not shown.
BIN
lib/runtime/jar/xml-resolver-1.2.jar
Normal file
BIN
lib/runtime/jar/xml-resolver-1.2.jar
Normal file
Binary file not shown.
@ -1,5 +1,7 @@
|
||||
#Sat, 10 Aug 2013 01:38:31 -0500
|
||||
#Fri, 11 Oct 2013 16:33:41 -0500
|
||||
lib.local=true
|
||||
name=timestamper-cli
|
||||
version=0.4
|
||||
build.number=13
|
||||
version=1.1
|
||||
build.number=3
|
||||
main.class=com.jdblabs.timestamper.cli.TimeStamperCLI
|
||||
executable.jar=true
|
||||
|
4
resources/bin/ts
Executable file
4
resources/bin/ts
Executable file
@ -0,0 +1,4 @@
|
||||
curdir="`pwd`"
|
||||
cd ~/programs/timestamper-cli-@VERSION@
|
||||
java -cp "lib:lib/*:./*" com.jdblabs.timestamper.cli.TimeStamperCLI -d "$curdir" "$@"
|
||||
cd "$curdir"
|
0
resources/config/logback.groovy
Normal file
0
resources/config/logback.groovy
Normal file
@ -23,9 +23,10 @@ public class TimeStamperCLI {
|
||||
protected TimelineProperties timelineProperties
|
||||
protected Timeline timeline
|
||||
|
||||
public static final String VERSION = "0.4"
|
||||
public static final String VERSION = "0.6"
|
||||
|
||||
protected static def cli = [
|
||||
'h': [longOpt: 'help'],
|
||||
'v': [longOpt: 'version'],
|
||||
'd': [longOpt: 'working-directory', arguments: 1],
|
||||
't': [longOpt: 'timeline-config', arguments: 1],
|
||||
@ -51,12 +52,16 @@ public class TimeStamperCLI {
|
||||
File workingDir = new File(opts.d ?: '.')
|
||||
String ttyDevice = opts.tty ?: '/dev/tty'
|
||||
|
||||
if (opts.h) println USAGE
|
||||
|
||||
if (opts.v) {
|
||||
println "TimeStamperCLI v${VERSION}"
|
||||
println "By JDB Labs (https://www.jdb-labs.com)"
|
||||
return }
|
||||
|
||||
if (opts.t) {
|
||||
File propFile = new File(workingDir, opts.t)
|
||||
File propFile = new File(opts.t)
|
||||
if (!propFile.isAbsolute()) propFile = new File(workingDir, opts.t)
|
||||
inst.showTimeline(propFile, sin, out, err, ttyDevice) }
|
||||
else if (inst.timeline == null) {
|
||||
// Look for .timestamperrc user config file
|
||||
@ -208,6 +213,8 @@ public class TimeStamperCLI {
|
||||
}
|
||||
}
|
||||
|
||||
this.timelineProperties.syncTargets.each { it.shutdown() }
|
||||
|
||||
if (readerThread.isAlive()) {
|
||||
readerThread.interrupt();
|
||||
readerThread.join(500);
|
||||
@ -285,4 +292,29 @@ public class TimeStamperCLI {
|
||||
|
||||
return sb.toString() }
|
||||
|
||||
public static final String USAGE = """\
|
||||
TimeStamperCLI v${VERSION}
|
||||
By JDB Labs (https://www.jdb-labs.com)
|
||||
|
||||
Usage:
|
||||
ts <OPTIONS>
|
||||
where OPTIONS is one or more of:
|
||||
|
||||
-h, --help Print this usage information.
|
||||
|
||||
-v, --version Print version information.
|
||||
|
||||
-d, --working-directory Set the application's working direcotry (defaults to
|
||||
the current directory of the executing process).
|
||||
|
||||
-t, --timeline-config Set the timeline configuration file to use to access
|
||||
the timeline. By default, the value of the
|
||||
`lastUsed` property in the \$HOME/.timestamperrc
|
||||
file is used to find the timeline configuration file
|
||||
to use.
|
||||
|
||||
--tty Manually set the name of the TTY device to use. This
|
||||
defaults to `/dev/tty`.
|
||||
"""
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user