Compare commits

...

26 Commits

Author SHA1 Message Date
SunChaoqun
09158995e5 TESB-21510:Fail to run cMap route in runtime for fail in starting (#2076) 2018-03-13 16:45:20 +08:00
Mike Yan
809df8e650 TESB-21526: Fixed publshing no classed by commandline and studio 2018-03-13 16:34:32 +08:00
Vladimir Bogatyrov
582e39400b [TESB-21378] Issues publishing artifacts with Studio commandline 2018-03-12 16:13:15 +00:00
nrousseau
ef3a63e4ee fix(TUP-19758) generate code even if the jars are missing (#2065) 2018-03-12 19:17:03 +08:00
zwxue
26c352d663 fix(TUP-19675):renaming a DIjob in studio dont remove its module from (#2057)
the codeMaster.
2018-03-08 19:06:17 +08:00
zwxue
ef225da11f fix(TUP-19679):routines with wrong groupId (#2056) 2018-03-08 19:00:21 +08:00
nrousseau
f9be88b165 fix(TUP-19687) fix import issue (#2055)
The generation of pom was done 2 times during the process (migration
task + task at the end of import.
Disable the generation of pom here to have it only at the end of the
migration only. (means enable it only during the logon project)
2018-03-08 19:00:04 +08:00
SunChaoqun
b0246146fb TESB-20453:Changes for Single Maven Build: Routes (#2054) 2018-03-08 15:55:28 +08:00
zwxue
507d646fa0 fix(TUP-19695): update code change. (#2050) 2018-03-08 15:22:56 +08:00
Jane Ding
31a4b21a46 fix(TUP-19695)run task failed with error :Error: Could not find or load (#2048)
main class commonpro.tjava_0_1.tjava
https://jira.talendforge.org/browse/TUP-19695
2018-03-08 15:22:22 +08:00
zwxue
9fa336436f fix(TUP-19452):Add sync all poms function. (#2040) 2018-03-08 15:21:26 +08:00
apoltavtsev
7942645db9 TESB-20833 Disable maven offline for OSGi bundles 2018-03-06 20:07:54 +03:00
Mike Yan
811346e69e TESB-21489: Avoid to generate code in JobJavaScriptOSGIForESBManager (#2037) 2018-03-06 19:07:17 +08:00
Mike Yan
724cd4c744 TESB-21445 NPE error when request a service with saml (#2034)
Merged as the master PR has been reviewed by @zwxue.
2018-03-05 17:44:00 +08:00
nrousseau
ac0cd8022c fix(TUP-19688) fix the old export job still used for mdm (#2030) 2018-03-05 16:52:15 +08:00
nrousseau
066edee112 fix(TUP-19666) fix problem of switch branch for codegen
Remvoe the login task to execute the code when login the project
2018-03-04 21:22:02 +08:00
nrousseau
8bf9342961 fix(TUP-19666) fix problem of switch branch for codegen
Remvoe the login task to execute the code when login the project
2018-03-04 21:21:48 +08:00
GGu
754be93890 fix(TUP-19523): check dynamic metadata for jdbc (#2007) 2018-03-04 17:26:04 +08:00
nrousseau
a8bb0cce35 fix(TUP-19700) fix memory issue 2018-03-04 16:40:24 +08:00
nrousseau
462f443cce fix(TUP-18552) fix classpath adjuster and tRunjob 2018-03-04 16:39:41 +08:00
zwxue
eee2f2c52c fix(TUP-19635):Project setting ->Maven->project default xml content is (#2025)
null.
2018-03-02 11:58:37 +08:00
Mike Yan
d1430ccc38 TESB-20833: Change maven to online when build OSGi type (#2023)
I merged it as it will only impact OSGi type export.
2018-03-01 18:58:34 +08:00
zwxue
26126638a3 fix(TUP-19534):log4j level does not work as expected while building (#2021)
standard job.
2018-03-01 17:23:47 +08:00
zwxue
9fd4279045 fix(TUP-19535):Always run job fail which use a trunjob. (#2017) 2018-03-01 15:35:52 +08:00
zwxue
63efd72109 fix(TUP-19595):generate job failed with Job compile errors. (#2011) 2018-02-28 16:54:34 +08:00
Jenkins Continuous Build server
0810b915ef Set version to 7.0.1 EP2 2018-02-27 17:05:08 +01:00
150 changed files with 432 additions and 372 deletions

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.abstractmap.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.alfrescooutput.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.business.diagram.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.codegen.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.components.exchange.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.core.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.dbmap.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.documentation.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.fileoutputxml.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.gefabstractmap.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.mapper.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.maven.job.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.rowgenerator.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.runprocess.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.scd.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.webservice.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.xmlmap.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.expressionbuilder.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.presentation.onboarding.resource.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.presentation.onboarding.resource.tos.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.ftp.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.json.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.nl</artifactId>

View File

@@ -940,4 +940,3 @@ ImportProjectAction.messageDialogContent.projectImportedFinish=Project has been
MavenGroupIdProjectSettingPage.groupIdLabel=Base GroupID:
MavenGroupIdProjectSettingPage.appendFolderLabel=Append folder name to GroupID
MavenGroupIdProjectSettingPage.groupIdErrMsg=Value is invalid.
MavenGroupIdProjectSettingPage.pressOKMsg=Restart studio to apply changes.

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.view.di.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.sbi.engines.client.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.spagic.engines.client.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.sqlbuilder.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.business.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.rcp.branding.tos.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.rcp.branding.tos.test.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.sbi.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.spagic.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.tos.components.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.tos.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.tos.libraries.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.abstractmap</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.alfrescooutput</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.business.diagram</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.codegen</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.components.exchange</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.components.libs</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.components.localprovider</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.core.generic</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.core</artifactId>

View File

@@ -96,6 +96,7 @@ import org.talend.designer.core.ui.views.problems.Problems;
import org.talend.designer.core.ui.views.properties.ComponentSettings;
import org.talend.designer.core.ui.views.properties.ComponentSettingsView;
import org.talend.designer.core.utils.JavaProcessUtil;
import org.talend.designer.core.utils.UnifiedComponentUtil;
import org.talend.designer.runprocess.ProcessorException;
import org.talend.designer.runprocess.ProcessorUtilities;
import org.talend.repository.ProjectManager;
@@ -842,4 +843,12 @@ public class DesignerCoreService implements IDesignerCoreService {
preferenceStore.setValue(ITalendCorePrefConstants.PERFORMANCE_TAC_READ_TIMEOUT, timeout);
}
}
public boolean isDelegateNode(INode node) {
if (node instanceof Node) {
Node n = (Node) node;
return UnifiedComponentUtil.isDelegateComponent(n.getDelegateComponent());
}
return false;
}
}

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.dbmap</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.documentation</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.filemultischemas</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.fileoutputxml</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.gefabstractmap</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.mapper.advanced</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.mapper</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.maven.job</artifactId>

View File

@@ -14,6 +14,7 @@
<outputDirectory>${file.separator}</outputDirectory>
<includes>
<include>${talend.job.path}/**</include>
<include>__tdm/**</include>
</includes>
</fileSet>
<fileSet>
@@ -37,6 +38,13 @@
<include>**</include>
</includes>
</fileSet>
<fileSet>
<directory>${current.resources.dir}</directory>
<outputDirectory>${file.separator}</outputDirectory>
<includes>
<include>${talend.job.path}/**</include>
</includes>
</fileSet>
</fileSets>
<dependencySets>
<!-- for all jobs -->

View File

@@ -16,6 +16,7 @@
<outputDirectory>${file.separator}</outputDirectory>
<includes>
<include>${talend.job.path}/**</include>
<include>__tdm/**</include>
</includes>
</fileSet>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.publish.core</artifactId>

View File

@@ -110,34 +110,35 @@ public abstract class AbstractPublishJobAction implements IRunnableWithProgress
private void exportJobForOSGI(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
File tmpJob = null;
final ProcessItem processItem = (ProcessItem) node.getObject().getProperty().getItem();
try {
tmpJob = File.createTempFile("job", ".jar", null);
jobScriptsManager = JobScriptsManagerFactory.createManagerInstance(
JobScriptsManagerFactory.getDefaultExportChoiceMap(), processItem.getProcess().getDefaultContext(),
JobScriptsManager.LAUNCHER_ALL, IProcessor.NO_STATISTICS, IProcessor.NO_TRACES, JobExportType.OSGI);
// generate
jobScriptsManager.setDestinationPath(tmpJob.getAbsolutePath());
JobExportAction action = new JobExportAction(Collections.singletonList(node), jobVersion, bundleVersion,
jobScriptsManager, System.getProperty("java.io.tmpdir"));
tmpJob = File.createTempFile("item", ".jar", null);
action.run(monitor);
if (!action.isBuildSuccessful()) {
return;
// TDI-32861, because for publish job, so means, must be binaries
exportChoiceMap.put(ExportChoice.binaries, true);
exportChoiceMap.put(ExportChoice.includeLibs, true);
ProcessItem processItem = (ProcessItem) node.getObject().getProperty().getItem();
String contextName = (String) exportChoiceMap.get(ExportChoice.contextName);
if (contextName == null) {
contextName = processItem.getProcess().getDefaultContext();
}
BuildJobManager.getInstance().buildJob(tmpJob.getAbsolutePath(), processItem, jobVersion, contextName,
exportChoiceMap, exportType, monitor);
if (GlobalServiceRegister.getDefault().isServiceRegistered(IRunProcessService.class)) {
IRunProcessService service = (IRunProcessService) GlobalServiceRegister.getDefault().getService(
IRunProcessService.class);
boolean hasError = service.checkExportProcess(new StructuredSelection(node), true);
if (hasError) {
return;
}
}
monitor.beginTask("Deploy to Artifact Repository....", IProgressMonitor.UNKNOWN);
FeaturesModel featuresModel = getFeatureModel(tmpJob);
// [TESB-12036] add talend-data-mapper feature
NodeType tHMapNode = EmfModelUtils.getComponentByName(processItem, THMAP_COMPONENT_NAME);
if (tHMapNode != null) {
featuresModel.addFeature(new FeatureModel(FeaturesModel.TALEND_DATA_MAPPER_FEATURE_NAME));
}
processModules(featuresModel, ((JobJavaScriptOSGIForESBManager) jobScriptsManager).getExcludedModuleNeededs());
process(processItem, featuresModel, monitor);
} catch (IOException e) {
} catch (InterruptedException e) {
throw e;
} catch (Exception e) {
throw new InvocationTargetException(e);
} finally {
if (tmpJob != null && tmpJob.exists()) {

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.rowgenerator</artifactId>

View File

@@ -135,16 +135,6 @@
name="RunProcess">
</provider>
</extension>
<extension
point="org.talend.core.repository.login.task">
<loginTask
class="org.talend.designer.runprocess.maven.CleanMavenFilesLoginTask">
</loginTask>
<loginTask
class="org.talend.designer.runprocess.maven.MavenPomInstallLoginTask"
priority="lowest">
</loginTask>
</extension>
<extension
point="org.talend.repository.projectsetting_page">
<page

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.runprocess</artifactId>

View File

@@ -18,6 +18,7 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
@@ -30,6 +31,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jdt.core.IJavaProject;
@@ -53,6 +55,7 @@ import org.talend.core.model.process.IProcess;
import org.talend.core.model.process.IProcess2;
import org.talend.core.model.process.ProcessUtils;
import org.talend.core.model.properties.ProcessItem;
import org.talend.core.model.properties.ProjectReference;
import org.talend.core.model.properties.Property;
import org.talend.core.model.properties.RoutineItem;
import org.talend.core.model.repository.ERepositoryObjectType;
@@ -79,6 +82,7 @@ import org.talend.designer.runprocess.spark.SparkJavaProcessor;
import org.talend.designer.runprocess.storm.StormJavaProcessor;
import org.talend.designer.runprocess.ui.views.ProcessView;
import org.talend.librariesmanager.model.ModulesNeededProvider;
import org.talend.repository.ProjectManager;
import org.talend.repository.RepositoryWorkUnit;
import org.talend.repository.constants.Log4jPrefsConstants;
import org.talend.repository.ui.utils.Log4jPrefsSettingManager;
@@ -168,7 +172,8 @@ public class DefaultRunProcessService implements IRunProcessService {
* boolean)
*/
@Override
public IProcessor createCodeProcessor(IProcess process, Property property, ECodeLanguage language, boolean filenameFromLabel) {
public IProcessor createCodeProcessor(IProcess process, Property property, ECodeLanguage language,
boolean filenameFromLabel) {
switch (language) {
case JAVA:
return createJavaProcessor(process, property, filenameFromLabel);
@@ -247,8 +252,13 @@ public class DefaultRunProcessService implements IRunProcessService {
}
}
} else {
boolean isImportedRoute = RepositorySeekerManager.getInstance().searchRepoViewNode(property.getId(), false) == null;
if (routeService != null && !isImportedRoute ) {
boolean isImportedRoute = false;
try {
isImportedRoute = RepositorySeekerManager.getInstance().searchRepoViewNode(property.getId(), false) == null;
} catch (Exception e) {
System.out.println("Could not find the RepoViewNode according to " + property.getId());
}
if (routeService != null && !isImportedRoute) {
return routeService.createJavaProcessor(process, property, filenameFromLabel, false);
}
}
@@ -691,4 +701,27 @@ public class DefaultRunProcessService implements IRunProcessService {
TalendJavaProjectManager.generatePom(processItem);
}
/*
* (non-Javadoc)
*
* @see org.talend.designer.runprocess.IRunProcessService#initializeRootPoms()
*/
@Override
public void initializeRootPoms() {
try {
AggregatorPomsHelper helper = new AggregatorPomsHelper();
helper.installRootPom(true);
List<ProjectReference> references = ProjectManager.getInstance().getCurrentProject().getProjectReferenceList(true);
for (ProjectReference ref : references) {
AggregatorPomsHelper refHelper = new AggregatorPomsHelper(ref.getReferencedProject().getTechnicalLabel());
refHelper.installRootPom(true);
}
AggregatorPomsHelper.updateRefProjectModules(references);
AggregatorPomsHelper.updateCodeProjects(new NullProgressMonitor(), true);
} catch (Exception e) {
ExceptionHandler.process(e);
}
}
}

View File

@@ -271,7 +271,9 @@ public class JobErrorsChecker {
String errorMessage = null;
try {
HashSet<JobInfo> jobInfos = new HashSet<>();
jobInfos.add(LastGenerationInfo.getInstance().getLastMainJob());
if (LastGenerationInfo.getInstance().getLastMainJob() != null) {
jobInfos.add(LastGenerationInfo.getInstance().getLastMainJob());
}
for (JobInfo jobInfo : jobInfos) {
if (jobInfo.isTestContainer()) {
continue;

View File

@@ -72,6 +72,7 @@ import org.talend.designer.core.ui.editor.subjobcontainer.sparkstreaming.SparkSt
import org.talend.designer.core.utils.ConnectionUtil;
import org.talend.designer.core.utils.ParallelExecutionUtils;
import org.talend.designer.maven.tools.BuildCacheManager;
import org.talend.designer.maven.utils.PomUtil;
import org.talend.designer.runprocess.ProcessMessage.MsgType;
import org.talend.designer.runprocess.i18n.Messages;
import org.talend.designer.runprocess.jmx.JMXPerformanceChangeListener;
@@ -656,6 +657,7 @@ public class RunProcessContext {
kill();
}
} finally {
PomUtil.restorePomFile(processor.getTalendJavaProject());
// progressMonitor.done();
refreshUiAndWait[0] = false;
}

View File

@@ -444,4 +444,12 @@ public class RunProcessService implements IRunProcessService {
delegateService.generateJobPom(processItem);
}
/* (non-Javadoc)
* @see org.talend.designer.runprocess.IRunProcessService#initializeRootPoms()
*/
@Override
public void initializeRootPoms() {
delegateService.initializeRootPoms();
}
}

View File

@@ -1408,7 +1408,12 @@ public class JavaProcessor extends AbstractJavaProcessor implements IJavaBreakpo
@Override
public Set<ModuleNeeded> getNeededModules() {
Set<ModuleNeeded> neededLibraries = JavaProcessorUtilities.getNeededModulesForProcess(process);
return getNeededModules(true);
}
@Override
public Set<ModuleNeeded> getNeededModules(boolean withChildrenJobs) {
Set<ModuleNeeded> neededLibraries = JavaProcessorUtilities.getNeededModulesForProcess(process, withChildrenJobs);
boolean isLog4jEnabled = Boolean.parseBoolean(ElementParameterParser.getValue(process, "__LOG4J_ACTIVATE__")); //$NON-NLS-1$
if (isLog4jEnabled) {
JavaProcessorUtilities.addLog4jToModuleList(neededLibraries);

View File

@@ -71,6 +71,8 @@ import org.talend.designer.core.model.utils.emf.talendfile.ProcessType;
import org.talend.designer.core.ui.editor.process.Process;
import org.talend.designer.core.utils.JavaProcessUtil;
import org.talend.designer.maven.utils.PomUtil;
import org.talend.designer.runprocess.ClasspathAdjusterProvider;
import org.talend.designer.runprocess.IClasspathAdjuster;
import org.talend.designer.runprocess.IRunProcessService;
import org.talend.designer.runprocess.ProcessorException;
import org.talend.designer.runprocess.ProcessorUtilities;
@@ -140,8 +142,12 @@ public class JavaProcessorUtilities {
libNames.addAll(PomUtil.getCodesExportJars(process));
return libNames;
}
public static Set<ModuleNeeded> getNeededModulesForProcess(IProcess process) {
return getNeededModulesForProcess(process, true);
}
public static Set<ModuleNeeded> getNeededModulesForProcess(IProcess process, boolean withChildrens) {
Set<ModuleNeeded> neededLibraries = new TreeSet<ModuleNeeded>(new Comparator<ModuleNeeded>() {
@Override
@@ -150,13 +156,29 @@ public class JavaProcessorUtilities {
}
});
Set<ModuleNeeded> neededModules = LastGenerationInfo.getInstance().getModulesNeededWithSubjobPerJob(process.getId(),
Set<ModuleNeeded> neededModules;
if (withChildrens) {
neededModules = LastGenerationInfo.getInstance().getModulesNeededWithSubjobPerJob(process.getId(),
process.getVersion());
} else {
neededModules = LastGenerationInfo.getInstance().getModulesNeededPerJob(process.getId(),
process.getVersion());
Set<ModuleNeeded> neededModulesWithSubjobs = LastGenerationInfo.getInstance().getModulesNeededWithSubjobPerJob(process.getId(),
process.getVersion());
Iterator<ModuleNeeded> it = neededModules.iterator();
while(it.hasNext()) {
ModuleNeeded module = it.next();
if (!neededModulesWithSubjobs.contains(module)) {
// in case the classpath adjuster removed dependencies (cf use in ProcessorUtilities)
it.remove();
}
}
}
neededLibraries.addAll(neededModules);
if (process == null || !(process instanceof IProcess2)) {
if (neededLibraries.isEmpty() && process != null) {
neededLibraries = process.getNeededModules(true);
neededLibraries = process.getNeededModules(withChildrens);
if (neededLibraries == null) {
neededLibraries = new HashSet<ModuleNeeded>();
// for (ModuleNeeded moduleNeeded : ModulesNeededProvider.getModulesNeeded()) {
@@ -172,7 +194,16 @@ public class JavaProcessorUtilities {
}
Property property = ((IProcess2) process).getProperty();
if (neededLibraries.isEmpty()) {
neededLibraries = process.getNeededModules(true);
neededLibraries = process.getNeededModules(withChildrens);
// not generating, so will run classpath adjuster only on this job
List<IClasspathAdjuster> classPathAdjusters = ClasspathAdjusterProvider.getClasspathAdjuster();
for (IClasspathAdjuster adjuster : classPathAdjusters) {
adjuster.initialize();
adjuster.collectInfo(process, neededLibraries);
neededLibraries = adjuster.adjustClassPath(process, neededLibraries);
}
if (neededLibraries == null) {
neededLibraries = new HashSet<ModuleNeeded>();
for (ModuleNeeded moduleNeeded : ModulesNeededProvider.getModulesNeeded()) {
@@ -475,7 +506,7 @@ public class JavaProcessorUtilities {
});
}
} else {
} else if (!Boolean.getBoolean("skip_missing_jars")) {
throw new ProcessorException(missingJars);
}

View File

@@ -12,19 +12,7 @@
// ============================================================================
package org.talend.designer.runprocess.java;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.CLASSPATH_FILE_NAME;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_AGGREGATORS;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_BEANS;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_CODES;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_JOBS;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_PIGUDFS;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_PROCESS;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_PROCESS_MR;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_PROCESS_ROUTES;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_PROCESS_SERVICES;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_PROCESS_STORM;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.DIR_ROUTINES;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.PROJECT_FILE_NAME;
import static org.talend.designer.maven.model.TalendJavaProjectConstants.*;
import java.io.File;
import java.util.ArrayList;
@@ -73,9 +61,9 @@ import org.talend.core.runtime.process.ITalendProcessJavaProject;
import org.talend.core.runtime.process.LastGenerationInfo;
import org.talend.core.ui.ITestContainerProviderService;
import org.talend.designer.core.IDesignerCoreService;
import org.talend.designer.maven.model.TalendJavaProjectConstants;
import org.talend.designer.maven.model.TalendMavenConstants;
import org.talend.designer.maven.tools.AggregatorPomsHelper;
import org.talend.designer.maven.tools.BuildCacheManager;
import org.talend.designer.maven.tools.MavenPomSynchronizer;
import org.talend.designer.maven.tools.creator.CreateMavenCodeProject;
import org.talend.designer.maven.utils.MavenProjectUtils;
@@ -111,14 +99,14 @@ public class TalendJavaProjectManager {
// create poms folder.
IFolder poms = createFolderIfNotExist(helper.getProjectPomsFolder(), monitor);
// deployments
if (PluginChecker.isTIS()) {
IFolder aggregators = createFolderIfNotExist(poms.getFolder(DIR_AGGREGATORS), monitor);
IFile ciPomFile = aggregators.getFile(TalendJavaProjectConstants.FILE_POM_CI_BUILDER);
if (!ciPomFile.exists()) {
helper.createCIPom(ciPomFile, monitor);
}
}
// // deployments
// if (PluginChecker.isTIS()) {
// IFolder aggregators = createFolderIfNotExist(poms.getFolder(DIR_AGGREGATORS), monitor);
// IFile ciPomFile = aggregators.getFile(TalendJavaProjectConstants.FILE_POM_CI_BUILDER);
// if (!ciPomFile.exists()) {
// helper.createCIPom(ciPomFile, monitor);
// }
// }
// codes
IFolder code = createFolderIfNotExist(poms.getFolder(DIR_CODES), monitor);
@@ -185,6 +173,7 @@ public class TalendJavaProjectManager {
AggregatorPomsHelper.updateCodeProjectPom(monitor, type, codeProject.getFile(TalendMavenConstants.POM_FILE_NAME));
talendCodeJavaProject = new TalendProcessJavaProject(javaProject);
talendCodeJavaProject.cleanMavenFiles(monitor);
BuildCacheManager.getInstance().clearCache(type);
talendCodeJavaProjects.put(type, talendCodeJavaProject);
} catch (Exception e) {
ExceptionHandler.process(e);
@@ -306,10 +295,13 @@ public class TalendJavaProjectManager {
while (iterator.hasNext()) {
String key = iterator.next();
ITalendProcessJavaProject project = talendJobJavaProjects.get(key);
IPath jobPath = ItemResourceUtil.getItemRelativePath(project.getPropery());
if (folderPath.isPrefixOf(jobPath)) {
project.getProject().delete(deleteContent, true, null);
iterator.remove();
Property property = project.getPropery();
if (property != null) {
IPath jobPath = ItemResourceUtil.getItemRelativePath(property);
if (folderPath.isPrefixOf(jobPath)) {
project.getProject().delete(deleteContent, true, null);
iterator.remove();
}
}
}
if (deleteContent) {
@@ -334,9 +326,20 @@ public class TalendJavaProjectManager {
for (IRepositoryViewObject object : allVersionObjects) {
String realVersion = object.getVersion();
Property property = object.getProperty();
IPath jobPath = DeploymentConfsUtils.getJobEclipseProjectPath(property, realVersion);
IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(jobPath.append(TalendMavenConstants.POM_FILE_NAME));
AggregatorPomsHelper.removeFromParentModules(file);
String currentName = property.getLabel();
try {
if (oldName != null) {
property.setLabel(oldName);
}
IPath jobPath = DeploymentConfsUtils.getJobEclipseProjectPath(property, realVersion);
IFile file = ResourcesPlugin.getWorkspace().getRoot()
.getFile(jobPath.append(TalendMavenConstants.POM_FILE_NAME));
AggregatorPomsHelper.removeFromParentModules(file);
} finally {
if (oldName != null) {
property.setLabel(currentName);
}
}
}
Set<String> removedVersions = new HashSet<>();
Iterator<String> iterator = talendJobJavaProjects.keySet().iterator();

View File

@@ -31,8 +31,12 @@ import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
import org.eclipse.jdt.core.IJavaProject;
import org.talend.commons.exception.ExceptionHandler;
import org.talend.commons.exception.PersistenceException;
import org.talend.commons.utils.generation.JavaUtils;
import org.talend.core.model.general.Project;
import org.talend.core.model.properties.Property;
import org.talend.core.model.repository.IRepositoryViewObject;
import org.talend.core.repository.model.ProxyRepositoryFactory;
import org.talend.core.runtime.process.ITalendProcessJavaProject;
import org.talend.core.runtime.process.TalendProcessArgumentConstant;
import org.talend.designer.maven.launch.MavenPomCommandLauncher;
@@ -40,6 +44,7 @@ import org.talend.designer.maven.model.MavenSystemFolders;
import org.talend.designer.maven.model.TalendMavenConstants;
import org.talend.designer.maven.tools.MavenPomSynchronizer;
import org.talend.designer.maven.utils.PomUtil;
import org.talend.repository.ProjectManager;
import org.talend.utils.io.FilesUtils;
/**
@@ -50,11 +55,15 @@ public class TalendProcessJavaProject implements ITalendProcessJavaProject {
private IJavaProject javaProject;
private Property property;
private final MavenPomSynchronizer synchronizer;
private boolean useTempPom;
private String projectTechName;
private String id;
private String version;
public TalendProcessJavaProject(IJavaProject javaProject) {
super();
@@ -65,12 +74,26 @@ public class TalendProcessJavaProject implements ITalendProcessJavaProject {
public TalendProcessJavaProject(IJavaProject javaProject, Property property) {
this(javaProject);
this.property = property;
this.id = property.getId();
this.version = property.getVersion();
projectTechName = ProjectManager.getInstance().getProject(property).getTechnicalLabel();
}
@Override
public Property getPropery() {
return property;
ProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();
IRepositoryViewObject object;
try {
Project project = ProjectManager.getInstance().getProjectFromProjectTechLabel(projectTechName);
object = factory.getSpecificVersion(project, id, version, true);
} catch (PersistenceException e) {
ExceptionHandler.process(e);
return null;
}
if (object == null) {
return null;
}
return object.getProperty();
}
@Override

View File

@@ -1,57 +0,0 @@
// ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.designer.runprocess.maven;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.talend.login.AbstractLoginTask;
/**
*
* DOC ggu class global comment. Detailled comment
*/
public class CleanMavenFilesLoginTask extends AbstractLoginTask implements IRunnableWithProgress {
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
// final IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
//
// @Override
// public void run(IProgressMonitor monitor) {
// try {
// if (GlobalServiceRegister.getDefault().isServiceRegistered(IRunProcessService.class)) {
// IRunProcessService service = (IRunProcessService) GlobalServiceRegister.getDefault().getService(
// IRunProcessService.class);
// ITalendProcessJavaProject talendProcessJavaProject = service.getTalendProcessJavaProject();
// if (talendProcessJavaProject != null) {
// talendProcessJavaProject.cleanMavenFiles(monitor);
// }
// }
// } catch (Exception e) {
// ExceptionHandler.process(e);
// }
// }
// };
//
// try {
// IWorkspace workspace = ResourcesPlugin.getWorkspace();
// workspace.run(runnable, workspace.getRoot(), IWorkspace.AVOID_UPDATE, monitor);
// } catch (CoreException e) {
// throw new InvocationTargetException(e);
// }
}
}

View File

@@ -253,6 +253,9 @@ public class MavenJavaProcessor extends JavaProcessor {
}
public void generatePom(int option) {
if (buildChildrenJobs != null) {
buildChildrenJobs.clear();
}
initJobClasspath();
try {
IMavenPomCreator createTemplatePom = createMavenPomCreator();
@@ -364,15 +367,7 @@ public class MavenJavaProcessor extends JavaProcessor {
buildCacheManager.buildAllSubjobMavenProjects();
if (CommonUIPlugin.isFullyHeadless()) {
AggregatorPomsHelper.buildAndInstallCodesProject(monitor, ERepositoryObjectType.ROUTINES, false);
if (ProcessUtils.isRequiredPigUDFs(null)) {
AggregatorPomsHelper.buildAndInstallCodesProject(monitor, ERepositoryObjectType.PIG_UDF, false);
}
if (ProcessUtils.isRequiredBeans(null)) {
AggregatorPomsHelper.buildAndInstallCodesProject(monitor, ERepositoryObjectType.valueOf("BEANS"), false); //$NON-NLS-1$
}
}
}
IFile jobJarFile = null;

View File

@@ -1,56 +0,0 @@
// ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.designer.runprocess.maven;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.talend.commons.exception.ExceptionHandler;
import org.talend.core.model.properties.ProjectReference;
import org.talend.designer.maven.tools.AggregatorPomsHelper;
import org.talend.login.AbstractLoginTask;
import org.talend.repository.ProjectManager;
/**
* created by ggu on 26 Mar 2015 Detailled comment
*
* install aggregator poms after all synchronize(codes file, java version settings) work done.
*/
public class MavenPomInstallLoginTask extends AbstractLoginTask implements IRunnableWithProgress {
@Override
public boolean isCommandlineTask() {
return true;
}
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
AggregatorPomsHelper helper = new AggregatorPomsHelper();
helper.installRootPom(true);
List<ProjectReference> references = ProjectManager.getInstance().getCurrentProject().getProjectReferenceList(true);
for (ProjectReference ref : references) {
AggregatorPomsHelper refHelper = new AggregatorPomsHelper(ref.getReferencedProject().getTechnicalLabel());
refHelper.installRootPom(true);
}
AggregatorPomsHelper.updateRefProjectModules(references);
AggregatorPomsHelper.updateCodeProjects(monitor);
} catch (Exception e) {
ExceptionHandler.process(e);
}
}
}

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.runtime.visualization.tools</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.runtime.visualization</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.scd</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.spss</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.tutorials</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.unifiedcomponent</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.webservice</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.xmlmap</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.expressionbuilder</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.asm</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.bonita</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.crm</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.css</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.custom</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.edifact</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.ehcache</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.excel</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.ftp</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.groovy</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.guava</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.hadoop.mapr.5.0.0</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.jax</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.jersey</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.jetty</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.json</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tdi-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1-EP2</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.microsoft</artifactId>

Some files were not shown because too many files have changed in this diff Show More