Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'geekyappz'
version '1.0.3'
version '1.0.4'

apply plugin: 'java'

Expand All @@ -11,18 +11,22 @@ repositories {

//create a single Jar with all dependencies
task fatJar(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Implementation-Title': 'Svg2VectorAndroid',
'Implementation-Version': version,
'Main-Class': 'com.vector.svg2vectorandroid.Runner'
}
baseName = project.name
archiveBaseName = project.name
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
with jar
}

dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.11'
implementation 'com.android.tools:sdk-common:27.1.1'
implementation 'com.android.tools:common:27.1.1'
implementation 'com.android.tools:sdk-common:30.3.0'
implementation 'com.android.tools:common:30.3.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public FileVisitResult preVisitDirectory(Path dir,
return FileVisitResult.SKIP_SUBTREE;
}

System.out.println("Visiting directory: " + dir.toAbsolutePath());

CopyOption[] opt = new CopyOption[]{COPY_ATTRIBUTES, REPLACE_EXISTING};
Path newDirectory = destinationVectorPath.resolve(sourceSvgPath.relativize(dir));
try {
Expand All @@ -74,7 +76,11 @@ public FileVisitResult preVisitDirectory(Path dir,

public FileVisitResult visitFile(Path file,
BasicFileAttributes attrs) throws IOException {
convertToVector(file, destinationVectorPath.resolve(sourceSvgPath.relativize(file)));
try {
convertToVector(file, destinationVectorPath.resolve(sourceSvgPath.relativize(file)));
} catch(Exception exc) {
System.out.println("Exception on convertToVector " + exc.toString());
}
return CONTINUE;
}

Expand Down