| | |
| | |
|
| | | private static final Logger logger = Logger.getLogger(CompileService.class.getName());
|
| | |
|
| | | public String antBuild(String relPath) {
|
| | | File targetDir = getTargetDir(relPath); // App-Ordner
|
| | | StringBuilder sb = new StringBuilder();
|
| | | sb.append("Ant build ist noch nicht implementiert.");
|
| | | //sb.append(System.lineSeparator());
|
| | | sb.append("<br/>");
|
| | | sb.append("targetDir: ");
|
| | | sb.append(targetDir.getAbsolutePath());
|
| | | return sb.toString();
|
| | | }
|
| | | |
| | | |
| | | /**
|
| | | * Annahme: relPath zeigt auf einen Ordner, in dem ein build-Ordner die
|
| | | * fertigen Klassen und ein web-Ordner die Struktur mit WEB-INF
|
| | |
| | | |
| | | /* -------- Compile / Build ------------- */ |
| | | |
| | | function fm_ant_build() { |
| | | var m = '?c=de.uhilger.filecms.api.CompileService&m=antBuild&p=' + pfad; |
| | | var u = '../svc' + m; |
| | | fm_get(u, "text", function(resp) { |
| | | $('.system-out').empty(); |
| | | $('.system-out').append('Ergebnis von Ant build: ' + resp); |
| | | fm_fusszeile_zeigen(); |
| | | }); |
| | | } |
| | | |
| | | function fm_build_app() { |
| | | var m = '?c=de.uhilger.filecms.api.CompileService&m=buildApp&p=' + pfad; |
| | | var u = '../svc' + m; |
| | |
| | | <a id="m-test-3" class="dropdown-item" href="#">Compile all</a> |
| | | <a id="m-compile-results" class="dropdown-item" href="#">Compile results</a> |
| | | <a id="m-build-app" class="dropdown-item" href="#">Build app</a> |
| | | <a id="m-ant-build" class="dropdown-item" href="#">Ant build</a> |
| | | <div class="dropdown-divider"></div> |
| | | <a id="profil" class="dropdown-item" href="/um/profil">Profil</a> |
| | | <a id="logout" class="dropdown-item" href="#">Abmelden</a> |
| | |
| | | $('#m-test-3').on('click', fm_menu_compile_all); |
| | | $('#m-compile-results').on('click', fm_fusszeile_zeigen); |
| | | $('#m-build-app').on('click', fm_menu_build_app); |
| | | $('#m-ant-build').on('click', fm_menu_ant_build); |
| | | $('#saveModal').on('hidden.bs.modal', function (e) { |
| | | $('#modal_ok').attr('onclick','').unbind('click'); |
| | | }); |
| | |
| | | fm_build_app(); |
| | | } |
| | | |
| | | function fm_menu_ant_build() { |
| | | fm_ant_build(); |
| | | } |
| | | |
| | | function fm_mark_compile_results_in_editor(resp) { |
| | | cm.clearGutter("breakpoints"); |
| | | |