Logo Search packages:      
Sourcecode: maven-debian-helper version File versions  Download package

void org::debian::maven::plugin::SysInstallMojo::copyJar (  )  throws IOException [inline, protected, inherited]

if a jar exists: copy it to the Maven repository

Definition at line 365 of file SysInstallMojo.java.

References org::debian::maven::plugin::SysInstallMojo::debianFullRepoPath(), org::debian::maven::plugin::SysInstallMojo::debianVersion, org::debian::maven::plugin::SysInstallMojo::linkCommand(), and org::debian::maven::plugin::SysInstallMojo::version.

Referenced by org::debian::maven::plugin::SysInstallMojo::runMojo(), and org::debian::maven::plugin::SysInstallDocMojo::runMojo().

  {
    File jarFile = new File(fullJarName());
    if (jarFile.exists())
    {
      FileUtils.copyFile(jarFile, new File(jarDestPath()));
      if (debianVersion != null && !debianVersion.equals(version))
      {
        mkdir(debianFullRepoPath());
        run(linkCommand(jarDestRelPath(), debianJarDestPath()));
      }
    }
  }


Generated by  Doxygen 1.6.0   Back to index