ruper2/src/java/ant/org/krysalis/ruper/ant/task UpdateTask.java,1.1,1.2

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/ant/org/krysalis/ruper/ant/task
In directory sc8-pr-cvs1:/tmp/cvs-serv24844/src/java/ant/org/krysalis/ruper/ant/task

Modified Files:
	UpdateTask.java 
Log Message:
Tried getting ruper.xml to parse, and failed.

Index: UpdateTask.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/ant/org/krysalis/ruper/ant/task/UpdateTask.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** UpdateTask.java	9 Sep 2003 18:37:05 -0000	1.1
--- UpdateTask.java	9 Sep 2003 21:49:05 -0000	1.2
***************
*** 9,13 ****
--- 9,15 ----
  import org.apache.tools.ant.Task;
  import org.krysalis.ruper.RuperException;
+ import org.krysalis.ruper.ant.util.AntLogListener;
  import org.krysalis.ruper.api.tool.FileUpdater;
+ import org.krysalis.ruper.log.Logger;
  import org.krysalis.ruper.util.RuperConstants;
  
***************
*** 46,59 ****
  	 */
  	public void execute() throws BuildException {
  		try {
- 			
  			//
  			// This uses default or configured stuff..
  			//
! 			FileUpdater updater = new FileUpdater(m_ruper,m_repositories);
! 			
! 			if ( null == m_file)
  				throw new BuildException("Missing mandatory attribute 'file'");
! 				
  			updater.updateFile(m_file);
  		}
--- 48,64 ----
  	 */
  	public void execute() throws BuildException {
+ 
+ 		// Set logging context..
+ 		Logger logger = Logger.getLog().pushContext(new AntLogListener(this));
+ 
  		try {
  			//
  			// This uses default or configured stuff..
  			//
! 			FileUpdater updater = new FileUpdater(m_ruper, m_repositories);
! 
! 			if (null == m_file)
  				throw new BuildException("Missing mandatory attribute 'file'");
! 
  			updater.updateFile(m_file);
  		}
***************
*** 61,66 ****
  			throw new BuildException("Failed to <update ", re);
  		}
  	}
- 
  
  }
--- 66,73 ----
  			throw new BuildException("Failed to <update ", re);
  		}
+ 		finally {
+ 			Logger.getLog().popContext(logger);
+ 		}
  	}
  
  }




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.