jcabi / jcabi-aether

Wrapper of Sonatype Aether
http://aether.jcabi.com/
Other
66 stars 33 forks source link

Constructors for classpath of Maven Project should accept var args #88

Closed simonjenga closed 8 years ago

simonjenga commented 8 years ago

The following constructors should be refactored in order to accept variable arguments. At the moment they can only accept one String argument e.g. "runtime" or "compile"

/**
 * Public ctor.
 * @param prj The Maven project
 * @param repo Local repository location (directory path)
 * @param scp The scope to use, e.g. "runtime" or "compile"
 */
public Classpath(final MavenProject prj, final File repo,
    final String scp) {
    this(prj, repo, Arrays.asList(scp));
}

/**
 * Public ctor.
 * @param bldr Dependency graph builder.
 * @param sess Maven session.
 * @param scp The scope to use, e.g. "runtime" or "compile"
 */
public MavenClasspath(final DependencyGraphBuilder bldr,
    final MavenSession sess, final String scp) {
    this(bldr, sess, Arrays.asList(scp));
}

Once the refactoring is done, it will be possible to pass more that one argument for the scope to use e.g: "runtime", "compile", "test", "system", "provided"

dmarkov commented 8 years ago

@yegor256 please pay attention to this issue (par.21)

dmarkov commented 8 years ago

@simonjenga thank you for reporting this, I added 15 mins to your acc, transaction 90841318

dmarkov commented 8 years ago

@amihaiemil the task is yours

amihaiemil commented 8 years ago

Pr #89 is for this issue

amihaiemil commented 8 years ago

@simonjenga The PR was merged and closed. Can you close this issue? :D

amihaiemil commented 8 years ago

@simonjenga ping

amihaiemil commented 8 years ago

@simonjenga please don't forget about this! Thanks

simonjenga commented 8 years ago

:ok: Try to relax! :relaxed:

amihaiemil commented 8 years ago

@simonjenga thanks :D

amihaiemil commented 8 years ago

@dmarkov This issue is now closed.

amihaiemil commented 8 years ago

@dmarkov ping

dmarkov commented 8 years ago

@amihaiemil Many thanks! 30 mins were added to your account in Transaction ID AP-8TW75534JU567725X (task took 219 hours and 31 mins)

added +30 to your rating, now it is equal to +195

dmarkov commented 8 years ago

@dmarkov This issue is now closed.

@amihaiemil OK thanks

dmarkov commented 8 years ago

@dmarkov ping

@amihaiemil we're good here