Once you have all your environments set up as described in the previous post, It's time to copy your project files to that system. Once this is done, go to the project's root directory. List out the files to make sure that you see the build.xml and the build.properties file. You can use the build.properties to override the system properties that are defined. The build.xml file defines the exact steps that will be taken during the build process. Once we get into the customized build we will see where and how to modify this file to accommodate our build variations. Now your set to build. To do that all you need to type in at the prompt is "ant". You should see feedback that looks similar to the following:
| Buildfile: build.xml pre-build: validateTask: [echo] [echo] -------------------------------------------------------------- [echo] | Validating workflow [echo] -------------------------------------------------------------- [echo] [validateTask] Validation of workflow task definitions is completed without errors compile: [echo] [echo] -------------------------------------------------------------- [echo] | Compiling bpel process GetProfile, revision 1.0 [echo] -------------------------------------------------------------- [echo] [bpelc] validating "/home/benjamgr/bpel/GetProfile/bpel/GetProfile.bpel" ... [bpelc] BPEL suitcase generated in: /home/benjamgr/bpel/GetProfile/output/bpel_GetProfile_1.0.jar deployProcess: [echo] [echo] -------------------------------------------------------------- [echo] | Deploying bpel process GetProfile [echo] -------------------------------------------------------------- [echo] [deployProcess] Deploying process /home/benjamgr/bpel/GetProfile/output/bpel_GetProfile_1.0.jar [deployProcess] Successfully deployed the process "GetProfile" deployTaskForm: [echo] [echo] -------------------------------------------------------------- [echo] | Deploying workflow form for GetProfile [echo] -------------------------------------------------------------- [echo] [deployTaskForm] There are no forms to deploy deployDecisionServices: [echo] [echo] -------------------------------------------------------------- [echo] | Deploying decision services for GetProfile [echo] -------------------------------------------------------------- [echo] [deployDecisionServices] There are no decision services to deploy process-deploy: post-build: deploy: BUILD SUCCESSFUL Total time: 11 seconds |
Irritation:
One thing I haven't been able to figure out is how to run the ANT build process without being in the very directory of the build.xml file. I know there is a -find parameter that can be used, but I would like to specify the directory as part of the execution statement instead of changing directories to get the the appropriate place before running ant. If you know how to get around this post a reply.
No comments:
Post a Comment