use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class NgxBuilder method appRootChanged.
@Override
public void appRootChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppComponentTs(app);
moveFiles();
File appComponentTsFile = new File(appDir, "app.component.temp.ts");
if (appComponentTsFile.exists()) {
writeAppComponentTempTs(app);
}
Engine.logEngine.trace("(MobileBuilder) Handled 'appRootChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class NgxBuilder method appCompTsChanged.
@Override
public void appCompTsChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppComponentTs(app);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'appCompTsChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class Ionic3Builder method appRootChanged.
@Override
public void appRootChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppComponentTs(app);
moveFiles();
File appComponentTsFile = new File(ionicWorkDir, "src/app/app.component.temp.ts");
if (appComponentTsFile.exists()) {
writeAppComponentTempTs(app);
}
Engine.logEngine.trace("(MobileBuilder) Handled 'appRootChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class NgxBuilder method appTemplateChanged.
@Override
public void appTemplateChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppTemplate(app);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'appTemplateChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class Ionic3Builder method writeAppComponentTempTs.
@Override
public void writeAppComponentTempTs(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
try {
if (app != null) {
File appTsFile = new File(ionicWorkDir, "src/app/app.component.ts");
synchronized (writtenFiles) {
if (writtenFiles.contains(appTsFile)) {
File appTsFileTmp = toTmpFile(appTsFile);
if (appTsFileTmp.exists()) {
appTsFile = appTsFileTmp;
}
}
}
File tempTsFile = new File(ionicWorkDir, "src/app/app.component.temp.ts");
// Write file (do not need delay)
FileUtils.copyFile(appTsFile, tempTsFile);
}
} catch (Exception e) {
throw new EngineException("Unable to write ionic app component temp ts file", e);
}
}
Aggregations