Project

General

Profile

Documentation » History » Revision 11

Revision 10 (chin-yeh, 08/15/2011 10:31 AM) → Revision 11/23 (chin-yeh, 08/15/2011 10:38 AM)

{{toc}} 

 h1. Documentation 

 h2. List of Components 

 |_.Name|_.Latest Stable Version|_.Description| 
 |vp-stub|1.0-[version]|the client stub of the VP web services| 
 |vp-client|1.0.2-[version]|the client application of the VP web services| 
 |vp-test|1.0.2-[version]|the demo application of *vp-client*| 
 |vp-batch|1.0-[version]|the batch program| 

 where *version* refer to: 
 * *SNAPSHOT* - for development environment 
 * *RELEASE* - for production environment 

 h2. Compile from source files 

 All of the projects are built and maintained using "Maven 2":http://maven.apache.org/.  
 > Those projects can be imported into *Eclipse IDE* but the *m2 Maven* plugin is needed. 

 The source files are stored in: 
 > [[wiki#scm|SCM]] 

 *Prerequisite:* 
 * Eclipse IDE (optional) 
 * Apache Maven 2 
 * CVS client, e.g TortoiseCVS, Eclipse IDE 
 * Project or module name, e.g. vp-client 

 All of the project is configured to include *development properties files* when packaging the binary file. To include production properties files, activate refer to the *prod* profile. following sections. 


 h3. vp-stub 

 *Steps:* 
 # checkout the project or module using the *vp-stub* from CVS client 
 # <code>cd</code> to the folder: 
 <pre> 
 $ cd vp-stub 
 </pre> 
 # execute the maven goal, *clean* and *package*: 
 ** for *development* environment: 
 <pre> 
 $ mvn clean package 
 </pre> 
 ** for *production* environment: 
 <pre> 
 $ mvn -P prod clean package 
 </pre> 
 # if success, the binary file can be found in the *target* folder 


 h3. vp-client 

 # checkout folder, e.g. the project *vp-client* from cvs 
 # <code>cd</code> to the folder: 
 <pre> 
 $ cd vp-client 
 </pre> 
 # execute the maven goal, *clean* and *package*: 
 ** *Example:* for *development* environment: 
 <pre> 
 $ mvn clean package 
 </pre> 
 ** for *production* environment: 
 <pre> 
 $ mvn -P prod clean package 
 </pre> 
 # if success, the binary file can be found in the *target* folder 

 h3. vp-batch 

 # checkout the project *vp-batch* from CVS 
 # <code>cd</code> to the folder: 
 <pre> 
 $ cd vp-client vp-batch 
 </pre> 
 # execute the maven goal, *clean* and *package*: 
 ** for *development* environment: 
 <pre> 
 $ mvn clean package 
 </pre> 
 ** for *production* environment: 
 <pre> 
 $ mvn -P prod clean package 
 </pre> 
 # if success, the binary file can be found in the *target* folder 


 



 h2. Programming Guide 

 See [[Programming Guide]]