Carnegie Mellon University, Massachusetts Institute of Technology, Stanford University, University of Memphis. Copyright 2016. All Rights Reserved.
I. Dependencies
-
Ant 1.9 or greater
-
Java Enterprise Edition Software Development Kit (J2EE SDK)
-
Eclipse or Cygwin
-
Git
git clone https://github.com/PSLCDataShop/WorkflowComponents WorkflowComponents
II. Documentation
See WorkflowComponents/Workflow Components.docx for detailed information on creating, modifying, or running components.
III. Testing a workflow component in Eclipse, Cygwin, or Linux
A. Eclipse
- File -> Import -> General -> Existing Projects into Workspace
- Choose any component directory from your newly imported git clone, i.e. WorkflowComponents/
- Click 'Finish'
- In the Ant view (Windows -> Show View -> Ant), add the desired component's build.xml to your current buildfiles, e.g. /build.xml
- Double click the ant task "runToolTemplate". The component should produce example XML output if it is setup correctly.
- For debugging, you may wish to add the jars in the directory WorkflowComponents/CommonLibraries to your build path.
B. Cygwin or Linux
- Change to your WorkflowComponents directory, e.g. /cygdrive/c/your_workspace//
- Type the command "ant -p" to get a list of ant tasks
- Type "ant runComponent" to run the component with the included example data
IV. Building components
Build all components
Modify the "dir" variable in WorkflowComponents/build.sh to match your WorkflowComponents path, then run the script (requires bash)
Building a single component
ant dist