cern.jjar
Class GetTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
cern.jjar.AbstractJJarTask
cern.jjar.GetTask
- All Implemented Interfaces:
- Logger
public class GetTask
- extends AbstractJJarTask
An ant task for getting jars (downloading jars to the local repository).
There are three possible repositories: production repository, development
repository and third-party repository. The path to each of these has to be
always passed as a URL e.g.: production repository:
http://www.cern.ch/xxx/~pcrops/production development repository:
file:////web5.cern.ch/test-release/dev 3-rd party:
http://www.cern.ch/xxx/~pcrops/thirdparty
It is important, that if repository file is to be changed, the path has to
be passed with "file" protocol, if it is only read it can be either "http"
or "file". It will be specified in the description of each command.
Commands description:
-getJars-
- localrepository- Path to the local repository dir where the
jars are to be downloaded (e.g.: c:/projects/bic/lib)
- localdescriptor- path to the file on the local disc (e.g.:
c:/projects/bic/project.xml)
- repository- URL of the production repository. It can be
either local or remote (e.g.: http://slwww.cern.ch/xxx/production,
file:////web3.cern.ch/production)
- devrepository- URL of the development repository, it also can
be either local or remote (http or file protocol).
- thirdpartyrepository- URL or the third-party repository. As
above.
Optional parameters:
- onlydependencies- if true - the project jars are not
dowloaded (only dependent products). The default value is true
- keepversion- if true - the jars are dowloaded without the
version number. The default value is false.
- localprojectpriority- if true - JJar creates in the
localrepository dir a directory /localproject with a file whose name
points the path on the local disc with dependency project. The path starts
from the root directory of the cvsroot e.g.:
japc@japc-ext@japc-ext-cmw.project
The default value is false.
- product- Name of the product for which dependences jars
should be fetched. This property should be passed if there is no local
descriptor file (localdescriptor property is not set).
- version- Version of product mentioned above. The default
value is PRO (production version).
- existingversion- Version residing on the local disc. existing
version (if defined) is compared with version- if is lower that
version to fetch, the jars are not downloaded.
- defaultdependencyversion- name of default version, when
ommited in dependency definition.
- Version:
- $Id: GetTask.java,v 1.5 2005/03/23 09:40:20 lmestre Exp $
- Author:
- Lionel Mestre, Grzegorz Kruk
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cern.jjar.utils.Logger |
log |
GetTask
public GetTask()
setPathrefid
public void setPathrefid(String pathrefid)
setLocaldescriptor
public void setLocaldescriptor(File localdescriptor)
setProduct
public void setProduct(String product)
setVersion
public void setVersion(String version)
setLocalrepository
public void setLocalrepository(String localrepository)
setKeepversion
public void setKeepversion(boolean keepversion)
setLocalprojectpriority
public void setLocalprojectpriority(boolean localprojectpriority)
setOnlydependencies
public void setOnlydependencies(boolean onlydependencies)
setCreatelink
public void setCreatelink(boolean createlink)
setExistingversion
public void setExistingversion(String existingversion)
setDefaultdependencyversion
public void setDefaultdependencyversion(String defaultVersion)
createRunner
protected JJarRunner createRunner()
- Specified by:
createRunner
in class AbstractJJarTask
processResult
protected void processResult(Object result)
- Specified by:
processResult
in class AbstractJJarTask
Copyright © 2007 CERN. All Rights Reserved.