maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r819747 - /maven/plugins/branches/maven-site-plugin-3.x/src/main/java/org/apache/maven/plugins/site/DefaultMavenReportExecutor.java
Date Mon, 28 Sep 2009 22:06:33 GMT
Author: olamy
Date: Mon Sep 28 22:06:32 2009
New Revision: 819747

URL: http://svn.apache.org/viewvc?rev=819747&view=rev
Log:
set forceUpdate flag in pluginVersionRequest (value from the mavenSession.request)

Modified:
    maven/plugins/branches/maven-site-plugin-3.x/src/main/java/org/apache/maven/plugins/site/DefaultMavenReportExecutor.java

Modified: maven/plugins/branches/maven-site-plugin-3.x/src/main/java/org/apache/maven/plugins/site/DefaultMavenReportExecutor.java
URL: http://svn.apache.org/viewvc/maven/plugins/branches/maven-site-plugin-3.x/src/main/java/org/apache/maven/plugins/site/DefaultMavenReportExecutor.java?rev=819747&r1=819746&r2=819747&view=diff
==============================================================================
--- maven/plugins/branches/maven-site-plugin-3.x/src/main/java/org/apache/maven/plugins/site/DefaultMavenReportExecutor.java
(original)
+++ maven/plugins/branches/maven-site-plugin-3.x/src/main/java/org/apache/maven/plugins/site/DefaultMavenReportExecutor.java
Mon Sep 28 22:06:32 2009
@@ -400,10 +400,9 @@
         logger.warn( "" );
 
         PluginVersionRequest pluginVersionRequest = new DefaultPluginVersionRequest( repositoryRequest
);
-        pluginVersionRequest.setOffline( mavenReportExecutorRequest.getMavenSession().isOffline()
);
+        pluginVersionRequest.setOffline( mavenReportExecutorRequest.getMavenSession().getRequest().isOffline()
);
         
-        // FIXME how to get this from the mavenSession ? 
-        //pluginVersionRequest.setForceUpdate( forceUpdate )
+        pluginVersionRequest.setForceUpdate( mavenReportExecutorRequest.getMavenSession().getRequest().isUpdateSnapshots()
);
         
         pluginVersionRequest.setGroupId( reportPlugin.getGroupId() );
         pluginVersionRequest.setArtifactId( reportPlugin.getArtifactId() );



Mime
View raw message