Changeset 69:e7908e307b61
- Timestamp:
- 01/07/12 19:06:18 (14 years ago)
- Author:
- František Kučera <franta-hg@…>
- Branch:
- default
- Message:
-
Diagramy #13: diagramy ve zvláštní složce zatím nebudou..
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r68
|
r69
|
|
| 43 | 43 | private static final String PŘÍKAZ_MARKDOWN = "markdown"; |
| 44 | 44 | private static final String ADRESÁŘ_VÝSTUPNÍ = "výstup"; |
| 45 | | private static final String ADRESÁŘ_DIAGRAMY = "diagramy"; |
| 46 | 45 | private static int počítadloDiagramů = 0; |
| 47 | | private static String počítadloDiagramůKontext = ""; |
| | 46 | private static String počítadloDiagramůKontext = ""; // aktuálně zpracovávaná stránka, při změně vynulujeme počítadlo |
| 48 | 47 | |
| 49 | 48 | /** |
| … |
… |
|
| 150 | 149 | soubor = souborZadání; |
| 151 | 150 | } |
| 152 | | File adresářDiagramů = new File(ADRESÁŘ_VÝSTUPNÍ, ADRESÁŘ_DIAGRAMY); |
| 153 | | if (!adresářDiagramů.exists()) { |
| 154 | | adresářDiagramů.mkdirs(); |
| 155 | | } |
| 156 | | String souborSložka = ADRESÁŘ_VÝSTUPNÍ + File.separator + ADRESÁŘ_DIAGRAMY + File.separator + soubor; |
| | 151 | String souborSložka = ADRESÁŘ_VÝSTUPNÍ + File.separator + soubor; |
| 157 | 152 | |
| 158 | 153 | String zdroják; |
| … |
… |
|
| 186 | 181 | |
| 187 | 182 | if (chyby.length() == 0) { |
| 188 | | return ADRESÁŘ_DIAGRAMY + File.separator + soubor; |
| | 183 | return soubor; |
| 189 | 184 | } else { |
| 190 | 185 | System.err.print("Při vytváření diagramu došlo k chybě: " + chyby); |