You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Cyrille GACHOT <cy...@cotranet.com> on 2004/07/26 10:30:59 UTC

Re: Using Maven to customize deployment - How to remove default PSML?

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: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


RE: Using Maven to customize deployment - How to remove defaultPSML?

Posted by Philip Saville <p_...@msn.com>.
Thanks Eric.

Can I make a comment - please make it possible to remove directories
too... I am trying to create a portal site with the PSML and content
totally "role" and/or "group" driven.

My goal is to use the "role" based PSML to catch all "User" or
"Contributor" pages required for standard portal access.

Then have content groups that people can request access too... Then they
can view the new pages (tabs/panes???)... Each lot of content I would
like to have controlled by my local CVS, and be able to deploy the
latest portal using maven. Although DB based PSML would be the best - I
guess a development file based server plus the uploading of PSML to the
production version of the server might handle that... I could include
some kind of approval process too :)

If someone has 30mins to explain to me how those different components
and role/group resources interact, I would really appreciate it.
Something that caught me off guard is the customizing of a role based
rolled-up page creates a new PSML resource for the current user :(  Can
that be controlled? I am starting to understand why that would happen
and I think I need to structure my PSML resources correctly so the
rolling up doesn't look really bad, or can be forced to look a
particular way.


Thanks again and best regards,
Philip



-----Original Message-----
From: Cyrille GACHOT [mailto:cyrille.gachot@cotranet.com] 
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: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


RE: Using Maven to customize deployment - How to remove defaultPSML?

Posted by Philip Saville <p_...@msn.com>.
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:p_saville@msn.com] 
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:cyrille.gachot@cotranet.com] 

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: jetspeed-user-unsubscribe@jakarta.apache.org

> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

> 

> 

 

 

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

To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org

For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

 

 

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

To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org

For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

 


RE: Using Maven to customize deployment - How to remove defaultPSML?

Posted by Philip Saville <p_...@msn.com>.
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:cyrille.gachot@cotranet.com] 
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: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org