Update of /cvsroot/metamorphosis/ruper2/src/java/ant/org/krysalis/ruper2/ant/task
In directory sc8-pr-cvs1:/tmp/cvs-serv15430/src/java/ant/org/krysalis/ruper2/ant/task
Modified Files:
SynchronizeTask.java
Log Message:
Another stab at dependencies...
Index: SynchronizeTask.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/ant/org/krysalis/ruper2/ant/task/SynchronizeTask.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SynchronizeTask.java 2 Oct 2003 14:41:30 -0000 1.2
--- SynchronizeTask.java 7 Oct 2003 00:03:26 -0000 1.3
***************
*** 11,17 ****
--- 11,20 ----
import org.krysalis.ruper2.RuperException;
import org.krysalis.ruper2.ant.util.AntLogListener;
+ import org.krysalis.ruper2.api.ResourceAPI;
import org.krysalis.ruper2.api.tool.FileUpdater;
import org.krysalis.ruper2.config.RuperConfig;
import org.krysalis.ruper2.log.Logger;
+ import org.krysalis.ruper2.repository.DefaultRepository;
+ import org.krysalis.ruper2.resource.ResourceGroup;
import org.krysalis.ruper2.util.RuperConstants;
***************
*** 22,25 ****
--- 25,29 ----
private File m_file = null;
+ private String m_group = null;
private String m_ruper = RuperConstants.DEFAULT;
private String m_repositories = RuperConstants.DEFAULT;
***************
*** 62,74 ****
// 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'");
! log("Update File: " + m_file, Project.MSG_INFO);
- // Update all files [if folder], or one file
- updater.updateFiles(m_file);
}
catch (RuperException re) {
--- 66,90 ----
// This uses default or configured stuff..
//
! if (null != m_group) {
! log("Update Group: " + m_group, Project.MSG_INFO);
!
! ResourceAPI api = new ResourceAPI(m_ruper);
! api.setDefaultTargetRepository(
! DefaultRepository.getRepository(RuperConstants.LIBRARY,true));
! api.updateGroup(new ResourceGroup(m_group));
! }
! else if (null != m_file) {
! log("Update File: " + m_file, Project.MSG_INFO);
!
! FileUpdater updater = new FileUpdater(m_ruper, m_repositories);
!
! // Update all files [if folder], or one file
! updater.updateFiles(m_file);
! }
! else
! throw new BuildException("Missing mandatory attributes, one of 'file' or 'group' required.");
}
catch (RuperException re) {
***************
*** 79,81 ****
--- 95,111 ----
}
}
+ /**
+ * @return
+ */
+ public String getGroup() {
+ return m_group;
+ }
+
+ /**
+ * @param string
+ */
+ public void setGroup(String string) {
+ m_group = string;
+ }
+
}
-------------------------------------------------------
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.