aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/addons/addons-maven.asciidoc
Commit message (Expand)AuthorAgeFilesLines
* Removed a duplicated word in a note. (#11785)Anna Koskinen2019-11-041-1/+1
* Update broken docs syntax in github (#11596)Zhe Sun2019-05-231-1/+1
* Clarify widgetset documentation (#10984)Leif Åstrand2018-06-151-5/+5
* Use US english (license) in all placesArtur Signell2016-12-091-1/+1
* Add basic AppWidgetset documentationTeemu Suo-Anttila2016-07-121-76/+215
* Add documentation to master branchMarkus Koivisto2016-01-221-0/+170
* Revert "Merge branch 'documentation'"7.6.0.beta2Ilia Motornyi2015-12-031-170/+0
* Framework documentation INelmot2015-09-251-0/+170
ava.nio.file.attribute.BasicFileAttributes apply plugin: 'java' apply plugin: 'idea' jar { if (project.hasProperty('installerJarName')) { archiveName = installerJarName } manifest { attributes("Main-Class": "com.github.dcevm.installer.Main") } } project.ext { processedData = Paths.get("$buildDir/data") // Should be populated by build server from the DCEVM upstream job dataSource = Paths.get("$buildDir/rawdata") } sourceSets { main { output.dir(processedData.toFile(), builtBy: 'copyData') } } task copyData { onlyIf { Files.exists(dataSource) } doLast { Files.createDirectories(processedData) Files.walkFileTree(dataSource, new CopyDataVisitor(project)); } } class CopyDataVisitor extends SimpleFileVisitor<Path> { def project CopyDataVisitor(prj) { project = prj } @Override public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { Path rel = project.dataSource.relativize(dir) if (rel.nameCount > 4) { rel = rel.subpath(4, rel.nameCount); if (rel.fileName.toString() == 'fastdebug') { // Do not copy fastdebug versions return FileVisitResult.SKIP_SUBTREE; } def targetPath = project.processedData.resolve(rel); if(!Files.exists(targetPath)){ Files.createDirectory(targetPath); } } return FileVisitResult.CONTINUE; } @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { Path rel = project.dataSource.relativize(file) if (rel.nameCount > 4) { rel = rel.subpath(4, rel.nameCount); def targetPath = project.processedData.resolve(rel); Files.copy(file, targetPath, StandardCopyOption.REPLACE_EXISTING); } return FileVisitResult.CONTINUE; } }