portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott T Weaver (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Commented: (JS2-338) In certain cases j2:portal.genapp overwrites the existing project's project.xml
Date Fri, 19 Aug 2005 13:22:59 GMT
    [ http://issues.apache.org/jira/browse/JS2-338?page=comments#action_12319373 ] 

Scott T Weaver commented on JS2-338:


The Bad News:  Looks like this is gonna bite us again.  I have files in my webapp that are
older than the ones created by the j2:portal.genapp, so my customized files arent. getting
copied by the "war" goal.

The Good News:  Found a great "hack" for this.  I added a "<touch>" at the  j2:portal.copy.webapp.minimal
and j2:portal.copy.webapp goals which looks like this:

	<touch millis="1">
		<fileset dir="${portal.webapp.dir}" />

This effectively sets the Last-Modified dates to sometime in late 1969 :)  This means that
any custom files you have, as long as they are post 1969, will be copied by the "war" goal.

Let me know if you think this is a valid solution for this issue and I will commit my changes.


> In certain cases j2:portal.genapp overwrites the existing project's project.xml
> -------------------------------------------------------------------------------
>          Key: JS2-338
>          URL: http://issues.apache.org/jira/browse/JS2-338
>      Project: Jetspeed 2
>         Type: Bug
>     Versions: 2.0-FINAL, 2.0-M4
>     Reporter: Scott T Weaver
>     Assignee: Scott T Weaver
>      Fix For: 2.0-FINAL, 2.0-M4

> This happens any time initMavenPlugin is called after the creation of a custom portal's
project.xml or if the the maven plugin's project.xml has a newer timestamp then the custom
portal's project.xml.  Even though the overwrite on the copy task in the plugin has overwrite="false"
this does not help the case when the plugin's project.xml has a more recent timestamp.  All
the overwrite="false" does is force the copy command to respect timestamps, which it does
do.  However, this does not prevent the maven plugin's project.xml with a newer timestamp
from overwriting the local project's project.xml.
> A check needs to be put in place to prevent the copy based on the prior existence of
a local project.xml.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

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

View raw message