Changeset 82 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs
- Timestamp:
- 06/25/14 13:06:59 (10 years ago)
- Location:
- v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/generator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/generator/EbnfGenerator.xtend
r72 r82 42 42 var uri = (fsa as IFileSystemAccessExtension2).getURI(e.name + ".fo"); 43 43 var String fullUri = workspacePath + uri.path.substring(10, uri.path.length); 44 System.out.println(workspacePath + uri.path.substring(10, uri.path.length));45 44 var File file = new File(fullUri); 46 System.out.println(file.exists+ "," + fullUri.substring(0, fullUri.length - 3));47 45 48 46 if (file.exists) { 47 49 48 foToPdf.createPdfFromFo(fullUri.substring(0, fullUri.length - 3)); 49 // fsa.deleteFile(e.name + ".fo"); 50 50 } 51 51 } -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/generator/foToPdf.java
r72 r82 40 40 41 41 // Step 2: Set up output stream. 42 OutputStream out = new BufferedOutputStream(new FileOutputStream(new File(pdfFileName+". pdf")));42 OutputStream out = new BufferedOutputStream(new FileOutputStream(new File(pdfFileName+".rtf"))); 43 43 44 44 try { 45 45 // Step 3: Construct fop with desired output format 46 Fop fop = fopFactory.newFop(MimeConstants.MIME_ PDF, out);46 Fop fop = fopFactory.newFop(MimeConstants.MIME_RTF, out); 47 47 48 48 // Step 4: Setup JAXP using identity transformer
Note: See TracChangeset
for help on using the changeset viewer.