Develop and Download Open Source Software

Browse CVS Repository

Diff of /pal/cms-portlets/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by shinsuke, Thu Nov 30 14:30:38 2006 UTC revision 1.2 by shinsuke, Fri Dec 1 12:14:42 2006 UTC
# Line 6  Line 6 
6    <property name="src.main.webapp.webinf.classes" value="${basedir}/src/main/webapp/WEB-INF/classes"/>    <property name="src.main.webapp.webinf.classes" value="${basedir}/src/main/webapp/WEB-INF/classes"/>
7    <property name="src.main.webapp.webinf.lib" value="${basedir}/src/main/webapp/WEB-INF/lib"/>    <property name="src.main.webapp.webinf.lib" value="${basedir}/src/main/webapp/WEB-INF/lib"/>
8    <property name="target.webapp.webinf.lib" value="${basedir}/target/${war.name}/WEB-INF/lib"/>    <property name="target.webapp.webinf.lib" value="${basedir}/target/${war.name}/WEB-INF/lib"/>
9      <property name="target.webapp.webinf.classes" value="${basedir}/target/${war.name}/WEB-INF/classes"/>
10    
11    <property name="shell.cmd" value="sh"/>    <property name="shell.cmd" value="sh"/>
12    <property name="shell.options" value="-c"/>    <property name="shell.options" value="-c"/>
# Line 58  Line 59 
59          <include name="*.jar"/>          <include name="*.jar"/>
60        </fileset>        </fileset>
61      </copy>      </copy>
62        <copy todir="${src.main.webapp.webinf.classes}">
63          <fileset dir="${target.webapp.webinf.classes}">
64            <include name="**"/>
65          </fileset>
66        </copy>
67    
68        <exec
69          executable="${shell.cmd}"
70          failonerror="true"
71          dir="${basedir}"
72          >
73          <arg line="${shell.options} 'mvn clean'"/>
74        </exec>
75    
76        <!-- pom.xml -->
77        <replace
78            file="${basedir}/pom.xml"
79            token="&lt;!-- SERVLET DEV: BEGIN @@@"
80            value="&lt;!-- SERVLET DEV: BEGIN --&gt;"
81            >
82        </replace>
83        <replace
84            file="${basedir}/pom.xml"
85            token="@@@@ SERVLET DEV: END --&gt;"
86            value="&lt;!-- SERVLET DEV: END --&gt;"
87            >
88        </replace>
89    
90        <!-- web.xml -->
91        <replace
92            file="${basedir}/src/main/webapp/WEB-INF/web.xml"
93            token="&lt;!-- SERVLET DEV: BEGIN @@@"
94            value="&lt;!-- SERVLET DEV: BEGIN --&gt;"
95            >
96        </replace>
97        <replace
98            file="${basedir}/src/main/webapp/WEB-INF/web.xml"
99            token="@@@@ SERVLET DEV: END --&gt;"
100            value="&lt;!-- SERVLET DEV: END --&gt;"
101            >
102        </replace>
103    
104    
105    </target>    </target>
106    
# Line 75  Line 118 
118        <arg line="${shell.options} 'mvn clean'"/>        <arg line="${shell.options} 'mvn clean'"/>
119      </exec>      </exec>
120    
121        <!-- pom.xml -->
122        <replace
123            file="${basedir}/pom.xml"
124            token="&lt;!-- SERVLET DEV: BEGIN --&gt;"
125            value="&lt;!-- SERVLET DEV: BEGIN @@@"
126            >
127        </replace>
128        <replace
129            file="${basedir}/pom.xml"
130            token="&lt;!-- SERVLET DEV: END --&gt;"
131            value="@@@@ SERVLET DEV: END --&gt;"
132            >
133        </replace>
134    
135        <!-- web.xml -->
136        <replace
137            file="${basedir}/src/main/webapp/WEB-INF/web.xml"
138            token="&lt;!-- SERVLET DEV: BEGIN --&gt;"
139            value="&lt;!-- SERVLET DEV: BEGIN @@@"
140            >
141        </replace>
142        <replace
143            file="${basedir}/src/main/webapp/WEB-INF/web.xml"
144            token="&lt;!-- SERVLET DEV: END --&gt;"
145            value="@@@@ SERVLET DEV: END --&gt;"
146            >
147        </replace>
148    
149    </target>    </target>
150    
151  </project>  </project>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26