Browse CVS Repository
Contents of /pal/blog/maven.xml
Parent Directory
| Revision Log
| Revision Graph
Revision 1.2 -
( show annotations)
( download)
( as text)
Mon Jan 9 07:43:42 2006 UTC
(18 years, 3 months ago)
by shinsuke
Branch: MAIN
CVS Tags: BLOG-RELEASE-1_2, BLOG-RELEASE-1_1
Changes since 1.1: +25 -2 lines
File MIME type: application/xml
added create-db-dist goal
| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
<project default="java:jar" |
| 4 |
xmlns:j="jelly:core" |
| 5 |
xmlns:define="jelly:define" |
| 6 |
xmlns:ant="jelly:ant" |
| 7 |
> |
| 8 |
|
| 9 |
|
| 10 |
<!-- ================================================================ --> |
| 11 |
<!-- Hot Deploy for mundane everyday development under Catalina --> |
| 12 |
<!-- ================================================================ --> |
| 13 |
<goal name="hotdeploy"> |
| 14 |
<echo message="Hot Deploying ${org.apache.jetspeed.portlet.app.name} to ${org.apache.jetspeed.deploy.war.dir}"/> |
| 15 |
<copy todir="${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portlet.app.name}/WEB-INF/classes"> |
| 16 |
<fileset dir="${maven.build.dir}/classes"> |
| 17 |
</fileset> |
| 18 |
</copy> |
| 19 |
<copy todir="${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portlet.app.name}/"> |
| 20 |
<fileset dir="./src/webapp"/> |
| 21 |
</copy> |
| 22 |
</goal> |
| 23 |
|
| 24 |
<preGoal name="hotdeploy"> |
| 25 |
<attainGoal name= "java:compile"/> |
| 26 |
</preGoal> |
| 27 |
|
| 28 |
<goal name="create-db"> |
| 29 |
<attainGoal name="torque"/> |
| 30 |
<attainGoal name="torque:insert-sql"/> |
| 31 |
</goal> |
| 32 |
|
| 33 |
<postGoal name="dist"> |
| 34 |
|
| 35 |
<!-- Create a tar.gz file --> |
| 36 |
<ant:tar longfile="gnu" tarfile="${maven.build.dir}/distributions/${maven.final.name}-db.tar"> |
| 37 |
<ant:tarfileset dir="${maven.src.dir}/db"/> |
| 38 |
</ant:tar> |
| 39 |
|
| 40 |
<ant:gzip |
| 41 |
zipfile="${maven.build.dir}/distributions/${maven.final.name}-db.tar.gz" |
| 42 |
src="${maven.build.dir}/distributions/${maven.final.name}-db.tar" |
| 43 |
/> |
| 44 |
|
| 45 |
<ant:delete file="${maven.build.dir}/distributions/${maven.final.name}-db.tar"/> |
| 46 |
|
| 47 |
<!-- Create a zip file --> |
| 48 |
<ant:zip zipfile="${maven.build.dir}/distributions/${maven.final.name}-db.zip"> |
| 49 |
<ant:zipfileset dir="${maven.src.dir}/db"/> |
| 50 |
</ant:zip> |
| 51 |
|
| 52 |
</postGoal> |
| 53 |
|
| 54 |
</project> |
|