summaryrefslogtreecommitdiffstats
path: root/centibuild.xml
blob: 51e9eea1f8c5ad41ff15d10c1985deb7dd085d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?xml version="1.0"?>

<project default="interactive" basedir="." name="project build file">

  <description>Jakarta POI buildfile</description>
 
    <taskdef resource="centipede"/>
    <centipede/>
    
    <importcent name="java" />
    <importcent name="junit" />
    
   <!-- These work locally, but still need to be set in Gump
      
    <importcent name="doxygen-gpl" />
    <importcent name="pmd" />
    <importcent name="statcvs-gpl" />
    <importcent name="nounit-gpl" />
    <importcent name="dir2xml" />
    <importcent name="essmodel-gpl" />
    <importcent name="checkstyle" />
    <importcent name="forrest" />
    <importcent name="changelog" />
    
    -->
            
  <!-- =================================================================== -->
  <!-- Basic build targets for the project                                 -->
  <!-- =================================================================== -->

  <!-- =================================================================== -->
  <!-- Interactive build                                                   -->
  <!-- =================================================================== -->
  <target name="interactive" description="Interactive Build">          
    <echo> 
    --------------------------------------------------------------

          ${jxpath:/references/module.xml/root/module/project[1]/@name}  [${YEAR}]

    --------------------------------------------------------------
     Using ${ant.version}
     Build file ${ant.file}
    --------------------------------------------------------------   
     These are the most common build targets.   
     You can also invoke them directly; see build.xml for more info. 
     Builds will be in /build directory, distributions in /dist.        
        
     all -------------- creates the jars and the site      
     compile ---------- compiles the source code      
     test ------------- performs the jUnit tests       
     jar -------------- create the jar files
     docs ------------- generates the html docs - clean not needed        
     javadocs --------- generates the API documentation   
     site ------------- generates the html site (docs+reports)    
     clean ------------ cleans the build directory    
     dist ------------- creates src and bin distributions    
     scratchpad ------- build-run scratchpad code       
     contrib ---------- build-run contributed code    
     generate-records - generate excel records    
     generate-types --- generate word types    
     poibrowser  - POIBrowser 0.10 GUI POI Viewer
     sheetviewer - SheetViewer 0.20 GUI Applet/Application Viewer for XLS files     

    </echo>
    
    <input message="Please select a target "
           addproperty="input.selection"/>
    
    <condition property="do.abort">
      <equals arg1="" arg2="input.selection" />
    </condition>
    
    <fail if="do.abort">Build aborted by user.</fail>

    <antrun target="splash"/>
    <antrun target="${input.selection}"/>
    
  </target>



  <!-- ================================== -->
  <!--       Generate records                -->
  <!-- ================================== -->
  
  <target  name="generate-records"
           description="generate-records">

    <ant antfile="${project.src.dir}/targets/record-generation/xbuild.xml"
            target="generate-records"/>
    
  </target>     

  <!-- ================================== -->
  <!--       Generate types                -->
  <!-- ================================== -->
  
  <target  name="generate-types"
           description="generate-types">

    <ant antfile="${project.src.dir}/targets/record-generation/xbuild.xml"
            target="generate-types"/>
    
  </target>     

                
  <!-- ================================== -->
  <!--        Target used by Gump         -->
  <!-- ================================== -->
  
  <target  name="gump"   
           depends="compile, package, test"
           description="Target used by Gump"/>

  <!-- ================================== -->
  <!--        Generate all                -->
  <!-- ================================== -->
  
  <target  name="all"   
           depends="package"
           description="Generate all"/>
                      
   
      
</project>