private File prepareChangedFilesArchivePath(File archiveDir, File destFile, File assemblyDir) throws IOException { // Replace build target dir from destfile and add changed-files build dir instead String relativePath = PathTool.getRelativeFilePath(assemblyDir.getCanonicalPath(),destFile.getCanonicalPath()); return new File(archiveDir,relativePath); }
basedir = uppercaseDrive( basedir ); filename = uppercaseDrive( filename ); String separator = determineSeparator( filename ); basedir = StringUtils.chompLast( basedir, separator ); filename = StringUtils.chompLast( filename, separator ); return determineRelativePath( relativeFilename, separator );
String relativePath = PathTool.getRelativePath( getOutputDirectory(), xrefLocation.getAbsolutePath() ); if ( isEmpty( relativePath ) )
String resultPath = buildRelativePath( toPath, fromPath, File.separatorChar );
String relativePath = PathTool.getRelativePath( getOutputDirectory(), xrefLocation.getAbsolutePath() ); if ( isEmpty( relativePath ) )
private File prepareChangedFilesArchivePath(File archiveDir, File destFile, File assemblyDir) throws IOException { // Replace build target dir from destfile and add changed-files build dir instead String relativePath = PathTool.getRelativeFilePath(assemblyDir.getCanonicalPath(),destFile.getCanonicalPath()); return new File(archiveDir,relativePath); }
private String getRelativeOutputDirectory( MavenResourcesExecution execution ) { String relOutDir = execution.getOutputDirectory().getAbsolutePath(); if ( execution.getMavenProject() != null && execution.getMavenProject().getBasedir() != null ) { String basedir = execution.getMavenProject().getBasedir().getAbsolutePath(); relOutDir = PathTool.getRelativeFilePath( basedir, relOutDir ); if ( relOutDir == null ) { relOutDir = execution.getOutputDirectory().getPath(); } else { relOutDir = relOutDir.replace( '\\', '/' ); } } return relOutDir; }
+ PathTool.getRelativeFilePath( basedir.getAbsolutePath(), descriptorFile.getAbsolutePath() ) + "' site descriptor with classifier '" + classifier + "'." ); projectHelper.attachArtifact( project, "xml", classifier, targetDescriptorFile );