|
|
Choosing A Webhost: |
svn commit: r523190 - /lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/de: msg#00033cms.lenya.cvs
Author: antonio Date: Tue Mar 27 23:16:43 2007 New Revision: 523190 URL: http://svn.apache.org/viewvc?view=rev&rev=523190 Log: Remove published resources before copy resources. It keeps clean the live area. Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Publish.java Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Publish.java URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Publish.java?view=diff&rev=523190&r1=523189&r2=523190 ============================================================================== --- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Publish.java (original) +++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Publish.java Tue Mar 27 23:16:43 2007 @@ -32,6 +32,7 @@ import org.apache.lenya.cms.publication.DublinCore; import org.apache.lenya.cms.publication.Publication; import org.apache.lenya.cms.publication.PublicationException; +import org.apache.lenya.cms.publication.ResourcesManager; import org.apache.lenya.cms.publication.SiteTree; import org.apache.lenya.cms.publication.SiteTreeNode; import org.apache.lenya.cms.publication.task.PublicationTask; @@ -182,9 +183,9 @@ Document liveDocument = getPublication().getAreaVersion(authoringDocument, Publication.LIVE_AREA); - + ResourcesManager rm = new ResourcesManager(liveDocument); + rm.deleteResources(); copyResources(authoringDocument, liveDocument); - triggerWorkflow(authoringDocument); } @@ -205,5 +206,4 @@ Document document = builder.buildDocument(getPublication(), url); return document; } - }
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | svn commit: r523186 - /lenya/branches/BRANCH_1_2_X/RELEASE-MANAGEMENT.txt, antonio |
|---|---|
| Next by Date: | 今なら・・!?, norika |
| Previous by Thread: | svn commit: r523186 - /lenya/branches/BRANCH_1_2_X/RELEASE-MANAGEMENT.txt, antonio |
| Next by Thread: | 今なら・・!?, norika |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |