~ubuntu-branches/ubuntu/saucy/ivy/saucy-proposed

« back to all changes in this revision

Viewing changes to src/java/org/apache/ivy/Ivy.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-15 17:44:57 UTC
  • mfrom: (3.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130515174457-ogntd0vxluwalq11
Tags: 2.3.0-2
* Team upload.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
import org.apache.ivy.core.resolve.ResolvedModuleRevision;
52
52
import org.apache.ivy.core.retrieve.RetrieveEngine;
53
53
import org.apache.ivy.core.retrieve.RetrieveOptions;
 
54
import org.apache.ivy.core.retrieve.RetrieveReport;
54
55
import org.apache.ivy.core.search.ModuleEntry;
55
56
import org.apache.ivy.core.search.OrganisationEntry;
56
57
import org.apache.ivy.core.search.RevisionEntry;
64
65
import org.apache.ivy.plugins.resolver.BasicResolver;
65
66
import org.apache.ivy.plugins.resolver.DependencyResolver;
66
67
import org.apache.ivy.plugins.trigger.Trigger;
 
68
import org.apache.ivy.util.DateUtil;
67
69
import org.apache.ivy.util.HostUtil;
68
70
import org.apache.ivy.util.Message;
69
71
import org.apache.ivy.util.MessageLoggerEngine;
129
131
    
130
132
    private static final int KILO = 1024;
131
133
 
132
 
    public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyyMMddHHmmss");
 
134
    /**
 
135
     * @deprecated Use the {@link DateUtil} utility class instead.
 
136
     */
 
137
    public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat(DateUtil.DATE_FORMAT_PATTERN);
133
138
    
134
139
    /**
135
140
     * the current version of Ivy, as displayed on the console when 
543
548
        }
544
549
    }
545
550
 
 
551
    public RetrieveReport retrieve(ModuleRevisionId mrid, RetrieveOptions options)
 
552
            throws IOException {
 
553
        pushContext();
 
554
        try {
 
555
            return retrieveEngine.retrieve(mrid, options);
 
556
        } finally {
 
557
            popContext();
 
558
        }
 
559
    }
 
560
 
546
561
    // ///////////////////////////////////////////////////////////////////////
547
562
    // DELIVER
548
563
    // ///////////////////////////////////////////////////////////////////////