Eclipse set up:
If you wish to run this under Eclipse, you will need 2
things.
1) the source for Forehead, as a project. I wish you
could run it out of the jar, but I just don't know a way
to do that.
2) With mavencron as a project, when you attempt to
run the program, you must set up run to be similar to
the following (mine looks like this):
==========
->under the Main tab-
project: forehead
Main class: com.werken.forehead.Forehead
->click on the Arguments tab-
Program args: -f the_path_to/cron.xml
VM args:
"-
Djavax.xml.parsers.DocumentBuilderFactory=org.apache
.xerces.jaxp.DocumentBuilderFactoryImpl"
"-
Djavax.xml.parsers.SAXParserFactory=org.apache.xerce
s.jaxp.SAXParserFactoryImpl"
"-Duser.dir=C:\Documents and Settings\Eric Redmond"
"-Dmaven.home=C:\newmaven\maven"
"-Dmaven.cron=C:\N4\code\maven-cron\maven-cron"
"-Dtools.jar=C:\j2sdk1.4.1_03\lib\tools.jar"
"-Dforehead.conf.file=C:\N4\code\maven-cron\maven-
cron\src\forehead.conf"
"-
Djava.endorsed.dirs=C:\newmaven\maven\lib\endorsed
"
-classpath "C:\N4\workspace\forehead\bin;C:\N4
\workspace\mavencron\bin"
"C:\N4\code\maven-cron\maven-cron" is the path to
my eclipse project directory.
I know there is a way to set up system variables (I
thought I did). If someone knows how to do it SO IT
WORKS HERE, please tell me! Thanks!