centipede2/src/java/org/krysalis/centipede2/ant ImportAntletTask.java,1.1,1.2

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

Modified Files:
	ImportAntletTask.java 
Log Message:
More stubbing

Index: ImportAntletTask.java
===================================================================
RCS file: /cvsroot/metamorphosis/centipede2/src/java/org/krysalis/centipede2/ant/ImportAntletTask.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ImportAntletTask.java	26 Oct 2003 01:50:24 -0000	1.1
--- ImportAntletTask.java	26 Oct 2003 02:01:52 -0000	1.2
***************
*** 7,11 ****
--- 7,15 ----
   *****************************************************************************/
  package org.krysalis.centipede2.ant;
+ import java.io.File;
+ 
+ import org.apache.tools.ant.BuildException;
  import org.apache.tools.ant.Task;
+ import org.apache.tools.ant.taskdefs.ImportTask;
  
  /**
***************
*** 17,24 ****
   */
  public class ImportAntletTask extends Task {
! 	
  
  
  
  
  }
--- 21,103 ----
   */
  public class ImportAntletTask extends Task {
! 	private final ImportTask importTask;
  
+ 	private String name;
+ 	private String href;
  
+ 	/**
+ 	 * @return
+ 	 */
+ 	public String getHref() {
+ 		return href;
+ 	}
+ 
+ 	/**
+ 	 * @param href
+ 	 */
+ 	public void setHref(String href) {
+ 		this.href = href;
+ 	}
  
+ 	/**
+ 	 * @return
+ 	 */
+ 	public String getName() {
+ 		return name;
+ 	}
+ 
+ 	/**
+ 	 * @param name
+ 	 */
+ 	public void setName(String name) {
+ 		this.name = name;
+ 	}
+ 
+ 	/**
+ 	 * 
+ 	 */
+ 	public ImportAntletTask() {
+ 		super();
+ 		importTask = new ImportTask();
+ 
+ 	}
+ 
+ 	/* (non-Javadoc)
+ 	 * @see org.apache.tools.ant.Task#execute()
+ 	 */
+ 	public void execute() throws BuildException {
+ 		File antlet = getAntletFile();
+ 		importTask.setProject(getProject());
+ 		importTask.setFile(antlet.getAbsolutePath());
+ 		importTask.execute();
+ 		super.execute();
+ 	}
+ 
+ 	/**
+ 	 * @return
+ 	 */
+ 	private File getAntletFile() {
+ 		File localAntlet = getLocalAntletFile();
+ 		if (localAntlet==null){
+ 			localAntlet =getRemoteAntlet();
+ 		}
+ 		return localAntlet;
+ 	}
+ 
+ 	/**
+ 	 * @return
+ 	 */
+ 	private File getRemoteAntlet() {
+ 		// TODO Auto-generated method stub
+ 		return null;
+ 	}
+ 
+ 	/**
+ 	 * @return
+ 	 */
+ 	private File getLocalAntletFile() {
+ 		// TODO Auto-generated method stub
+ 		return null;
+ 	}
  
  }




-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
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.