Hi all,

 

For those interested in this topic. Here is a change I made to the
maven.xml file to delete specific files. Now in my final distribution
(standard plus my changes), the specified files are deleted.

 

    <goal name="config-3" description="Site Map Content (PSML)">

        <echo>Removing default content</echo>

        <delete failonerror="true">

            <fileset dir="${maven.war.src}/WEB-INF/psml"
includes="user/**/*.*"/>

            <fileset dir="${maven.war.src}/WEB-INF/psml"
includes="group/**/*.*"/>

            <fileset dir="${maven.war.src}/WEB-INF/psml"
includes="role/**/*.*"/>

            <fileset dir="${maven.war.src}/WEB-INF/psml"
includes="test/**/*.*"/>

        </delete>

        <echo>Deploying content</echo>

        <copy overwrite="true" todir="${maven.war.src}/WEB-INF/psml">

            <fileset dir="psml" includes="*.psml" />

            <fileset dir="psml">

                <include name="group/**/*.psml" />

            </fileset>

            <fileset dir="psml">

                <include name="role/**/*.psml" />

            </fileset>

            <fileset dir="psml">

                <include name="user/**/*.psml" />

            </fileset>

        </copy>

    </goal>

 

Admittedly the folders are not removed, but the files in those folders
are. So, when the “admin” user logs on, the newly defined PSML in the
role folder is used.

 

I’m pleased enough with the results of this command. I took it from the
tutorial files and adapted to my needs. I will be working on how the
first two tutorials update the VM templates of top and bottom navigation
(I think) using parameters for the image files etc. Once I have had
chance to do that, I will share any nice syntax I have learnt.

 

Best regards,

Philip

 

 

-----Original Message-----
From: Philip Saville [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 30, 2004 10:59 PM
To: 'Jetspeed Users List'
Subject: RE: Using Maven to customize deployment - How to remove
defaultPSML?

 

Hi Eric,

 

Please do send me your updated Jetspeed plugin. I would really like to

use this extra functionality.

 

Thanks,

Philip

 

-----Original Message-----

From: Cyrille GACHOT [mailto:[EMAIL PROTECTED] 

Sent: Monday, July 26, 2004 1:31 AM

To: Jetspeed User List

Subject: Re: Using Maven to customize deployment - How to remove

defaultPSML?

 

Hi eric,

 

I'm not in a hurry with that part, but i want to tell you that i'm also

interested with your enhancement of the plugin.

Just to let you know your develepement has interest for other people...

Hope you will submit it one day soon :)

 

Cyrille

 

 

Le lun 26/07/2004 à 02:37, Eric L. Wittle a écrit :

> Philip Saville wrote:

> 

> >I wish to continue to use the tutorial as an example of customizing a

> >jetspeed deployment.

> >

> > 

> >

> >How can I modify my maven.xml file to remove the default (delivered)

> >PSML ready to be replaced by my own defined in my maven project

files?

> >

> >  

> >

> I've hacked/developed an extended version of the Jetspeed plugin that 

> allows you to list files from the default distribution in a new

property 

> (maven.delete.files) within project.properties, and the updated plugin

 

> deletes all of the files you list. I've not submitted it yet, because 

> I'm not happy with the format you use to list the files, but it does 

> work. Please let me know if you want it, I'll be happy to send it to

you.

> 

> -Eric

>  ericw at wittle.net

> 

> > 

> >

> >So far I have successfully modified and deployed the PSML I wish to

add,

> >but the original delivered PSML is still there in the generated war

> >file.

> >

> > 

> >

> >Thanks for the help.

> >

> > 

> >

> > 

> >

> >

> >  

> >

> 

> 

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: [EMAIL PROTECTED]

> For additional commands, e-mail: [EMAIL PROTECTED]

> 

> 

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]

 

Reply via email to