Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Java:packages
ongres-stringprep
fix-dir-create.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-dir-create.patch of Package ongres-stringprep
Index: stringprep-1.1/codegenerator/src/main/java/com/ongres/stringprep/codegenerator/GeneratorCode.java =================================================================== --- stringprep-1.1.orig/codegenerator/src/main/java/com/ongres/stringprep/codegenerator/GeneratorCode.java +++ stringprep-1.1/codegenerator/src/main/java/com/ongres/stringprep/codegenerator/GeneratorCode.java @@ -62,8 +62,8 @@ public class GeneratorCode { ctx.put("parser", parser); String path = args[0] + "/com/ongres/stringprep/StringPrep.java"; File file = new File(path); - if (!file.getParentFile().mkdirs()) { - throw new IOException("The directory couldn't be created"); + if (!file.getParentFile().exists() && !file.getParentFile().mkdirs()) { + throw new IOException("The directory couldn't be created:" + file.getParentFile()); } Writer writer = new OutputStreamWriter(new FileOutputStream(file),StandardCharsets.UTF_8); template.merge(ctx, writer);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor