dion 2002/06/22 08:48:02
Modified: src/java/org/apache/maven Build.java
Log:
Fix style violations
Revision Changes Path
1.17 +15 -5 jakarta-turbine-maven/src/java/org/apache/maven/Build.java
Index: Build.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/Build.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- Build.java 22 Jun 2002 14:03:34 -0000 1.16
+++ Build.java 22 Jun 2002 15:48:02 -0000 1.17
@@ -62,7 +62,6 @@
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
-import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -74,7 +73,6 @@
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.UnrecognizedOptionException;
-import org.apache.commons.lang.Strings;
import org.apache.commons.logging.Log;
import org.apache.maven.build.ProjectDescriptor;
import org.apache.maven.build.PropertyResolver;
@@ -208,9 +206,16 @@
/**
* Run the build as currently configured
*
+ * @throws IntrospectionException if there are issues reading a
+ * {@link Project} object
+ * @throws FileNotFoundException when a file used is not available during
+ * formatting or transformation
+ * @throws IOException when errors occur reading or writing
+ * @throws SAXException when problems occur parsing XML
+ * @throws Exception when someother component fails
*/
public void run() throws IntrospectionException, FileNotFoundException,
- IOException, Exception
+ IOException, SAXException, Exception
{
// verify project is ok first
LOG.info("Verifying project integrity");
@@ -230,7 +235,8 @@
* <li>${user.home}/build.properties - user's defaults</li>
* <li>${basedir}/build.properties - this build's defaults</li>
* <li>${basedir}/project.properties - project defaults</li>
- * <li>${maven.home}/plugins/core/default.properties - maven defaults</li>
+ * <li>${maven.home}/plugins/core/default.properties - maven defaults
+ * </li>
* </ol>
* </p>
*/
@@ -347,7 +353,8 @@
*/
public List getRemoteRepositories() throws MalformedURLException
{
- if (getRepositoryManager().getRemoteRepositories().size() == 0) {
+ if (getRepositoryManager().getRemoteRepositories().size() == 0)
+ {
String remoteList = getProperty("maven.repo.remote");
if (remoteList != null)
@@ -367,6 +374,8 @@
/**
* Provide a list of command line options supported
+ *
+ * @return a set of command line {@link Options} recognized
*/
public Options getOptions()
{
@@ -444,6 +453,7 @@
* time rather than at set.
*
* @param name the name of the property to retrieve
+ * @return the property value as a string
*/
public String getProperty(String name)
{
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>