use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class Ionic3Builder method appContributorsChanged.
@Override
public void appContributorsChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppPackageJson(app);
writeAppPluginsConfig(app);
writeAppServiceTs(app);
writeAppModuleTs(app);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'appContributorsChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class Ionic3Builder 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 appModuleTsChanged.
@Override
public void appModuleTsChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppModuleTs(app);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'appModuleTsChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class NgxBuilder method appThemeChanged.
@Override
public synchronized void appThemeChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
writeAppTheme(app);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'appThemeChanged'");
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class NgxBuilder method writeAppComponentTempTs.
@Override
public void writeAppComponentTempTs(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
try {
if (app != null) {
File appTsFile = new File(appDir, "app.component.ts");
synchronized (writtenFiles) {
if (writtenFiles.contains(appTsFile)) {
File appTsFileTmp = toTmpFile(appTsFile);
if (appTsFileTmp.exists()) {
appTsFile = appTsFileTmp;
}
}
}
File tempTsFile = new File(appDir, "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