dion        2002/06/26 19:53:21

  Modified:    src/java/org/apache/maven/app Maven.java
  Log:
  Changed all package level access methods to private
  
  Revision  Changes    Path
  1.24      +26 -26    jakarta-turbine-maven/src/java/org/apache/maven/app/Maven.java
  
  Index: Maven.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/app/Maven.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- Maven.java        26 Jun 2002 20:47:08 -0000      1.23
  +++ Maven.java        27 Jun 2002 02:53:21 -0000      1.24
  @@ -273,7 +273,7 @@
        *
        *  @return The project descriptor.
        */
  -    ProjectDescriptor getProjectDescriptor()
  +    private ProjectDescriptor getProjectDescriptor()
       {
           return this.projectDescriptor;
       }
  @@ -282,12 +282,12 @@
        *
        *  @return The ant project.
        */
  -    GrantProject getAntProject()
  +    private GrantProject getAntProject()
       {
           return this.antProject;
       }
   
  -    com.werken.werkz.Project getWerkzProject()
  +    private com.werken.werkz.Project getWerkzProject()
       {
           return this.werkzProject;
       }
  @@ -438,7 +438,7 @@
        *
        *  @return The Jelly context.
        */
  -    MavenJellyContext getJellyContext()
  +    private MavenJellyContext getJellyContext()
       {
           return this.jellyContext;
       }
  @@ -447,7 +447,7 @@
        *
        *  @return The parsed command-line.
        */
  -    CommandLine getCli()
  +    private CommandLine getCli()
       {
           return this.cli;
       }
  @@ -456,7 +456,7 @@
        *
        *  @return The output sink.
        */
  -    XMLOutput getXMLOutput()
  +    private XMLOutput getXMLOutput()
       {
           return this.output;
       }
  @@ -527,7 +527,7 @@
        *  @throws DescriptorException If there is an error while
        *          reading the project descriptor.
        */
  -    void initializeProjectDescriptor()
  +    private void initializeProjectDescriptor()
           throws DescriptorException
       {
           this.projectDescriptor = new ProjectDescriptor(getProjectFile());
  @@ -538,7 +538,7 @@
        *  @throws MalformedURLException If the local or remote repository
        *          URLs are malformed.
        */
  -    void initializeRepositories() throws MalformedURLException
  +    private void initializeRepositories() throws MalformedURLException
       {
           File libRepo = new File(getProperty("maven.repo.local"));
           this.repositoryManager.setLocalRepository(libRepo.toURL().toExternalForm());
  @@ -566,7 +566,7 @@
        *          MAVEN_HOME/bin is malformed, which is highly
        *          unlikely, but technically possible.
        */
  -    void initializeJelly() throws MalformedURLException
  +    private void initializeJelly() throws MalformedURLException
       {
           this.jellyContext = new MavenJellyContext(getMavenBin().toURL(),
                                                     this.properties);
  @@ -589,7 +589,7 @@
        *  @throws MalformedURLException If the project's <code>maven.xml</code>
        *          is somehow (probably impossibly) a malformed URL.
        */
  -    void initializeJellyVariables() throws MalformedURLException
  +    private void initializeJellyVariables() throws MalformedURLException
       {
           this.jellyContext.setVariable("maven.home",
                                         getMavenHome());
  @@ -609,7 +609,7 @@
   
       /** Initialize the core <code>jeez</code> Jelly tag library.
        */
  -    void initializeTagLibs()
  +    private void initializeTagLibs()
       {
           JeezTagLibrary jeezTagLib = new JeezTagLibrary(getAntProject());
   
  @@ -622,7 +622,7 @@
   
       /** Initialize Ant.
        */
  -    void initializeAnt()
  +    private void initializeAnt()
       {
           this.antProject = new GrantProject();
           
  @@ -636,7 +636,7 @@
   
       /** Initialize the IO streams.
        */
  -    void initializeIO()
  +    private void initializeIO()
       {
           this.consoleOut = System.out;
           this.consoleErr = System.err;
  @@ -672,14 +672,14 @@
        *  @throws Exception If an error occurs while performing
        *          runtime initialization.
        */
  -    void runtimeInitialization() throws Exception
  +    private void runtimeInitialization() throws Exception
       {
           initializeDriver();
           initializePlugins();
           loadProjectBuildFile();
       }
   
  -    void initializeDriver() 
  +    private void initializeDriver() 
       {
           getJellyContext().setVariable( "pom",
                                          getProjectDescriptor().getProject() );
  @@ -690,7 +690,7 @@
        *  @throws Exception If an error occurs while initializing
        *          any plugin.
        */
  -    void initializePlugins() throws Exception
  +    private void initializePlugins() throws Exception
       {
           File pluginsDir = getPluginsDir();
   
  @@ -712,7 +712,7 @@
        *  @throws Exception If an error occurs while initializing
        *          the plugin.
        */
  -    void loadPlugin(String name) throws Exception
  +    private void loadPlugin(String name) throws Exception
       {
           File pluginScript = getPluginScript(name);
   
  @@ -757,7 +757,7 @@
        *  @throws IOException If an error occurs while initializing
        *          the plugin's properties.
        */
  -    void loadPluginProperties(String name) throws IOException
  +    private void loadPluginProperties(String name) throws IOException
       {
           Properties props = getPluginProperties(name);
   
  @@ -813,7 +813,7 @@
        *
        *  @throws Exception If an error occurs.
        */
  -    void attainGoals() throws Exception
  +    private void attainGoals() throws Exception
       {
           JellyContext context = getJellyContext();
   
  @@ -827,7 +827,7 @@
       /** Display helpful information regarding
        *  all documented goals.
        */
  -    void displayGoals() 
  +    private void displayGoals() 
       {
           Collection goals = getWerkzProject().getGoals();
   
  @@ -898,7 +898,7 @@
        *  @throws Exception if there is an error loading
        *          the project's maven.xml script.
        */
  -    void loadProjectBuildFile() throws Exception
  +    private void loadProjectBuildFile() throws Exception
       {
           if (!(hasProjectBuildFile()))
           {
  @@ -927,7 +927,7 @@
        *  @throws Exception If an exception occurs while
        *          running a goal.
        */
  -    void runGoals(List goalNames) throws UnknownGoalException, Exception
  +    private void runGoals(List goalNames) throws UnknownGoalException, Exception
       {
           if (goalNames.isEmpty())
           {
  @@ -1005,7 +1005,7 @@
        *
        *  @throws ParseException If an error occurs during parsing.
        */
  -    void parseCommandLine(String[] args) throws ParseException
  +    private void parseCommandLine(String[] args) throws ParseException
       {
           this.cli = CLIManager.parse(args);
   
  @@ -1033,7 +1033,7 @@
        *
        *  @param defStr The <code>name=value</code> string.
        */
  -    void setCliProperty(String defStr)
  +    private void setCliProperty(String defStr)
       {
           String name  = null;
           String value = null;
  @@ -1067,7 +1067,7 @@
        *    <li>--system properties--</li>
        *  </ol>
        */
  -    void loadProperties()
  +    private void loadProperties()
       {
           this.properties.setProperty( "maven.repo.remote",
                                        "http://jakarta.apache.org/turbine/jars/"; );
  @@ -1120,7 +1120,7 @@
        *
        *  @param propsFile The properties file to load.
        */
  -    void loadProps(File propsFile)
  +    private void loadProps(File propsFile)
       {
           if (!propsFile.exists())
           {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to