Changeset 7629 for trunk/projects/cppwrap-maven-plugin
- Timestamp:
- 02/21/11 22:07:28 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/projects/cppwrap-maven-plugin/src/main/java/loci/maven/plugin/cppwrap/CppWrapMojo.java
r7627 r7629 81 81 * 82 82 * @parameter expression="${cppwrap.headerFile}" 83 * default-value=" src/main/cppwrap/header.txt"83 * default-value="LICENSE.txt" 84 84 */ 85 85 private File headerFile; … … 99 99 final String projectId = artifactId.replaceAll("[^\\w\\-]", "_"); 100 100 final String projectName = project.getName(); 101 final List<String> libraryPaths = getLibraryPaths(); 101 final List<String> libraryJars = getLibraryJars(); 102 final List<String> classpathJars = getClasspathJars(); 102 103 final String conflictsPath = conflictsFile.exists() ? 103 104 conflictsFile.getPath() : null; … … 114 115 jar2lib.setProjectId(projectId); 115 116 jar2lib.setProjectName(projectName); 116 jar2lib.setLibraryPaths(libraryPaths); 117 jar2lib.setLibraryJars(libraryJars); 118 jar2lib.setClasspathJars(classpathJars); 117 119 jar2lib.setConflictsPath(conflictsPath); 118 120 jar2lib.setHeaderPath(headerPath); … … 129 131 } 130 132 131 private List<String> getLibrary Paths() throws MojoExecutionException {132 final List<String> libraryPaths = new ArrayList<String>();133 private List<String> getLibraryJars() throws MojoExecutionException { 134 final List<String> jars = new ArrayList<String>(); 133 135 134 136 // add project artifact … … 137 139 throw new MojoExecutionException("Must execute package target first."); 138 140 } 139 libraryPaths.add(projectArtifact.getPath()); 141 jars.add(projectArtifact.getPath()); 142 143 return jars; 144 } 145 146 private List<String> getClasspathJars() { 147 final List<String> jars = new ArrayList<String>(); 140 148 141 149 // add project runtime dependencies 142 150 final List<Artifact> artifacts = project.getRuntimeArtifacts(); 143 151 for (final Artifact classPathElement : artifacts) { 144 libraryPaths.add(classPathElement.getFile().getPath());152 jars.add(classPathElement.getFile().getPath()); 145 153 } 146 154 147 return libraryPaths;155 return jars; 148 156 } 149 157
Note: See TracChangeset
for help on using the changeset viewer.