[EMAIL PROTECTED] wrote:

>James a war of the docs sounds like a great idea. What is needed beyond a 
>simple WAR file from the target/docs directory?
>

Not much really. We're currently using this goal:

  <goal name="com.imperitek:site:generate:post"
        description="Create webapp for project site at 
${webapp.test.dir}/${maven.id}-site.war">
    <mkdir dir="${webapp.test.dir}/${maven.id}-site.war/WEB-INF"/>
    <mkdir dir="${webapp.test.dir}/${maven.id}-site.war/WEB-INF/classes"/>
    <copy file="${maven.conf.dir}/site-web.xml" 
tofile="${webapp.test.dir}/${maven.id}-site.war/WEB-INF/web.xml"/>
    <copy file="${maven.conf.dir}/site-jboss-web.xml" 
tofile="${webapp.test.dir}/${maven.id}-site.war/WEB-INF/jboss-web.xml"/>
    <copy file="${maven.conf.dir}/tests-config.xml" 
tofile="${webapp.test.dir}/${maven.id}-site.war/WEB-INF/classes/config.xml"/>
    <copy todir="${webapp.test.dir}/${maven.id}-site.war/WEB-INF/classes">
      <fileset dir="${maven.conf.dir}" 
includes="users.properties,roles.properties"/>
    </copy>
    <copy todir="${webapp.test.dir}/${maven.id}-site.war">
      <fileset dir="${maven.docs.dest}"/>
    </copy>
  </goal>

[note to self: replace maven.id with maven.war.name]

Then our projects use it in a postGoal if they want to have a deployable 
project site:

  <postGoal name="site:generate">
    <attainGoal name="com.imperitek:site:generate:post"/>
  </postGoal>

Moving [webapp]-war.xml out of ${maven.conf.dir} will cause us to make a 
few minor changes but nothing drastic. I'll probably end up creating a 
src/site/... to keep the site's jboss-web.xml and web.xml files and whatnot.

I was just wondering if someone else might already be doing this kind of 
thing and we could use it instead of using our home-grown solution.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to