Techne

Launch or shutdown the container from a convenient script.

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Techne.Main
  • Labels:
    None
  • Environment:
    Java, Linux, UNIX, Windows

Description

Create a shell script or bat file to execute Techne convenient. Be able to pass command args such as:

techne -start
techne -shutdown

Issue Links

Activity

Hide
Rick Litton added a comment -

Grouped this issue to Techne.Main.

Show
Rick Litton added a comment - Grouped this issue to Techne.Main.
Hide
Toni Menzel added a comment -

for json-lib: adding the dependency
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>1.0.1</version>
<classifier>jdk15</classifier>
</dependency>

to the pom solves problem i think. i would recommend to not use hard checked in jars at all. What do you think?

Show
Toni Menzel added a comment - for json-lib: adding the dependency <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>1.0.1</version> <classifier>jdk15</classifier> </dependency> to the pom solves problem i think. i would recommend to not use hard checked in jars at all. What do you think?
Hide
Rick Litton added a comment -

Although I haven't tried it yet, I think the json-lib jar has to be in your
local repo for this to work. Of course you can download this file from the
web but checking it in may be a little convenient for now. Of course it's
only for testing purposes... (refer to my comment in Fisheye)

Regards

Show
Rick Litton added a comment - Although I haven't tried it yet, I think the json-lib jar has to be in your local repo for this to work. Of course you can download this file from the web but checking it in may be a little convenient for now. Of course it's only for testing purposes... (refer to my comment in Fisheye) Regards
Hide
Rick Litton added a comment -

To run techne.sh, 4 jar files are required:
techne.runtime-x.jar
techne.main-x.jar
commons-logging-x.jar
json-lib-x.jar

For now, you have to manually copy them to either the install/bin or install/lib directories. My preference is to copy the first two to install/bin while the last two are copied into install/lib. I need to figure out how to manipulate maven to deploy these artifacts into the install directory without creating a target. Perhaps an ant build using maven will suffice. As a simple test, running techne.sh will do nothing more than just start and stop the container. This is how I execute the test:

prompt> ./techne.sh -start -cygwin # only use the last option if you are running cygwin on Windows

Show
Rick Litton added a comment - To run techne.sh, 4 jar files are required: techne.runtime-x.jar techne.main-x.jar commons-logging-x.jar json-lib-x.jar For now, you have to manually copy them to either the install/bin or install/lib directories. My preference is to copy the first two to install/bin while the last two are copied into install/lib. I need to figure out how to manipulate maven to deploy these artifacts into the install directory without creating a target. Perhaps an ant build using maven will suffice. As a simple test, running techne.sh will do nothing more than just start and stop the container. This is how I execute the test: prompt> ./techne.sh -start -cygwin # only use the last option if you are running cygwin on Windows
Hide
Rick Litton added a comment -

Forgot to mention...the properties file should also checked out into the config directory. The file is called techne-properties.json containing the bootstrap properties in JSON format.

Show
Rick Litton added a comment - Forgot to mention...the properties file should also checked out into the config directory. The file is called techne-properties.json containing the bootstrap properties in JSON format.
Hide
Administrator added a comment -

Which should work out of the box, I have had Mylar hooked up to issues.ops4j.org/jira

Show
Administrator added a comment - Which should work out of the box, I have had Mylar hooked up to issues.ops4j.org/jira
Hide
Toni Menzel added a comment -
  • i just checked-in (amongst other stuff) a fresh pom.xml for install.
    This uses an embedded ant script to copy jars from other components to install/lib.
  • fixed different pom versions in components (uses pom inheritance for that instead now)
  • fixed an issue with techne.sh (from install/bin) and the CYGWIN flag. maybe we can skip that? we should provide standard win32 script (.cmd or .bat) and a standard bash script for *nix environments.
    Other then that wouldn't recommend including so much logic into the startscript.
    I always dream of using just "java -jar techne.jar". wrapping scripts should just provide some basic environment checks (java version probably, working directory)
    what do you think?
  • the subproject techne.main does not compile (it misses a "Shell" class from org.ops4j.techne.runtime ?)

Toni

Show
Toni Menzel added a comment -
  • i just checked-in (amongst other stuff) a fresh pom.xml for install. This uses an embedded ant script to copy jars from other components to install/lib.
  • fixed different pom versions in components (uses pom inheritance for that instead now)
  • fixed an issue with techne.sh (from install/bin) and the CYGWIN flag. maybe we can skip that? we should provide standard win32 script (.cmd or .bat) and a standard bash script for *nix environments. Other then that wouldn't recommend including so much logic into the startscript. I always dream of using just "java -jar techne.jar". wrapping scripts should just provide some basic environment checks (java version probably, working directory) what do you think?
  • the subproject techne.main does not compile (it misses a "Shell" class from org.ops4j.techne.runtime ?)
Toni

People

Vote (0)
Watch (1)

Dates

  • Due:
    Created:
    Updated:
    Resolved: