Java Code Examples for com.sun.codemodel.JPackage#isUnnamed()
The following examples show how to use
com.sun.codemodel.JPackage#isUnnamed() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LoggingCodeWriter.java From maven-jaxb2-plugin with BSD 2-Clause "Simplified" License | 5 votes |
public Writer openSource(JPackage pkg, String fileName) throws IOException { if (verbose) { if (pkg.isUnnamed()) log.info("XJC writing: " + fileName); else log.info("XJC writing: " + pkg.name().replace('.', File.separatorChar) + File.separatorChar + fileName); } return core.openSource(pkg, fileName); }
Example 2
Source File: LoggingCodeWriter.java From maven-jaxb2-plugin with BSD 2-Clause "Simplified" License | 5 votes |
public OutputStream openBinary(JPackage pkg, String fileName) throws IOException { if (verbose) { if (pkg.isUnnamed()) log.info("XJC writing: " + fileName); else log.info("XJC writing: " + pkg.name().replace('.', File.separatorChar) + File.separatorChar + fileName); } return core.openBinary(pkg, fileName); }
Example 3
Source File: LoggingCodeWriter.java From maven-jaxb2-plugin with BSD 2-Clause "Simplified" License | 5 votes |
public Writer openSource(JPackage pkg, String fileName) throws IOException { if (verbose) { if (pkg.isUnnamed()) log.info("XJC writing: " + fileName); else log.info("XJC writing: " + pkg.name().replace('.', File.separatorChar) + File.separatorChar + fileName); } return core.openSource(pkg, fileName); }
Example 4
Source File: LoggingCodeWriter.java From maven-jaxb2-plugin with BSD 2-Clause "Simplified" License | 5 votes |
public OutputStream openBinary(JPackage pkg, String fileName) throws IOException { if (verbose) { if (pkg.isUnnamed()) log.info("XJC writing: " + fileName); else log.info("XJC writing: " + pkg.name().replace('.', File.separatorChar) + File.separatorChar + fileName); } return core.openBinary(pkg, fileName); }
Example 5
Source File: LoggingCodeWriter.java From maven-jaxb2-plugin with BSD 2-Clause "Simplified" License | 5 votes |
public Writer openSource(JPackage pkg, String fileName) throws IOException { if (verbose) { if (pkg.isUnnamed()) log.info("XJC writing: " + fileName); else log.info("XJC writing: " + pkg.name().replace('.', File.separatorChar) + File.separatorChar + fileName); } return core.openSource(pkg, fileName); }
Example 6
Source File: LoggingCodeWriter.java From maven-jaxb2-plugin with BSD 2-Clause "Simplified" License | 5 votes |
public OutputStream openBinary(JPackage pkg, String fileName) throws IOException { if (verbose) { if (pkg.isUnnamed()) log.info("XJC writing: " + fileName); else log.info("XJC writing: " + pkg.name().replace('.', File.separatorChar) + File.separatorChar + fileName); } return core.openBinary(pkg, fileName); }
Example 7
Source File: LoggingCodeWriter.java From maven-jaxb2-plugin with BSD 2-Clause "Simplified" License | 5 votes |
public Writer openSource(JPackage pkg, String fileName) throws IOException { if (verbose) { if (pkg.isUnnamed()) log.info("XJC writing: " + fileName); else log.info("XJC writing: " + pkg.name().replace('.', File.separatorChar) + File.separatorChar + fileName); } return core.openSource(pkg, fileName); }
Example 8
Source File: LoggingCodeWriter.java From maven-jaxb2-plugin with BSD 2-Clause "Simplified" License | 5 votes |
public OutputStream openBinary(JPackage pkg, String fileName) throws IOException { if (verbose) { if (pkg.isUnnamed()) log.info("XJC writing: " + fileName); else log.info("XJC writing: " + pkg.name().replace('.', File.separatorChar) + File.separatorChar + fileName); } return core.openBinary(pkg, fileName); }
Example 9
Source File: TypesCodeWriter.java From cxf with Apache License 2.0 | 5 votes |
protected File getFile(JPackage pkg, String fileName) throws IOException { String dirName = pkg.name().replace('.', File.separatorChar); File dir = pkg.isUnnamed() ? target : new File(target, dirName); if (!dir.exists()) { dir.mkdirs(); } File fn = new File(dir, fileName); if (excludePkgList.contains(pkg.name())) { excludeFileList.add(dirName + File.separator + fileName); } if (fn.exists() && !fn.delete()) { throw new IOException(fn + ": Can't delete previous version"); } return fn; }