File: building.xml

package info (click to toggle)
libjaxen-java 1.1.6-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,924 kB
  • sloc: java: 21,272; xml: 8,054; sh: 13; makefile: 5
file content (123 lines) | stat: -rw-r--r-- 3,562 bytes parent folder | download | duplicates (4)
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
<?xml version="1.0"?>
<document url="http://jaxen.org/building.xml">

  <properties>
    <author>Elliotte Rusty Harold</author>
    <title>Building Jaxen</title>
  </properties>

  <body>
    <title>Building Jaxen</title>
    
    <section name="Compiling">
      <p>
        Jaxen's build system is officially <a href="http://maven.apache.org/">Maven 3</a>. 
        To compile Jaxen, install Maven. Then at the shell 
        prompt inside the top-level jaxen directory, type "mvn compile":
      </p>
      
      <p><samp>$ mvn compile</samp></p>
      
      <p>
        You'll likely see some deprecation warnings. Don't worry about these. 
        They're internal to jaxen, and do not indicate bugs.
      </p>
      
      <p>
        To run the unit tests, type "mvn test":
      </p>
      
      <p><samp>$ mvn test</samp></p>
      
      <p>
        To build a jar file  at the shell 
        prompt type "mvn package":
      </p>
      
      <p><samp>$ mvn package</samp></p>
      
      <p>
        This runs the unit tests as well. The jar file will appear in the target directory. <!--   If any are failing and you still want to 
        build a jar file, use the <code>-Dmaven.test.failure.ignore=true</code> option:-->
      </p>
 <!--
       <p><samp>$ maven -Dmaven.test.failure.ignore=true jar</samp></p>
      -->
      
      
      <p>
        To generate javadoc, type "mvn javadoc:javadoc":
      </p>
      
      <p><samp>$ mvn javadoc:javadoc</samp></p>
      
      <p>
        To generate the complete documentation for the site, including 
        code coverage measurements, static code analysis, and more, type "mvn site":
      </p>
      
      <p><samp>$ mvn site</samp></p>
      
      <p>
       Again the output appears in the target folder. 
      </p>
      
     <p>
        To remove build artifacts, type "mvn clean":
      </p>
      
      <p><samp>$ mvn clean</samp></p>
      
      
    </section>

    <section name="Publishing a Release">
      <p>
       To prepare jaxen for release:
      </p>
      
      
      <ol>
        <li>Update xdocs/releases.xml, xdocs/status.xml, and xdocs/index.xml with the new version number and information.</li>        
        <li>Update project.xml and INSTALL with the new version number.</li>    
        <li>Make sure all changes are committed.</li>   
        <li>Check that all tests pass by running <samp>mvn test</samp>.</li> 
        <li>Tag the release in Subversion.</li>
        <li>Generate the release files by running 
        <samp>mvn package</samp>, <samp>mvn javadoc:javadoc</samp>, <samp>mvn assembly:single</samp>, and <samp>mvn site</samp>.</li>
        <li>
          Using a WebDAV client, open https://dav.codehaus.org/dist/jaxen/.
          (In the Mac OS X Finder, this is Go/Connect to Server...) 
        </li>
        <li>
          Copy the <tt>.zip</tt>, <tt>.bz2</tt> and <tt>.tar.gz</tt> files from target to https://dav.codehaus.org/dist/jaxen/distributions. 
        </li>
         <li>
          Copy the <tt>.jar</tt>  file from target to https://dav.codehaus.org/dist/jaxen/jars/. 
        </li>
        <li>
          Copy the <tt>.pom</tt>  file from target to https://dav.codehaus.org/dist/jaxen/poms/. 
        </li>
        <li>
          Using the Mac Finder, or another WebDAV client, open https://dav.codehaus.org/jaxen/.
        </li>

        <li>
          Copy all files from target/site into this directory, overwriting the existing files.
        </li>
      </ol>

    </section>


  </body>
</document>