Compare commits

..

717 Commits

Author SHA1 Message Date
ycbai
9ced8f0f1b TDI-28601 : When drag tReplicate to job there is java.lang.NullPointerException
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113524 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-20 09:58:03 +00:00
ycbai
c8fc6015a0 TDI-28598 : R-click validation rules under db connection will throw error logs.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113521 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-20 09:24:58 +00:00
hcyi
8d31416607 bug TDI-28553 fixed : tHL7OutPut_error happen when open or add elements for tHL7OutPut, and elements will be disappear sometime .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113456 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-16 09:54:11 +00:00
wliu
2b4177287a fix bug TDI-28560 : avoid the NPE when the xml tree is empty
https://jira.talendforge.org/browse/TDI-28560

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113359 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-14 07:26:15 +00:00
hcyi
1ff6aec7f4 merge r113318 from trunk to branch 5.3
bug TDI-28520 fixed : XPath lost in the tFileInputXML .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113320 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-13 06:33:04 +00:00
bchen
6859959d72 Fix Work Item TDI-28064 : [MR] reuse Input for tSortRow to reduce one additional m/r job
https://jira.talendforge.org/browse/TDI-28064 
1. fixed the bug about Lookup and After_Run 
2. reuse Input for tSortRow to reduce one additional m/r job when the input is [tMRInput,tHDFSInput] 
merge r112403 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113285 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-10 11:26:07 +00:00
wchen
e93e573c62 bug TDI-28465 fixed: poor performance of studio
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113284 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-10 11:19:37 +00:00
ilazebny
49e5227bfa Update version to 5.3.2 in poms
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113276 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-10 10:15:29 +00:00
jyhu
eb824c8c7e Fix Bug TDI-28545 : tTeradataOutput drop table error.
https://jira.talendforge.org/browse/TDI-28545

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113264 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-10 08:21:03 +00:00
bchen
5fcfd98d40 Fix Bug TDI-24111 : Stats issue on an iterate link between a Collector and a tDepartitioner
https://jira.talendforge.org/browse/TDI-24111 
merge r113157 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113260 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-10 07:24:52 +00:00
jyhu
deb8ee5933 Fix Bug TDI-28515 : tVerticaOutput and tHSQLDbOutput have the same problem in TDI-28483.
https://jira.talendforge.org/browse/TDI-28515

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113259 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-10 07:14:51 +00:00
hcyi
132f27bccd merge r113198 from trunk to branch 5.3
bug TDI-28536 fixed : Studio throws NullPointerException when change the "die on error" option in tmap.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113205 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-09 09:32:41 +00:00
ldong
0f645548c0 bug TDI-28512 fixed:Trace debug row by row can not work for parallelized rows.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113203 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-09 09:31:43 +00:00
ldong
9ce0220f21 bug TDI-28512 fixed:Trace debug row by row can not work for parallelized rows.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113202 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-09 09:30:28 +00:00
wwang
9d60e5eda7 Fix Bug TDI-28463 : When choosing replace to replace the dynamic column in the table:"additional columns" in tDBOutput
https://jira.talendforge.org/browse/TDI-28463

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113193 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-09 08:42:30 +00:00
jyhu
eac9c051d4 Fix Bug TDI-28529 : tInformixOutput have a compile error.
https://jira.talendforge.org/browse/TDI-28529 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113130 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-08 08:42:32 +00:00
atelesh
10811fb005 TESB-12503 - DemoREST can not export with service locator when the studio path contains ()
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113125 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-08 08:26:22 +00:00
jyhu
66652eba42 Fix Bug TDI-24698 :tFilterRow doesn't work with long as in 4.x.
https://jira.talendforge.org/browse/TDI-24698 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113098 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-08 05:59:46 +00:00
jyhu
5aba3c7448 Fix Bug TDI-28481: Support Blob/Clob type in tTeradataOutput.
https://jira.talendforge.org/browse/TDI-28481

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113084 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-08 03:33:20 +00:00
wchen
c15c8ade4a bug TDI-28528 fixed: Convert to MR job: after convert to MR job , link between components lost
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113082 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-08 02:03:00 +00:00
ycbai
51ab43ae42 TDI-28505 : can not run job successfully after retrieve a MDM entity
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113047 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-07 10:03:08 +00:00
wwang
74dade8861 Fix Bug TDI-28402 : Impossible to delete a zip file after "OnComponentError" using tFileUnarchive
https://jira.talendforge.org/browse/TDI-28402

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113030 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-07 04:27:04 +00:00
wchen
fa1e0eedd2 bug TDI-28516 fixed: tMap_the window sway up and down when add link for them
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113008 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-06 10:01:14 +00:00
xqliu
8a97c7c478 Fix Bug TDQ-7376 : User tDqReportRun to run report depending on contextualized db connection, the context value of database field is not taken into account.
https://jira.talendforge.org/browse/TDQ-7376
force refresh the context view when generate a run report job

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@113004 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-06 09:51:50 +00:00
jyhu
470dc7fb42 Fix Bug TDI-24698 :tFilterRow doesn't work with long as in 4.x.
https://jira.talendforge.org/browse/TDI-24698 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112984 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-06 07:48:03 +00:00
jyhu
67310fd7b9 Fix Bug TDI-24698 :tFilterRow doesn't work with long as in 4.x.
https://jira.talendforge.org/browse/TDI-24698 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112975 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-06 06:11:22 +00:00
jjzhou
d36f450273 fix Bug TDI-28450: Update the CXF version in the DI components
https://jira.talendforge.org/browse/TDI-28450 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112944 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-03 10:05:27 +00:00
wwang
b2200108fb Fix Bug TDI-28470 : Dynamic schema NPE exception
https://jira.talendforge.org/browse/TDI-28470

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112932 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-03 09:15:58 +00:00
ldong
edcf1436f2 bug TDI-26294 fixed:Error when extract file when export job as Axis webservice and the checkbox "Extract the zip file" is defaultly selected.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112927 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-03 08:06:24 +00:00
wwang
08cb60840c Fix Bug TDI-28472 : Unable to generate code when two tFileInputMSDelimited components connect to tMap
https://jira.talendforge.org/browse/TDI-28472

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112926 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-03 07:59:27 +00:00
bchen
0766c2e48e Fix Bug TDI-28313 : Continue to finish issue TDI-27758
https://jira.talendforge.org/browse/TDI-28313
deal with char when is null
merge r112902 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112906 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-03 02:14:13 +00:00
bchen
0d4a4d51c9 Fix Bug TDI-28313 : Continue to finish issue TDI-27758
https://jira.talendforge.org/browse/TDI-28313 
fix bug 1 & 3 
merge r112771 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112893 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-02 09:48:42 +00:00
jzhao
33835fd55b Fixed Bug TDI-28483: Some tDBoutput produce the code for action on table when execution mode is parallel
https://jira.talendforge.org/browse/TDI-28483
Note:fixed 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112875 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-02 07:18:45 +00:00
ldong
7a3c6713c3 bug TDI-23826 reverted:revert for 5.3.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112859 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-02 02:31:15 +00:00
ldong
585c0325dc bug TDI-23826 fixed:DB2_after delete the table from SQLBuilder, the table icon without name still exist after refresh.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112855 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2014-01-02 02:21:37 +00:00
zwzhao
697895bb25 bug TDI-28478 fixed : Wrong warning message when import mulit-version item
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112842 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-31 09:06:13 +00:00
wchen
03aab14184 bug TDI-28475 fixed: tMap editordialog UI lookup improvements
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112833 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-31 08:12:50 +00:00
bchen
2624e739f3 Fix Bug TDI-28313 : Continue to finish issue TDI-27758
https://jira.talendforge.org/browse/TDI-28313
fix bug 1 & 3
merge r112771 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112822 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-31 07:13:27 +00:00
bchen
87d40aa533 Fix Bug TDI-27758 : tXXJSONXX components have some problems
https://jira.talendforge.org/browse/TDI-27758 
input data (123.099999999999994315658113919198513031005859375) and type is BigDecimal? 
tFileOutputJSON output: "bigDecim_in":123.099999999999994315658113919198513031005859375 
tWriteJSONFile output: "bigDecim_in":"123.1" 
merge r111493 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112818 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-31 06:57:42 +00:00
jzhao
86e090c2a7 Fixed Bug TDI-28469: for tWriteXMLField, when the child thread comes to an exception, the main thread will keep generating xml string which it should die on child error.
https://jira.talendforge.org/browse/TDI-28469 
Note:Fixed 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112805 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-31 05:52:12 +00:00
jzhao
07ed52f8c6 Fixed Bug TDI-28414: tWriteXMLField generates endless loop of threads and not breakable when this is an exception
https://jira.talendforge.org/browse/TDI-28414 
Note:1.Fixed queue_<%=cid%> is incorrect in end and finally part 
2.Fixed Branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112798 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-31 05:36:43 +00:00
zwzhao
e1011b3977 bug TDI-28478 fixed : Wrong warning message when import mulit-version item
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112792 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-31 02:37:01 +00:00
atelesh
5b7f06a5ff TESB-12434 - Deploying multiple REST services on ESB conductor with SAP component causes UnsatisfiedLinkError.: Backport 5.3.2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112786 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-30 11:23:40 +00:00
rdubois
8e76d74b07 TDI-28450: revert r112736 --> Incomplete commit
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112785 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-30 11:04:07 +00:00
jjzhou
c9e2d5271c fix Bug TDI-28451: Revert code
https://jira.talendforge.org/browse/TDI-28451 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112762 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-30 09:26:15 +00:00
hcyi
41a9369e16 merge r112733 from trunk to branch 5.3
bug TDI-28473 fixed : tXMLMap:can't import output rows from repository(metadata created from File xml->Output XML) .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112746 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-30 06:50:40 +00:00
jzhao
b98e8e1891 Fixed Bug TDI-27307: Method exceeding 65535 bytes in when using tfileinputxml in joblet
https://jira.talendforge.org/browse/TDI-27307
Note:Fixed branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112740 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-30 06:31:56 +00:00
jyhu
144c01fc84 Fix Bug TDI-28449 : tTeradataOuput reports error when mapping db type BigInt and number type as long in JDBC batch.
https://jira.talendforge.org/browse/TDI-28449

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112738 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-30 06:24:05 +00:00
jjzhou
f4dbed6a4f fix Bug TDI-28450: Update the CXF version in the DI components
https://jira.talendforge.org/browse/TDI-28450 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112736 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-30 06:19:54 +00:00
jzhao
968946e2b4 Fixed Bug TDI-26843: Some components include System.exit(int) code
https://jira.talendforge.org/browse/TDI-26843
Note:fixed 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112705 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-30 02:29:26 +00:00
hfchang
b5c00c9f95 bug TDI-24402 fixed--Revert Previous commit.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112680 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-27 08:09:28 +00:00
jjzhou
88e952d92f fix Bug TDI-28381: Problem with tPaloInputMulti
https://jira.talendforge.org/browse/TDI-28381 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112652 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-27 03:42:29 +00:00
wchen
5267310b8d bug TDI-28468 fixed: Can't open one job after import to 5.4.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112629 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-26 09:56:32 +00:00
jjzhou
91c25a0c8e Fix Bug TDI-28398 : the generated node:tHashInput should set the checkbox:"release_cache" to true.
https://jira.talendforge.org/browse/TDI-28398

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112614 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-26 03:43:19 +00:00
hfchang
ca952b7ef1 bug TDI-24402 fixed : Guess schema of tOracleInput does not work well
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112595 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-25 09:23:10 +00:00
jjzhou
346340c1aa fix Bug TDI-28451: "Absolute value" option can not be shown in the CONDITIONS table of tFilterRow
https://jira.talendforge.org/browse/TDI-28451

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112578 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-25 05:28:49 +00:00
wchen
64390a18f6 bug TDI-20141 fixed: Right-clicking within a Document in tXMLMap is not user friendly
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112570 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-25 03:46:03 +00:00
hcyi
953e259d22 merge r112557 from trunk to branch 5.3
bug TDI-28446 fixed : Cannot guess schema from Sqlite table .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112559 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-24 10:29:19 +00:00
jjzhou
74f74a885e fix Bug TDI-28394: revert tSAPConnection ,tSAPInput,tSAPOutput code ,and only fix tSAPIDocOutput code for this issue.
https://jira.talendforge.org/browse/TDI-28394 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112553 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-24 09:58:14 +00:00
ldong
59d2f1104b bug TDI-24863 fixed:After change the name of job, still can't run.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112552 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-24 09:58:03 +00:00
bchen
b517d2a175 Fix Bug TDI-28434 : Can't use 2 tFileInputMSPositional
https://jira.talendforge.org/browse/TDI-28434 
merge r112508 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112543 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-24 09:39:12 +00:00
jzhao
acd7ec3ac9 Fixed TDI-28426: tDB2SCD does not use DB-Schema from tDB2Connection
https://jira.talendforge.org/browse/TDI-28426 
Note:Fixed branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112534 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-24 08:53:59 +00:00
zwzhao
1e30a1d3a9 bug TDI-28435 fixed : Generation fails after generate another project's job with the same name routines
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112531 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-24 07:29:08 +00:00
ycbai
d93d1517cf TDI-28031 : Hadoop configuration information is blank when creating a map/reduce job from a standard job
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112524 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-24 07:05:08 +00:00
zgao
2eb636e743 [TESB-12448] Class name of bean can not update automatically when update the name of bean after updating code of bean: Backport 5.3.2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112506 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-24 05:53:25 +00:00
gliu
2a86020878 [TESB-12449] Loop connection name for cLoop component is not right: Backport 5.3.2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112487 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-24 02:54:12 +00:00
jjzhou
f3fc1d09e2 fix Bug TDI-28462:tSOAP's default endpoint (http://www.deeptraining.com/webservices/weather.asmx) no longer available.
https://jira.talendforge.org/browse/TDI-28462 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112481 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-24 02:33:13 +00:00
ldong
2169d0875a bug TUP-904 fixed:The Spring Content of some route items are empty if import ESBDEMO project twice.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112443 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-23 09:17:16 +00:00
gliu
5edf5f0050 [TESB-12445] Remove "Find component in job " option: Backport 5.3.2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112427 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-23 06:09:33 +00:00
jzhao
17c84ef2a6 Fixed Bug TDI-28414: tWriteXMLField generates endless loop of threads and not breakable when this is an exception
https://jira.talendforge.org/browse/TDI-28414
Note:Fixed branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112397 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-20 11:19:17 +00:00
zwzhao
017dc09f93 bug TDI-28435 fixed : Generation fails after generate another project's job with the same name routines
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112386 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-20 09:42:21 +00:00
jzhao
c5bb672e81 Fixed Bug TDI-28400: "bulk update" in tSybaseBulkExec's Advanced setting has compile error
https://jira.talendforge.org/browse/TDI-28400 
Note:Fixed 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112351 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-20 04:03:39 +00:00
jzhao
6c267df2bb Fixed Bug TDI-27275: tMicrosoftMQOutput does not report error condition
https://jira.talendforge.org/browse/TDI-27275
Note:Fixed in 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112326 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-19 10:10:40 +00:00
jyhu
a9efec19b6 Fix Bug TDI-27981 : tNetezzaInput insert empty or duplicate rows when commit size is less than actual rows input.
https://jira.talendforge.org/browse/TDI-27981 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112320 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-19 09:30:58 +00:00
hfchang
f15d0fda5b bug TDI-26357 fixed :Title of Component Designer perspective is bad English
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112288 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-19 08:01:56 +00:00
jjzhou
24fe60c2b9 fix Bug TDI-28443: File handler not closed after using tInputJsonFile
https://jira.talendforge.org/browse/TDI-28443

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112267 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-19 06:09:05 +00:00
hfchang
78002a88d1 bug TDI-28247 fixed : TOS Start Screen does not render well.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112225 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-18 10:12:06 +00:00
wwang
36b3b40166 Fix Bug TDI-28322 : tFileOutputXML xml formatter merges multiple consecutives spaces
https://jira.talendforge.org/browse/TDI-28322

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112208 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-18 09:22:05 +00:00
hfchang
d39a56b0ad bug TDI-27853 fixed : Create file xml output if type path and file name manual can't get file schema.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112207 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-18 09:09:13 +00:00
zgao
ea13a14f3c [TESB-12409] EmfComponent & RouteComponentController used nonstandard java type com.sun.corba.se.spi.orb.StringPair.StringPair
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112183 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-18 06:39:40 +00:00
zgao
57c6f0eb39 [TESB-12409] EmfComponent & RouteComponentController used nonstandard java type com.sun.corba.se.spi.orb.StringPair.StringPair
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112176 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-18 06:20:10 +00:00
jzhao
70bbac254d Fixed Bug TDI-28336: Fix the bug in-TDI-28201 for other tDBBulkExec components
https://jira.talendforge.org/browse/TDI-28336
Note:tOracleBulkExec create temp file problem

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112158 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-18 05:14:50 +00:00
hcyi
dc9bec4610 bug TDI-27439 fixed : Lookup model not changed when key added .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112054 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-17 10:11:43 +00:00
wchen
807b51b432 TDI-7988 fixed: tFixedFlowInputs with Inline Table do not copy properly
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112052 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-17 09:46:39 +00:00
jjzhou
6a74487574 fix Bug TDI-28381: Problem with tPaloInputMulti
https://jira.talendforge.org/browse/TDI-28381 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@112014 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-16 09:54:21 +00:00
ldong
df5d263bd4 bug TDI-28187 fixed:tMap joined outputs in wrong order.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111989 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-13 10:21:32 +00:00
hwang
5129ea9d45 TDI-26593:Need to GUI team investigate why tteradataOutput component get error message.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111979 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-13 09:33:17 +00:00
jjzhou
b57e6838e4 fix Bug TDI-28394: tSAPInput and tSAPIDocOutput does not work in same job
https://jira.talendforge.org/browse/TDI-28394 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111972 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-13 08:38:44 +00:00
wliu
df50fe44de Fix Bug TDI-28390 : make sure the DataNode.getMetadataList() always get the flow metadata at 0 index.
https://jira.talendforge.org/browse/TDI-28390

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111966 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-13 08:30:53 +00:00
hwang
92511c9740 TDI-28370:Favorite Palette button is unchecked when a job is open
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111965 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-13 08:30:31 +00:00
bchen
ebeed546c9 Fix Bug TDI-28389 : Statistics for tUnite incorrect
https://jira.talendforge.org/browse/TDI-28389 
merge r111924 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111963 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-13 07:42:46 +00:00
bchen
2be2113881 Fix Bug TDI-28280 : TMomInputacts as iterate when set to flow
https://jira.talendforge.org/browse/TDI-28280
merge r111961 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111962 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-13 07:36:59 +00:00
hcyi
e856677491 bug TDI-28186 fixed : Cannot change main/lookup on tMap if output goes to another tMap with trigger .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111955 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-13 03:53:59 +00:00
jjzhou
e88ba34567 fix Bug TDI-27755: MQ component get french characters
https://jira.talendforge.org/browse/TDI-27755

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111913 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-12 07:05:36 +00:00
bchen
34f0de171b Fix Bug TDI-28280 : TMomInputacts as iterate when set to flow
https://jira.talendforge.org/browse/TDI-28280
merge r111904 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111908 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-12 03:38:54 +00:00
hcyi
8b912a6c59 bug TDI-28349 fixed : Import items is unable to detect invalid job if it is located in a subfolder (deep > 3) .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111896 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-11 10:35:55 +00:00
xqliu
eab8d8b92c Fix Bug TDQ-7376 : User tDqReportRun to run report depending on contextualized db connection, the context value of database field is not taken into account.
https://jira.talendforge.org/browse/TDQ-7376
backport from trunk to branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111886 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-11 09:24:02 +00:00
bchen
1f0368991a Fix Backlog Task TDI-28372 : fix for branch5.3 and branch5.2
https://jira.talendforge.org/browse/TDI-28372
merge r111331 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111880 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-11 08:59:02 +00:00
hcyi
e200339580 bug TDI-28349 fixed : Import items is unable to detect invalid job if it is located in a subfolder (deep > 3) .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111872 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-11 07:26:41 +00:00
bchen
e903925b16 Fix Backlog Task TDI-28372 : fix for branch5.3 and branch5.2
https://jira.talendforge.org/browse/TDI-28372
merge r111331 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111845 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-10 10:45:11 +00:00
bchen
d3ae3d09cb Fix Backlog Task TDI-28372 : fix for branch5.3 and branch5.2
https://jira.talendforge.org/browse/TDI-28372
merge r111049 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111839 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-10 09:46:14 +00:00
hfchang
1c89078f08 bug TDI-28046 fixed : Syntax error in JSON connection wizard
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111815 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-10 08:26:57 +00:00
ldong
3bf0b1817b bug TDI-28332 fixed:Stats don't work on parallelized links.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111808 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-10 07:38:40 +00:00
jyhu
4e9e3aa670 Fix Bug TDI-28347 : tTeradataOuput fail to generate code when added additional columns .
https://jira.talendforge.org/browse/TDI-28347 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111762 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-10 02:28:26 +00:00
hwang
59e0d87b38 TDI-8455:Fail to generate code if change order of main and reject links from tFileInputDelimited
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111743 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-09 10:01:22 +00:00
jjzhou
c909491254 fix Bug TDI-27147: components FTP - local folder problem
https://jira.talendforge.org/browse/TDI-27147

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111740 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-09 05:32:08 +00:00
jjzhou
c4bfaea624 fix Bug TDI-27147: components FTP - local folder problem
https://jira.talendforge.org/browse/TDI-27147

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111731 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-06 08:41:37 +00:00
wwang
92c6617608 Fix Bug TDI-27565 : tSSH in a tParallelize bug
https://jira.talendforge.org/browse/TDI-27565

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111724 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-06 06:31:10 +00:00
wwang
b204a97dde Fix Bug TDI-27705 : tWriteJSONField skips randomly data after parallelized iterations
https://jira.talendforge.org/browse/TDI-27705

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111717 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-06 03:32:03 +00:00
jzhao
58282559f3 Fixed Bug TDI-28336: Fix the bug in TDI-28201 for other tDBBulkExec components
https://jira.talendforge.org/browse/TDI-28336
Note:1.Add support muilt thread of tmpTableName..
2.Remove useless code of tIngresBulkExec
3.Fixed tDB2BulkExec create tmp table generate incorrect SQL

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111706 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-05 02:50:34 +00:00
hwang
82fb5ab048 TDI-27680:Studio throws error when move mouse on expanded joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111695 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-04 08:58:10 +00:00
jyhu
312d5c3b1c Fix Bug TDI-28258 : Exception when export a job with tOracleSCD migrated from v4.2.3 .
https://jira.talendforge.org/browse/TDI-28258 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111669 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-03 10:11:40 +00:00
jjzhou
892b7e0ecf fix Work Item TDI-28170: the method: afterGenertorType() is only used in tJDBCInput and it is no used anymore after TDI-28068, let's remove it.
https://jira.talendforge.org/browse/TDI-28170

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111661 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-03 07:07:12 +00:00
jjzhou
7116dc9c3f fix Bug TDI-26732: tFileUnarchive error with big files
https://jira.talendforge.org/browse/TDI-26732

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111657 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-03 03:12:35 +00:00
jzhao
d5d93005c2 Fixed Bug TDI-28201: tGreenplumBulkExec component tries to create twice times same table name
https://jira.talendforge.org/browse/TDI-28201 
Note:Fixed 5.3 ,Revert TalendString.java fixed tGreenplumBulkExec

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111631 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-02 07:39:03 +00:00
jzhao
36f96b3d8e Fixed Bug TDI-28243: t*Ouput Components: NB_LINE_REJECTED returns 0 when there are rejected rows
https://jira.talendforge.org/browse/TDI-28243 
Note:Fixed 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111629 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-02 07:26:07 +00:00
jzhao
b0438b34e3 Fixed Bug TDI-28307: Not set the value for "NB_LINE" property in tMicrosoftCrmInput component
https://jira.talendforge.org/browse/TDI-28307

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111622 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-02 06:49:29 +00:00
bchen
f578e81eef Fix Bug TDI-27520 : tHashInput/Output is not Threadsafe
https://jira.talendforge.org/browse/TDI-27520 
merge r109888 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111615 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-12-02 03:01:36 +00:00
jjzhou
26dabc8443 fix Bug TDI-28254: tSybaseBulkExec CUSTOM Encoding not work
https://jira.talendforge.org/browse/TDI-28254

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111598 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-29 08:47:50 +00:00
nrousseau
679170a50e TUP-1013 : add eclipse.inf
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111590 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-29 01:29:16 +00:00
jzhao
8bf7b20e6d Fixed Bug TDI-27035: tFileList sorting always case-sensitive and files double-counted
https://jira.talendforge.org/browse/TDI-27035 
Note:Fixed 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111570 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-28 03:33:06 +00:00
jzhao
1739c1a1bd Fixed Bug TDI-27823: Some minor problem about tFileFetch
https://jira.talendforge.org/browse/TDI-27823
Note:Fixed branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111568 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-28 03:18:40 +00:00
wwang
7a467134eb Fix Bug TDI-28236 : Failed to generate code when we import a job and it cover the old job with the same name.
https://jira.talendforge.org/browse/TDI-28236

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111557 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-27 02:22:36 +00:00
jyhu
bd3d778df7 Fix Bug TDI-20789 : Can't have a tFileOutputExcel after a drag and drop from Metadata/File Excel .
https://jira.talendforge.org/browse/TDI-20789


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111501 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-26 09:30:35 +00:00
jyhu
533b9b03ac Fix Bug TDI-20789 : Can't have a tFileOutputExcel after a drag and drop from Metadata/File Excel .
https://jira.talendforge.org/browse/TDI-20789


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111496 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-26 08:18:37 +00:00
zwzhao
dbfdd0462b bug TDI-28108 fixed : Problem about create File Json
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111472 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-26 01:54:20 +00:00
zwzhao
02701a1167 bug TDI-28108 fixed : Problem about create File Json
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111444 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-25 11:27:16 +00:00
hcyi
be32e6eac8 bug TDI-28255 : Need backport on 5.3 .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111411 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-25 09:25:26 +00:00
rdubois
6e072d36c7 Change a note within the tOracleRow.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111403 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-25 08:38:26 +00:00
hfchang
8bbf5f6094 bug TDI-24731 fixed : English on Preferences > Import/Export page can be improved
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111393 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-25 07:07:40 +00:00
jjzhou
fd333f8500 fix Bug TDI-26671: If the column to normalize is empty, tNormalize replaces it with a null
https://jira.talendforge.org/browse/TDI-26671 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111336 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-22 09:47:51 +00:00
jyhu
0650b41b91 Fix Bug TDI-20789 : Can't have a tFileOutputExcel after a drag and drop from Metadata/File Excel .
https://jira.talendforge.org/browse/TDI-20789

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111320 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-22 07:47:57 +00:00
jzhao
fe1829206e Fixed Bug TDI-27246: tMsSqlOutputBulk does not include the header when Append is checked
https://jira.talendforge.org/browse/TDI-27246 
Note:Fixed 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111304 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-22 02:29:24 +00:00
jzhao
141113a3a8 Fixed Bug TDI-28005: JMSPriority does not work with tMomOutput and ActiveMQ
https://jira.talendforge.org/browse/TDI-28005 
Note:Fixed 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111267 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-21 07:50:39 +00:00
hwang
db8bc0107c TDI-28217:joblet lost content
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111256 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-21 06:07:17 +00:00
ldong
fc9b33624f bug TDI-28198 fixed:Job launches and runs even with compilation errors in child job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111236 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-21 03:42:53 +00:00
jyhu
b6e0a76541 Fix Bug TDI-28122:Bug in tJDBC* components when unchecking the checkbox for data alias
https://jira.talendforge.org/browse/TDI-28122

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111230 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-21 02:53:54 +00:00
hwang
09df7b6fd0 TDI-28184:If conditions not displayed in expanded joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111173 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-20 05:54:47 +00:00
jjzhou
ada539abbb fix Bug TDI-28159: Issue with Jasper Report Component
https://jira.talendforge.org/browse/TDI-28159

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111107 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-19 03:51:30 +00:00
ggu
d55e8a6b2a TDI-28195: fixed the problem for route without stats on branch 5.3.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111098 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-19 02:08:58 +00:00
rdubois
0ec8a3a3fe TDI-28045 fixed: Change the LONG_NAME for the tCloudStop.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111090 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-18 16:04:01 +00:00
nrousseau
5975aeeca1 merge r111038 from trunk to branch 5.3
TDI-27435 : change UNIQUE_NAME category to FLOW since now more kinds of row have UNIQUE_NAME


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111040 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-18 07:24:53 +00:00
jyhu
7c656c3d14 Fix Bug TDI-26958:tPostgresqlOutput: ErroCode in Reject Flow not affected.
https://jira.talendforge.org/browse/TDI-26958

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@111029 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-18 04:35:25 +00:00
jzhao
8cda2616dd Fixed Bug TDI-28104: Jobs like tMDMTriggerInput-->tExtractXX have compile error
https://jira.talendforge.org/browse/TDI-28104 
Note:Fixed 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110987 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-15 06:08:18 +00:00
jyhu
033c1ad0bd Fix Bug TDI-27046:For tTeradataOutput component nb_line always return -1.
https://jira.talendforge.org/browse/TDI-27046 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110973 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-15 01:51:24 +00:00
jzhao
237a979e55 Fixed Bug TDI-27838: tRunJob "Die on child error" doesn't work with parallel execution
https://jira.talendforge.org/browse/TDI-27838 
Note:fixed 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110931 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-14 08:30:57 +00:00
jjzhou
860a89dc39 fix Bug TDI-28068: tJDBCInput returns a null row when last field of row is null (with dynamic column)
https://jira.talendforge.org/browse/TDI-28068

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110915 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-14 06:28:07 +00:00
ldong
e12d1f1e18 bug TUP-930 fixed:please make the popup dialog at the front of all.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110901 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-14 03:23:06 +00:00
jzhao
4e36c8912a Fixed Bug TDI-28000: regression 5.3.1 on performance due to java.util.Scanner
https://jira.talendforge.org/browse/TDI-28000
Note:fix 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110899 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-14 03:17:35 +00:00
nrousseau
4fcf357a28 merge r110876 from trunk to branch 5.3
TDI-27435 / TDI-27983 : fix problem of duplicates or wrong unique name.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110886 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-14 01:13:00 +00:00
jyhu
4403b48949 Fix Bug TDI-27046:For tTeradataOutput component nb_line always return -1.
https://jira.talendforge.org/browse/TDI-27046 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110873 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-13 09:54:27 +00:00
jjzhou
4e45b057c3 fix Bug TDI-27789: nullable component error message
https://jira.talendforge.org/browse/TDI-27789 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110835 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-13 05:50:37 +00:00
nrousseau
d0bf29028c merge r110832 from trunk to branch 5.3
TDI-27881 : fix problem of connections with joblets after expand.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110833 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-13 04:56:51 +00:00
ggu
decc82bb41 TDI-28110: backport on branch 5.3
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110785 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-12 06:58:23 +00:00
hfchang
423bcbbbd5 bug TDI-27853 fixed : Create file xml output if type path and file name manual can't get file schema.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110776 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-12 03:42:05 +00:00
ggu
5b52f2b5b8 TDI-28105: backport on branch 5.3.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110757 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-11 10:02:14 +00:00
zwzhao
396a75fb47 bug TDI-26880 fixed : Getting NPE when i run the task created using jobscript
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110744 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-11 08:20:11 +00:00
hfchang
c56ae16bc8 bug TDI-26342 fixed : When update versions, "select all dependence" can not select the routine/the db connection which depend on the job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110724 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-11 06:21:39 +00:00
nrousseau
47679f5613 merge r110383 from trunk to branch 5.3
TUP-913 : fix some problems of memory... related to jobs / folders... and code cleanup for the isDeleted in the actions


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110712 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-11 02:54:28 +00:00
sizhaoliu
c5a2c24f46 TDQ-8238 Running tDQReportRun job against remote jobserver not working
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110707 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-08 14:09:43 +00:00
nrousseau
df6c9843fd merge r110669 from trunk to branch 5.3
TUP-1312 : add auto synchronization for beans, same as routines.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110671 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-08 04:23:51 +00:00
ldong
594df0be3e bug TDI-17181 fixed:in sqlbuilder after refresh table,the column in the db display is different with before.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110665 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-08 04:00:40 +00:00
jjzhou
67f5567932 fix Bug TDI-28021:Separator "|" no longer works for tLdapOutput in release 5.2.3 but was good in release 5.0.2
https://jira.talendforge.org/browse/TDI-28021 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110659 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-08 03:35:41 +00:00
plv
3fb11ab978 bug TDI-27983:tMap mappings lost (in some cases) after migration to 5.4
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110611 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-07 08:07:40 +00:00
ldong
3050f7151e bug TDI-27999 fixed:Commandline Logging error related to the resource talendExporter.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110567 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-06 10:24:47 +00:00
plv
318a87c1da bug TDI-27983:tMap mappings lost (in some cases) after migration to 5.4
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110563 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-06 09:37:58 +00:00
jzhao
429961a447 Fixed Bug TDI-27910: tFileInputProperties not close stream
https://jira.talendforge.org/browse/TDI-27910
Note:Fixed branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110557 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-06 08:49:02 +00:00
jjzhou
4d999086c2 fix Bug TDI-27993: tIngresBulkExec Auto Generated Filenames .sh and .sql files will be overwritten in a multiple thread live environment sometimes
https://jira.talendforge.org/browse/TDI-27993 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110548 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-06 06:38:05 +00:00
jzhao
6e2a8359f2 Fixed Work Item TDI-27574: Please remove the output main line of tXXOutputBulkExec
https://jira.talendforge.org/browse/TDI-27574
Note: remove output main line for tIngresOutputBulkExec/tOracleOutputBulkExec

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110539 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-06 03:45:53 +00:00
hwang
987c8b61c9 TDI-27951:If no INPUT and OUTPUT for joblet, it can't be supported the trace at all
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110532 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-06 02:10:05 +00:00
jjzhou
0fd98a1a8b fix Bug TDI-27744: tREST schema be changed by connecting it to other component,and also for some other components
https://jira.talendforge.org/browse/TDI-27744

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110506 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-05 09:18:20 +00:00
hcyi
a71492b0c6 bug TDI-27908 fixed : tRowGenerator forgets its settings .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110437 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-04 08:11:22 +00:00
wwang
bbd5cb1cf7 Fix Bug TDI-27366 : fix tXMLMap Compilation errors
https://jira.talendforge.org/browse/TDI-27366

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110421 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-04 04:26:30 +00:00
jyhu
f11f6956ee Fix Bug TDI-27810:dynamic schema and Access database.
https://jira.talendforge.org/browse/TDI-27810

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110405 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-04 02:28:40 +00:00
jzhao
52ea14785f Fixed TUJ For TDI-26670: tExtractDelimitedFields throws exception when field to split is null
https://jira.talendforge.org/browse/TDI-26670 
Note:Fixed tExtractXMLFields for TUJ down 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110379 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-01 08:39:19 +00:00
plv
7f490ed6db bug TDI-27707:undo function is not working
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110375 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-01 08:15:07 +00:00
jyhu
c98de97595 Fix Bug TDI-27204: Get error of "Unexpected message type: ReadyForQuery" in tVerticaOutput when use an existing connection component and "Action on data" is "Delete".
https://jira.talendforge.org/browse/TDI-27204


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110348 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-01 03:28:33 +00:00
plv
cf6c524f57 bug TDI-27707:undo function is not working
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110334 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-01 02:32:39 +00:00
jyhu
7b9a8b7dc2 Fix Bug TDI-27204: Get error of "Unexpected message type: ReadyForQuery" in tVerticaOutput when use an existing connection component and "Action on data" is "Delete".
https://jira.talendforge.org/browse/TDI-27204
fixed issue for 10000 rows delete hang. 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110331 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-11-01 01:36:33 +00:00
jjzhou
86508c434d fix Bug TDI-27744: tREST schema be changed by connecting it to other component,and also for some other components
https://jira.talendforge.org/browse/TDI-27744

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110292 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-31 08:11:18 +00:00
jjzhou
68e33016ce fix Bug TDI-27909: Talend component tSalesforceInput Bulk query let opened bulk job on Salesforce.com
https://jira.talendforge.org/browse/TDI-27909

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110272 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-31 02:25:38 +00:00
jzhao
3a82f17533 Fixed Bug TDI-26670: tExtractDelimitedFields throws exception when field to split is null
https://jira.talendforge.org/browse/TDI-26670 
Note:Merge to branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110254 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-30 10:47:35 +00:00
zwzhao
db752d2fde bug TDI-27736 fixed : studio has no response if browse an empty json file for creation
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110203 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-30 03:10:02 +00:00
jjzhou
e6a787d069 fix Bug TDI-27584: Change the default mode from "Use Commandline" to "Use Java API" for all the sqoop components
https://jira.talendforge.org/browse/TDI-27584

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110202 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-30 03:09:49 +00:00
ldong
1698c5c243 bug TDI-27660 fixed:Commandline fails to run the exportItems command on Ubuntu.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110111 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-29 02:19:57 +00:00
bchen
b1df0c6a4a Fix Bug TDI-27166 : SALESFORCE BULK API BUG (CONSUMES TOO MANY API CALLS) - SOLVED
https://jira.talendforge.org/browse/TDI-27166 
merge r110104 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110108 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-29 02:16:14 +00:00
hwang
ca91c1b27a TDI-27456:The joblet output row value will be rename to default after change the joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@110042 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-28 05:58:37 +00:00
jzhao
9b0b67efe5 Fixed Bug TDI-27527: tDenormalizeSortedRow does not properly handle Integers
https://jira.talendforge.org/browse/TDI-27527
Note:1.Fix optimize the code
2.Add support char type not nullable.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109995 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-25 08:24:33 +00:00
hwang
47893300f0 TDI-27648:Job Opens In Bottom Right Corner
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109984 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-25 05:38:18 +00:00
jyhu
09db8ad528 Fix Bug TDI-26705: Property name of ERROR_MESSAGE is inconsistent between displaying inside Outline and inside code .
https://jira.talendforge.org/browse/TDI-26705 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109981 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-25 04:01:27 +00:00
zwzhao
bce841fa40 bug TUP-1140 fixed : Cannot connect triggers in arbitrary order
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109979 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-25 03:54:39 +00:00
jyhu
715c9ecda5 Fix Bug TDI-27608: missing support for Dynamic data type in LDAP components .
https://jira.talendforge.org/browse/TDI-27608

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109929 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-24 09:38:39 +00:00
hcyi
ce15c832ba bug TDI-27568 fixed : HL7 xml tree are generated incorrectly .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109918 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-24 08:13:39 +00:00
jjzhou
1647ea03cd fix Bug TDI-26863: Syntax of generated LDIF file not valid with MS Active Directory.
https://jira.talendforge.org/browse/TDI-26863

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109910 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-24 07:01:43 +00:00
wwang
2ddc694763 Fix Feature TDI-26945 : add database support for hive components
https://jira.talendforge.org/browse/TDI-26945

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109903 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-24 05:35:06 +00:00
wchen
24586f133b bug TDI-22986 fixed: Routines:Use a routine in a job, after deleted the routine forever, re-open the job, can not detect the routine lost and get an error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109887 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-24 02:37:03 +00:00
ldong
26f44b9774 bug TDI-27207 fixed:Could not make column with tooltip 'Add new globalMap variable' narrower.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109886 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-24 02:20:30 +00:00
jzhao
9244cc0d78 Fixed Bug TDI-27527: tDenormalizeSortedRow does not properly handle Integers
https://jira.talendforge.org/browse/TDI-27527 
Note:merge to branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109844 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-23 08:21:49 +00:00
wchen
6bf07a751f bug TDI-27762 fixed: tXMLMap: Error message of "Multiple document type xxx"cannot disappear even if update schema
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109835 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-23 06:28:35 +00:00
hwang
5bc2db9cf9 TDI-27182:Studio throws an error when the first time create a routine from the welcome page.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109823 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-23 02:11:51 +00:00
jjzhou
6577706874 fix Bug TDI-27264: sqoop throw error when use java API on windons system
https://jira.talendforge.org/browse/TDI-27264

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109692 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-21 10:08:10 +00:00
jyhu
0389a1c5e3 Fix Work Item TDI-27694: tVerticaOutputBulkExec doesn't have the checkbox "Use an existing connection" .
https://jira.talendforge.org/browse/TDI-27694 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109661 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-21 06:56:12 +00:00
jzhao
d954acb226 Fixed Bug TDI-27198: tAggregateSortedRow does not support boolean or char in group by
https://jira.talendforge.org/browse/TDI-27198 
Note:Merge to 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109657 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-21 06:35:54 +00:00
zwzhao
2c3bf8f95a bug TDI-27525 fixed : Red cross on a Database Icon in the repository
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109647 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-21 02:29:02 +00:00
jjzhou
ee291dbe94 fix Bug TDI-27241: Java code won't compile with LDAP Schema of "Long" and "Not Nullable"
https://jira.talendforge.org/browse/TDI-27241

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109628 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-18 10:04:46 +00:00
wchen
46de87592a bug TDI-27768 fixed: BD:tPigMap:NPE when try to add expression for output
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109624 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-18 10:01:49 +00:00
jzhao
b469484489 Fixed Bug TDI-27112: tHiveInput don't support select cloumn when distribute is apache1.0
https://jira.talendforge.org/browse/TDI-27112
Note:Merge to branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109607 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-18 08:54:23 +00:00
sizhaoliu
78bccc337f merge r109597 from trunk to branch 5.3
TDQ-8142 save the routine item only if the dependency is modified.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109606 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-18 08:51:37 +00:00
sizhaoliu
4573bd3977 merge r109553 from trunk to branch 5.3
TDQ-8142 remove only the relationship for org.talend.dataquality.parser + avoid adding the link during export


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109605 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-18 08:51:10 +00:00
sizhaoliu
f59454ad5d merge r109551 from trunk to branch 5.3
TDQ-8142 add migration task to remove the relationship between the routine item and the dependency modules starting with "org.talend"


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109604 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-18 08:50:14 +00:00
plv
cacdec7d63 bug TDI-27277:Guess Schema issue with Redshift tRedshiftInput
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109602 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-18 08:46:40 +00:00
wchen
49b92e98b4 bug TDI-27768 fixed: BD:tPigMap:NPE when try to add expression for output
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109599 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-18 08:30:21 +00:00
plv
47d5c6e990 bug TDI-27277:Guess Schema issue with Redshift tRedshiftInput
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109583 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-18 05:27:17 +00:00
bchen
f670f94782 Fix Bug TDI-27704 : Loose meters informations when error
https://jira.talendforge.org/browse/TDI-27704
make sure run flowMeter process before subjob process to ensure the flowMeter data of current process can be recorded.
merge r109534 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109536 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-17 09:53:17 +00:00
zwzhao
b0e272f8c2 bug TDI-27525 fixed : Red cross on a Database Icon in the repository
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109531 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-17 09:12:47 +00:00
zwzhao
7634c2cb19 bug TDI-27525 fixed : Red cross on a Database Icon in the repository
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109519 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-17 07:34:54 +00:00
nrousseau
c043eaf013 merge r109495 from trunk to branch 5.3
TDI-27588 : fix a small problem with component unique name


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109496 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-17 02:47:37 +00:00
jjzhou
b8994d6634 fix Bug TDI-27581: Need to add two parameters to define memory parameters for HDP 1.2 and HDP 1.3
https://jira.talendforge.org/browse/TDI-27581

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109435 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-16 06:38:25 +00:00
nrousseau
3078a06461 merge r109431 from trunk to branch 5.3
TDI-27298 : fix problem with execution of jobs with ELT components


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109432 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-16 06:17:52 +00:00
wliu
70eeb4e43d Fix workitem TDI-27272 : replace the static value with the variable.
https://jira.talendforge.org/browse/TDI-27272

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109415 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-16 01:48:04 +00:00
nrousseau
57e14acbd2 merge r109370 from trunk to branch 5.3
TDI-27588 : remove some optimization done in the TDI-27266


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109373 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-15 08:14:44 +00:00
jyhu
c89a5685d6 Fix Bug TDI-27733: tLDAPInput could not get more than one column binary values from schema and no effective when use exsisting connection .
https://jira.talendforge.org/browse/TDI-27733

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109365 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-15 07:45:15 +00:00
hcyi
3960f4db81 bug TDI-27568 fixed : add HL7 Version for the tHL7Output repository .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109346 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-15 05:46:18 +00:00
bchen
3e04b4b039 Fix Bug TDI-27652 : SAP connection not released in case of a downstream component throws an exception
https://jira.talendforge.org/browse/TDI-27652
merge r109297 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109300 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-14 10:45:05 +00:00
jjzhou
e7b1c0fd28 fix Bug TDI-27640: tFileFetch HTTPS Redirection
https://jira.talendforge.org/browse/TDI-27640 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109295 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-14 10:38:00 +00:00
jyhu
c1e10cd30e Fix Bug TDI-27608: missing support for Dynamic data type in LDAP components .
https://jira.talendforge.org/browse/TDI-27608

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109289 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-14 10:31:18 +00:00
zwzhao
a9855f04e2 bug TDI-6613 fixed : tSalesforceOutput : Schema issue when switching Action.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109285 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-14 10:18:31 +00:00
jzhao
3782dff09c Fixed Bug TDI-27715: the default online wsdl is not valid anymore for all the tWebService components
https://jira.talendforge.org/browse/TDI-27715
Note:1.Change the default online wsdl of tWebService*
2.Modify TUJ

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109274 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-14 08:45:23 +00:00
wliu
44bb16adf9 Fix Bug TDI-27194 : complete the condition
https://jira.talendforge.org/browse/TDI-27194

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109253 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-14 04:05:32 +00:00
hcyi
0bc3a5e565 bug TDI-27568 fixed : xml tree in both tHL7Input and tHL7Output repository are generated incorrectly .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109222 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-12 10:17:36 +00:00
jzhao
e800d7ffec Fixed Bug TDI-27517: 65535 issue with many tMaps and tExtractDelimitedFields
https://jira.talendforge.org/browse/TDI-27517 
Note:Merge to 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109203 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-12 08:22:02 +00:00
zwzhao
269cca108f bug TUP-825 fixed : commonFilter is incorrectly installed permanently in the ProjectExplorer
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109129 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-11 07:17:02 +00:00
jjzhou
1c12ff5b62 fix Bug TDI-27654: Exception: java.lang.NoClassDefFoundError: org/jaxen/JaxenException on Talend Dataservice
https://jira.talendforge.org/browse/TDI-27654

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109076 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-10 09:58:54 +00:00
rdubois
a547f72182 TDI-27169 fixed: Add a variable in the tPivotToColumnsDelimited to count the number of lines written in the file.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@109040 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-09 14:08:33 +00:00
plv
1ea5b0983e bug TDI-26695:guess schema fail for derby client
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108955 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-08 08:31:54 +00:00
jjzhou
44ba2561ba fix Bug TDI-27592: Salesforce connection fails with Classloader Error
https://jira.talendforge.org/browse/TDI-27592

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108954 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-08 08:04:20 +00:00
jjzhou
12620d7fe0 fix Bug TDI-26863: Syntax of generated LDIF file not valid with MS Active Directory.
https://jira.talendforge.org/browse/TDI-26863

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108940 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-10-08 03:58:48 +00:00
zwzhao
9151ed67f9 bug TDI-6613 fixed : tSalesforceOutput : Schema issue when switching Action.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108823 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-30 10:08:59 +00:00
jyhu
e14330172e Fix Work Item TDI-27353: Check Use standard_conforming_string ON as default setting when connect to V9.X and file type is CSV on tPostgresXXBulkExec componnents .
https://jira.talendforge.org/browse/TDI-27353

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108764 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-30 02:48:19 +00:00
jzhao
cfb5fb68d3 Add TUJ For Bug TDI-27447: tPivotToColumnsDelimited doesn't close the BufferedWriter flow and also doesn't delete the empty file when checked the "Don't generate empty file"
https://jira.talendforge.org/browse/TDI-27447
Note: Remove useless stream close.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108731 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-29 09:23:51 +00:00
wliu
9dd710db15 Fix Bug TDI-26984 : recover the old behavior
https://jira.talendforge.org/browse/TDI-26984

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108715 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-29 08:11:21 +00:00
jyhu
fe8a80e4ac Fix Bug TDI-26822: tOracleOutput with Dynamic schema and reject rows crashes if all data rejected .
https://jira.talendforge.org/browse/TDI-26822 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108712 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-29 08:09:38 +00:00
jyhu
e60352d672 Fix Bug TDI-27204: Get error of "Unexpected message type: ReadyForQuery" in tVerticaOutput when use an existing connection component and "Action on data" is "Delete" .
https://jira.talendforge.org/browse/TDI-27204 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108693 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-29 06:56:45 +00:00
rdubois
a45b731b4e TDI-27335 fixed: tMOM components fixed when using a tMomConnection
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108644 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-27 13:23:37 +00:00
jzhao
ac34e67475 TDI-27447: tPivotToColumnsDelimited doesn't close the BufferedWriter flow and also doesn't delete the empty file when checked the "Don't generate empty file"
https://jira.talendforge.org/browse/TDI-27447
Note:1.Fixed tPivotToColumnsDelimited
2.tFileInputARFF and tFileInputLDIF close stream

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108621 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-26 09:46:56 +00:00
jyhu
9aae893730 Fix Bug TDI-27140: NumberFormatException when NLS is configured in French by using tOracleOutputBulkExec component .
https://jira.talendforge.org/browse/TDI-27140

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108559 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-25 09:29:02 +00:00
wliu
5ee38547a7 Fix Bug TDI-26984 : remove the new mode for tHL7Output
https://jira.talendforge.org/browse/TDI-26984

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108472 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-24 11:03:54 +00:00
hcyi
b390d784c6 merge r108422 from trunk to branch 5.3
bug TDI-26946 fixed : ELTHiveMap : HiveQL generation not refreshed if you delete an INPUT table .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108424 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-24 03:45:54 +00:00
nrousseau
73c1ba4e8c merge r108414 from trunk to branch 5.3
TDI-25871 : fix problem of wrong display of links, avoid to use xpath to get current path to link, but try to get from elements


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108417 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-24 03:14:44 +00:00
jyhu
663ebaeefa Fix Bug TDI-27425: The characters with accent can not be displayed by using ODBC connector.
https://jira.talendforge.org/browse/TDI-27425


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108365 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-23 08:56:58 +00:00
jzhao
6fd0387017 Fixed Bug TDI-27075: tFileInputJSON or tExtractJSONFields will run in Studio but fail if job is exported and run via command line
https://jira.talendforge.org/browse/TDI-27075

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108347 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-23 07:47:00 +00:00
hcyi
358cbb908e merge r108334 from trunk to branch 5.3
bug TDI-27090 modified : Wrong pattern used in TAC for the project creation . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108335 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-23 06:04:09 +00:00
nrousseau
b6bee45229 merge r108332 from trunk to branch 5.3
TDI-27249 : fix clean statistics for TOS


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108333 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-23 05:05:45 +00:00
nrousseau
35eca94250 merge r108316 from trunk to branch 5.3
TDI-27535 : fix problem of null connection name


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108318 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-22 11:03:33 +00:00
wliu
b475ad8d0d Fix Bug TDI-26984 : tHL7Output component Bug
https://jira.talendforge.org/browse/TDI-26984

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108306 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-22 09:47:01 +00:00
nrousseau
2a5c16a017 merge r108279 from trunk to branch 5.3
TDI-27364 : fix the version problem for psql for the version change to have the same as the component.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108281 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-22 06:36:29 +00:00
plv
e67290268d bug TDI-27384:TIS isn't automatic save job after changes in SQL memory though we have checked save job before execution
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108276 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-22 05:27:41 +00:00
nrousseau
fa54706af7 merge r108269 from trunk to branch 5.3
TDI-27350 : add missing break info for the migration


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108274 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-22 04:24:17 +00:00
plv
8fd6cb2104 bug TDI-27266:backport 5.3
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108232 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-18 10:41:28 +00:00
hwang
bf1e5cc409 TDI-27462:expanding Sub-jobs linked together: remove this link, or move it
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108211 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-18 09:21:59 +00:00
nrousseau
8079a69c24 merge r108174 from trunk to branch 5.3
TDI-27435 : Rename automatically some row link if some are already existing.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108175 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-18 02:19:23 +00:00
nrousseau
4b059e3c0d merge r108120 from trunk to branch 5.3
TDI-27350 : set correct case for the dbtypes when migrate to avoid warnings


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108131 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-17 07:25:02 +00:00
nrousseau
b1d86bd6f2 merge r108119 from trunk to branch 5.3
TDI-27485 : avoid an expand all when open the repository dialog


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108121 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-17 04:34:16 +00:00
wliu
9302172572 Fix Bug TDI-27273 : avoid the NPE when the variable value is null
https://jira.talendforge.org/browse/TDI-27273

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108070 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-16 04:51:08 +00:00
nrousseau
12d75e53bf merge r108063 from trunk to branch 5.3
TDI-27350 : set correct case for the dbtypes when migrate to avoid warnings


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108064 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-16 04:05:13 +00:00
jyhu
2444886d2c Fix Bug TDI-26987: File will be changed when copy from one table to another by use postgres DB.
https://jira.talendforge.org/browse/TDI-26987

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108036 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-14 10:54:08 +00:00
jyhu
39fc271ba1 Fix Bug TDI-26924: Mail cannot be processed correctly by using tFileInputMail.
https://jira.talendforge.org/browse/TDI-26924


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108033 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-14 08:45:41 +00:00
sizhaoliu
0a86d32fee TDQ-7731 fix the NCDFE on branch 5.3
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@108023 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-13 12:21:58 +00:00
bchen
b852e655d4 Fix Bug TDI-27303 : tSAPInput component to enable starting ftp and http based programs
https://jira.talendforge.org/browse/TDI-27303 
merge r107562 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107975 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-13 07:38:36 +00:00
nrousseau
1532e0e31c merge r107851 from trunk to branch 5.3
TDI-27438 : enhance the speed of resolution of routines for joblets


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107856 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-12 03:33:21 +00:00
wliu
93c6aa74d7 Fix Bug TDI-27273 : incorrect xml parameter processing with special charactors like: +
https://jira.talendforge.org/browse/TDI-27273

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107830 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-11 09:56:35 +00:00
wwang
2b01953149 Fix Bug TDI-27125 : fix the order issue for xml generated
https://jira.talendforge.org/browse/TDI-27125

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107808 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-11 08:16:43 +00:00
hcyi
118a623533 bug TDI-5898 fixed : GlobalMap set by tMap aren't display in completion .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107771 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-10 08:13:29 +00:00
hcyi
9da0dfa541 merge r107765 from trunk to branch 5.3
bug TDI-5898 fixed : GlobalMap set by tMap aren't display in completion .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107767 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-10 08:03:56 +00:00
hwang
c3bab4b5ce TDI-23013 :Undo of delete for links to joblet not correct when joblet expanded
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107747 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-10 05:24:27 +00:00
hwang
debcc83d63 TDI-27395:If a node have two input connections, one is merge, another is subjobok, then you delete the merge one, will get an NEP,and every time when you open the job, you will get he NEP
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107745 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-10 04:10:07 +00:00
fwang
a8025c581f bug TDI-27257 fixed:duplicate routine items display when "Setup routine dependencies"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107720 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-09 09:34:43 +00:00
wliu
25318c023e Fix workitem TDI-27272 : Using apache codec in commons-codec-1.7.jar to replace the bonita codec in the tBonitaInstantiateProcess for the mode:"HTTP Client"
https://jira.talendforge.org/browse/TDI-27272

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107713 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-09 08:46:23 +00:00
wliu
e1f3063f0b Fix workitem TDI-27272 : Using apache codec in commons-codec-1.7.jar to replace the bonita codec in the tBonitaInstantiateProcess for the mode:"HTTP Client"
https://jira.talendforge.org/browse/TDI-27272

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107710 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-09 08:24:39 +00:00
nrousseau
62df2525c8 merge r107683 from trunk to branch 5.3
TDI-26994 : improve the edition of tJava, use one ExecutionLimiter to avoid to call the generation too often.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107684 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-09 03:21:40 +00:00
hwang
9ad54b096d TDI-27032:Response to schema prompt when adding component to flow remembered
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107638 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-06 06:54:58 +00:00
wliu
17a5e88a24 Fix Bug TDI-27365 : tSAPInput_end.javajet doesn't generated code correctly
https://jira.talendforge.org/browse/TDI-27365

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107628 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-06 03:47:22 +00:00
hcyi
b3992c0a29 merge r107563 from trunk to branch 5.3
bug TDI-27090 fixed : Wrong pattern used in TAC for the project creation .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107565 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-05 06:40:12 +00:00
bchen
2249dc0b2b Fix Bug TDI-27166 : SALESFORCE BULK API BUG (CONSUMES TOO MANY API CALLS) - SOLVED
https://jira.talendforge.org/browse/TDI-27166 
merge r106997 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107515 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-04 08:08:23 +00:00
bchen
feaf3d9cd4 Fix Bug TDI-27261 : NPE when doing parallel lookups
https://jira.talendforge.org/browse/TDI-27261 
wrap global resource with synchronizedMap when there is a tParallelize 
merge r107496 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107504 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-04 07:01:49 +00:00
hcyi
0bace3f9e6 merge r107453 from trunk to branch 5.3
bug TDI-26953 modified : tMap drag-and-drop column names case-sensitive . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107454 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-03 07:08:04 +00:00
hcyi
b080a3f67f merge r107447 from trunk to branch 5.3
bug TDI-26860 fixed : tFileOutputMSXML didn't get the Related Column when using "import XML tree" from an XSD .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107448 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-03 06:07:32 +00:00
jjzhou
a1209b7fdd fix Bug TDI-27283: Please hide two properties on tLDAPRenameEntry when check Use an existing connection
https://jira.talendforge.org/browse/TDI-27283 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107382 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-09-02 03:00:23 +00:00
hcyi
fb46c02727 merge r107354 from trunk to branch 5.3
bug TDI-5839 fixed : Renaming variable in tMap doesn't affect Expression-Filter .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107355 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-30 09:34:56 +00:00
jyhu
0df8a9a7b3 Fix Bug TDI-27114: tCreatetable does not have the "schema" blank in basic settings.
https://jira.talendforge.org/browse/TDI-27114 
change the breaks and version for migration task and replace a disposable class. 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107338 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-30 07:02:41 +00:00
jyhu
6b912c24f4 Fix Bug TDI-27114: tCreatetable does not have the "schema" blank in basic settings.
https://jira.talendforge.org/browse/TDI-27114 
Add double Quote when schema_db is empty.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107324 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-30 04:29:50 +00:00
hwang
7669771d5a TDI-27032:Response to schema prompt when adding component to flow remembered
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107312 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-30 03:22:54 +00:00
nrousseau
b0b4315aab merge r107310 from trunk to branch 5.3
TDI-26994 : fix / improve again for the edition for the tJava


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107311 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-30 03:15:56 +00:00
plv
b6f53d0120 merge r107302 from trunk to branch 5.3
bug TDI-26547:Problems with update detection for tMap repository schemas


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107304 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-30 02:31:29 +00:00
jyhu
713fef287e Fix Bug TDI-27114: tCreatetable does not have the "schema" blank in basic settings.
https://jira.talendforge.org/browse/TDI-27114 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107278 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-29 11:18:32 +00:00
zwzhao
1fc1307eb6 bug TUP-866 fixed : Wrong javajet code in components causes no error message
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107273 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-29 07:12:34 +00:00
hwang
afbf7443ba TDI-27182:Studio throws an error when the first time create a routine from the welcome page.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107188 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-27 10:29:16 +00:00
fwang
65e0f0c01b bug TDI-27137 fixed:Function for "Guess Schema" can not be used for JavaDB Embeded Database.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107168 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-27 09:39:45 +00:00
hwang
a6ffa96a30 TDI-27173:Invisible Components in job design
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107127 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-27 02:20:20 +00:00
hcyi
4924d36567 merge r107105 from trunk to branch 5.3
bug TDI-26953 fixed : tMap drag-and-drop column names case-sensitive .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107108 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-26 10:44:14 +00:00
hwang
4954dc6f72 TDI-26496:There should be an error information when the input shema is different from the one in the joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107082 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-26 08:18:03 +00:00
wliu
b6083b0c52 Fix Bug TDI-27194 : tBonitaInstantiateProcess: switch from 'Java Client' to 'Http client' still export dependencies
https://jira.talendforge.org/browse/TDI-27194

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107078 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-26 07:27:43 +00:00
plv
6e59e06794 merge r107073 from trunk to branch 5.3
bug TDI-27223:MR Job:Detect dependenics: No response when click this option


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107075 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-26 06:32:30 +00:00
zwzhao
90f56e7f90 TDI-27052:Project can not be opened after migrate from 5.1.2 to 5.3.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107054 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-26 02:37:45 +00:00
zwzhao
f174f3288c bug TDI-26923 fixed : Shell "Update Detection" is activated when running the job after unchecking some columns of copybook schema in component view.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107040 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-23 10:37:50 +00:00
hcyi
8ff13b15b5 merge r107029 from trunk to branch 5.3
bug TDI-27091 modified : Schema type changes from Repository to Built-in after unchecking some columns in component view . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107031 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-23 10:23:37 +00:00
fwang
87eaff4d67 bug TDI-24379 fixed:Job which use routines when open,change the routines' name,the class name didn't change.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@107014 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-23 09:15:04 +00:00
zwzhao
c50f66561c bug TDI-26807 fixed : Cannot link two subjobs with 'On Subjob Ok' and 'On Subjob Error' on tRowGenerator and tFixedflowInput
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106984 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-23 05:55:50 +00:00
fwang
863bffac81 bug TDI-26719 fixed:New change for user component can not be push to Palette in time.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106877 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-21 09:47:54 +00:00
hwang
01980f3095 TDI-27173:Invisible Components in job design
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106866 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-21 08:02:00 +00:00
plv
b5f02580d9 merge r106853 from trunk to branch 5.3
bug TDI-26631:Dynamic parameter name should be selectable


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106856 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-21 07:24:35 +00:00
hwang
6f81556e4a TDI-27173:Invisible Components in job design
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106854 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-21 07:17:12 +00:00
jyhu
7c50c6ced3 Fix Bug TDI-26390: No way to set the additional parameters on t(DB)Connection .
https://jira.talendforge.org/browse/TDI-26390

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106797 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-20 05:51:56 +00:00
hwang
bd0f383ff0 TDI-27052:Project can not be opened after migrate from 5.1.2 to 5.3.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106781 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-20 01:48:10 +00:00
wchen
256fcf6f7b merge r106765 from trunk to branch 5.3
bug  TDI-26576 fixed: Can drop additional columns into linked tMap output with repository schema


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106767 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-19 09:47:20 +00:00
ycbai
609bdd5999 Added TDI-27148 : Need to review the speed of initialization of libaries
And revise TUP-931 : TDM install over previous version fails to clean up lib/java/index.xml 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106727 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-19 02:10:13 +00:00
hwang
8d3caaa412 TDI-27052:Project can not be opened after migrate from 5.1.2 to 5.3.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106704 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-16 09:53:19 +00:00
jyhu
1505c35333 Fix Backlog Task TDI-26955: Need to add the schema to the oracle output components in ORACLE RAC mode (other modes are ok).
https://jira.talendforge.org/browse/TDI-26955
Add the schema to tOracleSCDELT in ORACLE OCI mode
Add the schema to oracle components in ORACLE RAC mode

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106694 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-16 07:54:22 +00:00
ycbai
eb9d978e34 Added TDI-27148 : Need to review the speed of initialization of libaries
And revise TUP-931 : TDM install over previous version fails to clean up lib/java/index.xml 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106685 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-16 06:34:09 +00:00
nrousseau
897efd043a merge r106617 from trunk to branch 5.3
TUP-948 : fix problem of lock, where it will try to lock each opened job editor


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106618 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-15 04:08:26 +00:00
nrousseau
1f8b8c85ca merge r106602 from trunk to branch 5.3
TUP-949 : avoid to force to display the problem view if this one is not visible already.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106604 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-15 02:20:52 +00:00
plv
18e3747090 bug TDI-27091:Schema type changes from Repository to Built-in after unchecking some columns in component view.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106568 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-14 03:39:25 +00:00
jzhao
1afe84de93 Fixed Backlog Task TDI-26883: need component_group add a attribute to suport the excle's modification
https://jira.talendforge.org/browse/TDI-26883

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106556 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-14 02:54:48 +00:00
jzhao
013eb8d3f0 Fixed Bug TDI-26170: tHDFSPut component uses a deprecated library and produces warnings
https://jira.talendforge.org/browse/TDI-26170
Note:Revert the code

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106539 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-13 10:33:55 +00:00
ycbai
021889afd3 bug TDI-25482 fixed: HCatalog item and HDFS item cannot be exported.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106533 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-13 10:07:07 +00:00
jjzhou
3114d40c0c fix Bug TDI-26921: tLDAPRenameEntry component missing txt fields
https://jira.talendforge.org/browse/TDI-26921

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106428 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-09 01:16:40 +00:00
jjzhou
507439d785 fix Bug TDI-27076: tLDAPRenameEntry issue
https://jira.talendforge.org/browse/TDI-27076 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106424 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-08 09:53:36 +00:00
fwang
8f5d2c0d49 bug TDI-27021 fixed:"Add extension" button in exchange is activated without clicked on
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106387 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-07 08:38:16 +00:00
plv
2600486bbe merge r106382 from trunk to branch 5.3
bug TDI-26854:Oracle RAC Connection doesn't allow Schema entry


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106383 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-07 08:07:06 +00:00
nrousseau
6087a46523 merge r106380 from trunk to branch 5.3
TDI-27088 : fix some exception appeared in the logs.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106381 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-07 07:53:47 +00:00
hwang
0712a27213 TUP-934:Try to create route from welcome page, cannot switch to create route wizard
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106326 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-06 09:51:06 +00:00
plv
0d172c3035 merge r106311 from trunk to branch 5.3
bug TDI-26631:Dynamic parameter name should be selectable


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106312 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-06 07:55:52 +00:00
plv
b3e6862bdc merge r106265 from trunk to branch 5.3
bug TDI-26467:tSalesforceOutput


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106282 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-06 01:34:47 +00:00
ldong
7a2b256756 bug TDI-26795 fixed:SAP component can not get the right function name when drag a column under schema into a job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106262 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-05 09:38:44 +00:00
ycbai
9f6b9a8a44 bug TDI-26994 : lots time delay when edit code in tJava
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106250 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-05 07:58:03 +00:00
wchen
2a9275f7c5 merge r106246 from trunk to branch 5.3
bug  TDI-27024 fixed: Schema does not propagate to tAddCRCRow, after changing schema of tSugarCRMInput.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106249 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-05 07:35:39 +00:00
wchen
c77598c0ca merge r106090 from trunk to branch 5.3
bugTDI-26686 fixed: Export items to archive creates folder if file extension not included


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106093 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-01 05:57:58 +00:00
ycbai
d3b341d6a8 bug TDI-26093 : Non-job items always exported with jar
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106092 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-01 05:50:25 +00:00
wchen
0884624c6a merge r106087 from trunk to branch 5.3
bug  TDI-26576 fixed: Can drop additional columns into linked tMap output with repository schema


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106088 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-01 04:01:06 +00:00
wchen
fe7c17f153 merge r106082 from trunk to branch 5.3
bug   TDI-19963 fixed: Wrong schema generated when change schema between column which READONLY="true" and column which READONLY="false"


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106083 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-01 03:23:19 +00:00
ldong
7b87a11d3c bug TDI-26757 fixed:The QUEUE_SIZE parameter is not persistent in the parallelization links.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106078 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-01 02:53:32 +00:00
plv
7d7c562971 merge r106055 from trunk to branch 5.3
bug TDI-23822:Drag tSalesforceInput/ tSalesforceOutput from second node in repository, the schema isn't correct in component.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106071 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-08-01 01:49:05 +00:00
plv
bb8c1d0535 merge r106000 from trunk to branch 5.3
bug TDI-26928:Multi thread execution check box is grayed when the job is using project setting in 5.2.3


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@106002 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-31 01:49:42 +00:00
plv
6a7e7a9c06 bug TDI-13420:make the url as context ,edit the twebservice again ,find the browser and refresh become grey.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105956 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-30 03:08:00 +00:00
nrousseau
f5c517dca2 merge r105944 from trunk to branch 5.3
TDI-26584 : simply hides this exception, since it's from GEF directly, and even when it happens, everything still works correctly for us.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105945 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-30 01:01:09 +00:00
wchen
322187f198 bug TDI-26506 fixed: Could not convert a job to MR job (and do not get a good error message)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105937 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-29 10:10:48 +00:00
hcyi
88710514e5 merge r105932 from trunk to branch 5.3
bug TDI-26648 fixed : Statistic port is not released well in the Studio, which causes warning message before job execution .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105933 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-29 09:35:03 +00:00
wchen
31c12f2ee1 merge r105929 from trunk to branch 5.3
bug   TDI-19963 fixed: Wrong schema generated when change schema between column which READONLY="true" and column which READONLY="false"


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105930 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-29 09:21:40 +00:00
plv
8483d35af1 bug TDI-7860:Unable to rename schema in tFileInputMSXXXX
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105896 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-26 10:22:57 +00:00
hcyi
ea084a503c merge r105888 from trunk to branch 5.3
bug TDI-26611 fixed : Import TUJ "Bug10369_tFileOutputExcel" ,when we double click or right click "edit job" .Both got NPE(different error) .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105892 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-26 10:09:08 +00:00
ldong
25b0f0732a bug TDI-26815 fixed:Parallelization within the links cannot generate code with the tUnite.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105872 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-26 07:46:38 +00:00
jjzhou
4c53ed17fb fix Bug TDI-26856: tMicrosoftCrmInput: Runtime ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
https://jira.talendforge.org/browse/TDI-26856

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105832 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-25 09:51:37 +00:00
bchen
b769d705a4 Fix Work Item TDI-26845 : clean MapReduceDataProcess?
https://jira.talendforge.org/browse/TDI-26845 
as we have MapReduceDataProcess, remove the un used methods for mapredce on DataProcess

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105811 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-25 06:13:26 +00:00
nrousseau
a3045feaa5 merge r105799 from trunk to branch 5.3
TDI-26838 : fix problem of graphic disposed for the update of component. use the same method everywhere for any refresh of templates needed.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105800 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-25 04:19:02 +00:00
jzhao
32353b426a Fixed Bug TDI-26681: Bug fix for org.talend.salesforce.SforceManagementImpl.java
https://jira.talendforge.org/browse/TDI-26681
Note: Merge to branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105790 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-25 03:11:53 +00:00
jjzhou
a72576cb27 fix Bug TDI-26851: Java error when using two tFileOutputLDIF in the same job.
https://jira.talendforge.org/browse/TDI-26851

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105709 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-24 07:14:03 +00:00
plv
329a937be1 bug TUP-835 fixed:Cannot retreive schema on tables that contain "." in the table name
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105687 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-24 03:39:43 +00:00
fwang
a8b6657b61 bug TDI-26614 fixed:Excell XLSX files not read correctly
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105680 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-24 03:00:57 +00:00
wliu
e51fd38bf2 Fix Bug TDI-26484 : Fix the situation when there are tUnite in the subprocess with RowsEnd virtual components.
https://jira.talendforge.org/browse/TDI-26484

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105672 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-24 02:27:57 +00:00
wwang
0c436b3d06 Fix Bug TDI-26803 : tOracleOutputBulkExec - Update Scenario
https://jira.talendforge.org/browse/TDI-26803

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105654 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-23 10:28:06 +00:00
wliu
f9deb2012c Fix Bug TDI-26484 : When the component is a virtual component with link type:onRowsEnd, then all the subjobs which following the onRowsEnd will be generated just after the first virtual component end part
https://jira.talendforge.org/browse/TDI-26484

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105600 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-23 03:23:05 +00:00
nrousseau
981a8938cd merge r105585 from trunk to branch 5.3
TDI-26835 : disable automatically the option lookup in parallel if there is no tParallelize component  available


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105586 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-23 00:44:42 +00:00
wliu
077664e32c Fix Bug TDI-26484 : When the component is a virtual component with link type:onRowsEnd, then all the subjobs which following the onRowsEnd will be generated just after the first virtual component end part
https://jira.talendforge.org/browse/TDI-26484

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105569 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-22 10:47:05 +00:00
jjzhou
f1205ea06d fix Bug TDI-26832: Can't delete all output files
https://jira.talendforge.org/browse/TDI-26832

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105547 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-22 08:45:28 +00:00
wliu
9af54fff22 Fix Bug TDI-26484 : When the component is a virtual component with link type:onRowsEnd, then all the subjobs which following the onRowsEnd will be generated just after the first virtual component end part
https://jira.talendforge.org/browse/TDI-26484

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105457 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-19 06:54:19 +00:00
bchen
fe85dc960f Fix Bug TDI-26511: tMicrosoftCrmInput using 2007 endpoint which is no longer supported
https://jira.talendforge.org/browse/TDI-26511
as url "https://dev.login.live.com/wstlogin.srf" is forbiddened 
replace url "https://dev.login.live.com/wstlogin.srf" by "https://login.live.com/rst2.srf" to make online mode work 
add ability to set login url 
merge r105039 into branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105450 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-19 02:45:16 +00:00
ilazebny
5a0b2660ec Update version to 5.3.2-SNAPSHOT in poms
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105428 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-18 17:41:17 +00:00
jjzhou
8c64a864bb fix Bug TDI-26780: Better fix required for the issue TDI-26525
https://jira.talendforge.org/browse/TDI-26780

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105352 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-17 09:00:55 +00:00
jyhu
8a4947114d Fix Bug TDI-26545 : tGreenplum componentes are not correctly using schema
https://jira.talendforge.org/browse/TDI-26545 
Merge into branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105348 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-17 08:55:12 +00:00
nrousseau
3821df40b3 merge r105315 from trunk to branch 5.3
TDI-26751 : fail to switch jobscript when there is several tXmlMap in the same job.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105316 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-17 01:16:41 +00:00
jyhu
056d418eaa Fix Bug TDI-26770: Adjust the place of table name on tVerticaBulkExec .
https://jira.talendforge.org/browse/TDI-26770 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105290 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-16 09:10:29 +00:00
plv
ea713c82a5 merge r105259 from trunk to branch 5.3
bug TUP-835 fixed:revert


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105261 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-15 10:16:50 +00:00
jzhao
9f89a4c2a8 Fixed Bug TDI-26670: tExtractDelimitedFields throws exception when field to split is null
https://jira.talendforge.org/browse/TDI-26670
Note:Throw a new Exception if value of split fields is null.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105242 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-15 03:40:16 +00:00
ldong
4ecb191446 bug TDI-26555 fixed:New Set Parallelization - code will not compile - depends on order of components.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105238 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-15 03:19:52 +00:00
fwang
04dde29d67 bug TDI-26632 fixed:The DB component schema property set Repository but the connection info still editable
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105236 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-15 01:31:38 +00:00
ycbai
37cbab1850 bug TDI-25844 : The UI of shell which is activated by double clicking "tFileInputMSDelimited" is mess.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105207 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-12 07:12:48 +00:00
zwzhao
1706bc437f bug TDI-26617 fixed : tWebService does not return any value
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105200 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-12 06:15:02 +00:00
jzhao
0fadd95dc5 Fixed Bug TDI-26710: When Append is ticked in tFileOutputARFF the generate file can't be deleted by tFileDelete in on job
https://jira.talendforge.org/browse/TDI-26710
Note: Close BufferedReader object

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105187 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-12 02:03:15 +00:00
plv
1a985ff340 merge r105181 from trunk to branch 5.3
bug TDI-26695 fixed:guess schema fail for derby client


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105182 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-12 01:36:34 +00:00
jjzhou
09cde10db9 fix Bug TDI-26548: Oracle datasource spring bean thrown an exception in the runtime
https://jira.talendforge.org/browse/TDI-26548

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105178 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-11 09:43:08 +00:00
wchen
6499a3e2bf merge r105175 from trunk to branch 5.3
bug TDI-26609 fixed: tXmlMap automatic connection expression parser doesn't recognize nodes which have attributes


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105176 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-11 09:08:52 +00:00
ldong
99c447df11 bug TDI-26553 fixed:New Set Parallelization - failed to generate code.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105167 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-11 07:26:17 +00:00
amarkevich
73f703603d TESB-10280 TOS-DI 5.3.1 - cannot have multiple tESBConsumers pointing to same wsdl
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105145 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-10 13:13:23 +00:00
zgao
a4b5e57daa [TUP-886] Fix import module with same name as selected will skip copy to storage lib folder.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105087 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 11:00:22 +00:00
fwang
ead81dd2ca bug TUP-835 fixed:backport on 5.3
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105083 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 10:23:41 +00:00
wchen
a36b3bd574 bug TDI-25081 fixed : Avoid to block the generation of the job when check for tPrejob / tPostJob
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105082 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 10:21:45 +00:00
zwzhao
768aeb42c4 bug TDI-26633 fixed : tLibraryLoad throw warning while using context variables
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105070 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 09:11:41 +00:00
wchen
931d91b98a bug TDI-25946 fixed: HL7 connection wizard is not parsing columns correctly
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105053 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 05:56:02 +00:00
jyhu
4fb075bb71 Fix Bug TDI-26209: tNetezzaInput and tNetezzaOutput could not work with TIME type.
https://jira.talendforge.org/browse/TDI-26209 
Merge into branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105052 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 05:54:21 +00:00
jzhao
ae39a55e08 Fixed Bug TDI-26504: tMDMOutput component : Reject link does not work
https://jira.talendforge.org/browse/TDI-26504 
Note:Merge to branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105045 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 03:37:25 +00:00
jjzhou
0596016727 fix Bug TDI-26533: Unable to spool multiple bulk batches using tSalesforceInput / Bulk API
https://jira.talendforge.org/browse/TDI-26533

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105040 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 03:11:32 +00:00
jzhao
ffd46f920f Fixed Bug TDI-26572: Make tFileOutputPositionnal work like tFileOutputDelimited
https://jira.talendforge.org/browse/TDI-26572 
Note:merge to branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105032 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 02:37:21 +00:00
fwang
690d742025 bug TDI-26417 fixed:Studio adds hyphens to Java options
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105028 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 01:44:37 +00:00
ycbai
aebbb564f2 bug TDI-26650 fixed: Export as service doesn't include items from reference project
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105018 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-08 09:28:06 +00:00
fwang
d1c55280c3 bug TDI-26551 fixed:Linked tMap output expressions replaced when selecting repository schema
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105011 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-08 08:23:58 +00:00
jzhao
9c22cb11b6 Fixed Bug TDI-26440: tSalesforceInput : using variable name for Custom Module is not working
https://jira.talendforge.org/browse/TDI-26440 
Note: 1.Modify not customer model error.
2.Optimized the migration task.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105006 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-08 07:27:15 +00:00
jyhu
98d1b7a904 Fix Bug TDI-26521: DB components does nothing if no schema defined
https://jira.talendforge.org/browse/TDI-26521 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@105004 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-08 07:24:28 +00:00
ycbai
568a262627 bug TDI-26575 fixed: Reference Project:Delect assignment job in BM , BM become to dirty
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104974 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-05 10:18:22 +00:00
jjzhou
39ab7686b9 fix Bug TDI-26539: For tNetezzaNzload component,it only create connection ,but no close connection.
https://jira.talendforge.org/browse/TDI-26539

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104948 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-05 08:22:54 +00:00
jjzhou
876959ae12 fix Bug TDI-26539: For tNetezzaNzload component,it only create connection ,but no close connection.
https://jira.talendforge.org/browse/TDI-26539

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104946 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-05 08:15:42 +00:00
zwzhao
90275b296d bug TDI-26550 fixed : MSSQLInput component compilation error : the method tMSSqlInput_4Process(Map<String,Object>) is undefined
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104943 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-05 07:26:46 +00:00
jjzhou
bf8934b40a fix Bug TDI-26525: tDBInput didn't support the HyperFileSQL
https://jira.talendforge.org/browse/TDI-26525

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104911 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-04 10:30:46 +00:00
ycbai
e35cdbb279 bug TDI-26530 fixed: when changing the structure of the input flow into a SCD component (in our case postgres SCD) it gives a java compilation error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104893 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-04 07:40:35 +00:00
fwang
a65b2affb8 bug TDI-23525 fixed:Deleted "Stored Queries" in SQL Builder, it will be deleted forever
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104885 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-04 06:27:15 +00:00
fwang
6fe0f1a7cb bug TDI-26551 fixed:Linked tMap output expressions replaced when selecting repository schema
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104822 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-03 01:28:43 +00:00
zwzhao
d5806df81d bug TDI-26567 fixed : switch between jobscript and designer cause records in "Inline table" in "tFixedFlowInput" component disappear
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104812 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-02 10:21:40 +00:00
fwang
4afeff8adf bug TDI-26312 fixed:"+" should be disabled if rootTag is not selected
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104781 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-02 03:34:09 +00:00
zgao
eeb97c2af8 [TESB-9100] bug in cTimer on Delay parameter
└[TESB-10228] Fix on branch 5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104764 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-01 09:41:28 +00:00
ldong
513df73b07 bug TDI-26472 fixed:many popups shown when you link a component to joblet.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104760 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-01 09:37:32 +00:00
jjzhou
8ff7087cb7 fix Bug TDI-26520: For DB component, some have table list button ,but some doesn't have.
https://jira.talendforge.org/browse/TDI-26520 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104730 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-01 07:04:45 +00:00
zwzhao
a7efce3a94 bug TDI-26434 fixed : Expressions copied from other tMaps when schemas propagated
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104729 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-01 07:04:02 +00:00
jjzhou
d92c155434 fix Bug TDI-26523: Could not show table list and open sql builder from component setting of tTeradataTPump,
https://jira.talendforge.org/browse/TDI-26523

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104629 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-28 06:50:47 +00:00
zwzhao
ad409f5a66 bug TDI-25956 fixed : the expression is incorrect after copy&paste job contain tMap
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104602 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-27 09:55:40 +00:00
hcyi
761ecb4fb5 merge r104585 from trunk to branch 5.3
bug TDI-24919 fixed : replication order incorrect with cdc mysql .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104586 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-27 06:02:41 +00:00
zwzhao
f7cde6d12c bug TDI-25956 fixed : the expression is incorrect after copy&paste job contain tMap (revert #104186)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104550 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-26 09:02:22 +00:00
zwzhao
706fd67f7d bug TDI-26055 fixed : can not change the Join Model in tMap if you set the join manually
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104541 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-26 08:31:49 +00:00
plv
6bb3a9ef74 merge r104519 from trunk to branch 5.3
bug TDI-26457 fixed:"No data found" Error was shown when use the sql builder of the tDBInput for the HyperFileSQL


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104520 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-26 02:51:46 +00:00
jjzhou
5fc6bb2996 fix Bug TDI-26493: component "tFileCopy" can not delete files with a file size about 100MB or above
https://jira.talendforge.org/browse/TDI-26493

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104503 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-25 09:05:58 +00:00
fwang
5852506748 bug TDI-26458 fixed:Cancelling Edit of Row Generator Still Saves Changes
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104490 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-25 07:02:13 +00:00
ldong
689edf6476 bug TDI-26238 fixed:Set/Disable parallelization not worked for deactive line in job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104437 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-24 08:13:08 +00:00
hcyi
1c0e651025 merge r104432 from trunk to branch 5.3
bug TDI-25662 modified : "Detect and update all jobs" doesn't work . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104434 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-24 08:11:24 +00:00
jzhao
8a1a9b0de0 Fixed Bug TDI-26471: tFileOutputExcel throw NullPointerException when output excel file (2007) doesn't exist
https://jira.talendforge.org/browse/TDI-26471

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104420 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-24 07:06:54 +00:00
jjzhou
af1da04bdf fix Bug TDI-26485: Could not show table list and open sql builder from component setting of tSybaseIQBulkExec, tMysqlBulkExec, tMysqlOutputBulkExec
https://jira.talendforge.org/browse/TDI-26485

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104417 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-24 01:22:39 +00:00
sizhaoliu
c3e81c3972 merge r104392 from trunk to branch 5.3
TDQ-7363 redundant folder when try to select parser rule for tStandardizeRow component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104403 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 15:14:33 +00:00
sizhaoliu
0875bbedb9 merge r104390 from trunk to branch 5.3
fixed TDQ-7487 Export a second tStandardizeRow component requires to overwrite the existing rule in the repository


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104399 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 14:21:19 +00:00
jzhao
bb84837ace Fixed Bug TDI-26440: tSalesforceInput : using variable name for Custom Module is not working
https://jira.talendforge.org/browse/TDI-26440
Note: Modify break and  version about the migration task  in branch5.3

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104370 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 09:49:12 +00:00
nrousseau
f3f3eef89f merge r104359 from trunk to branch 5.3
TDI-26478 : fix the problem of folder deletion while import.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104365 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 09:38:07 +00:00
hcyi
ef5ccb82c0 merge r104349 from trunk to branch 5.3
bug TDI-25662 modified : "Detect and update all jobs" doesn't work . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104353 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 09:18:07 +00:00
plv
ff87fcb956 merge r104340 from trunk to branch 5.3
bug TDI-26432 fixed:Compile errors with tAggregateRow Component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104347 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 08:54:23 +00:00
ggu
f2438c353d TDI-26293: fixed the path problem for importing.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104318 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 06:12:18 +00:00
plv
f27bfbeaef merge r104308 from trunk to branch 5.3
bug TDI-23537 fixed:Delete flow names can not undo properly


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104310 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 05:46:25 +00:00
plv
5f16bc105a merge r104233 from trunk to branch 5.3
bug TDI-26394 fixed:User can delete a locked connection schema in remote project


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104304 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 03:42:02 +00:00
fwang
2063762134 bug TDI-26312 fixed:"+" should be disabled if rootTag is not selected
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104294 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 03:15:23 +00:00
fwang
d7505c16a1 bug TDI-26417 fixed:Studio adds hyphens to Java options
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104286 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 03:10:35 +00:00
jzhao
3a24558d56 Fixed Bug TDI-26170: tHDFSPut component uses a deprecated library and produces warnings
https://jira.talendforge.org/browse/TDI-26170
Note: replace "fs.default.name" with "fs.defaultFS"

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104281 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 03:05:26 +00:00
plv
c9cc45c3bf merge r104094 from trunk to branch 5.3
bug TDI-25958 fixed:Newly added column for copy file schema can not be set as unused in jobs.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104277 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 02:54:23 +00:00
jyhu
69bf0965fd Fix Bug TDI-26463: Connection is always closed when use exist connection on tPostgresqlBulkExec
https://jira.talendforge.org/browse/TDI-26463 
fixed the same issue for tGreenplumBulkExec and tParAccelBulkExec 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104228 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 09:41:28 +00:00
plv
624dba28ae merge r103829 from branch 5.2 to branch 5.3
bug TDI-25879 fixed:Zoom options in ActionBar for MultiPageTalendEditor should be disabled if switch to code tab.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104220 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 09:09:14 +00:00
plv
fecd59404c merge r103978 from branch 5.2 to branch 5.3
bug TDI-25992 fixed:Exchange: error when add a new extenion without a "file"


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104209 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 08:46:44 +00:00
plv
18ea0c919d merge r103849 from branch 5.2 to branch 5.3
bug TDI-26240 fixed:Joblet in ref-project is able to change the schema in main project


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104205 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 08:34:04 +00:00
hcyi
a9518edb4d merge r104198 from trunk to branch 5.3
bug TUP-803 fixed : Can't clear User Component Folder in Components preferences (TUP-799) 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104201 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 08:28:10 +00:00
hcyi
599aa47478 merge r104195 from trunk to branch 5.3
bug TUP-804 fixed : addModifyListener for the Talend Components Designer filePath text (from main task TUP-799) 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104197 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 08:21:07 +00:00
plv
929f6ea81c merge r103715 from branch 5.2 to branch 5.3
bug TDI-26263 fixed:The outputs for tSAPInput can not correctly updated when we change the row name and undo it.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104190 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 08:11:19 +00:00
zwzhao
6d03b5e3b7 bug TDI-25956 fixed : the expression is incorrect after copy&paste job contain tMap
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104186 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 08:01:18 +00:00
jyhu
97fe058c33 Fix Feature TDI-24990: Update calls to API for marketo components
https://jira.talendforge.org/browse/TDI-24990 
Modify the default value of Endpoint on tMarketoXXX. 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104180 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 07:33:31 +00:00
hcyi
876e5ae530 merge r104169 from trunk to branch 5.3
bug TDI-26374 :  TDI-26332 fixed : HL7: NPE error if the source file cannot be found . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104173 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 07:17:13 +00:00
hcyi
9309ec77fc merge r104160 from trunk to branch 5.3
bug TUP-805 fixed : Exception setting classpath after changing the Talend -> Components user component folder . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104166 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 07:05:08 +00:00
zwzhao
f949752660 bug TDI-26046 fixed : The Ui is blank after selecting "Talend Component Designer"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104165 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 07:04:57 +00:00
ggu
5319765903 TDI-26293: fixed the import problem for special characters and backport on branch 5.3.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104162 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 07:02:55 +00:00
hcyi
d0f4f5576d merge r104151 from trunk to branch 5.3
bug TDI-26438  : backport TDI-26361 : Unable to drag columns from left of tMap to expression filter of output with repository schema . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104156 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 06:55:43 +00:00
zwzhao
f3a47d159c bug TDI-26284 fixed : Get NPE when closing a locked route in remote project.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104152 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 06:51:46 +00:00
zwzhao
ecebf55d1a bug TDI-26284 fixed : Get NPE when closing a locked route in remote project.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104150 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 06:51:16 +00:00
jyhu
1029975b99 Fix Bug TDI-26176: Multiple Connections from Netezza tNetezzaBulkLoad despite use of tNetezzaConnection.
https://jira.talendforge.org/browse/TDI-26176 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104135 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 06:24:42 +00:00
jyhu
51d8f6a592 Fix Bug TDI-26372: tMSSqlBulkExec does nothing if no schema defined when Action on table is set to Truncate or Default.
https://jira.talendforge.org/browse/TDI-26372 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104122 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 05:49:57 +00:00
jzhao
3964f425eb Fixed Bug TDI-26298: Please hide parameters when use exist connection
https://jira.talendforge.org/browse/TDI-26298
Note: 1.hide some parameter
2.Fixed  "use transcation "  never commit in tInformixCDC and tInformixSCD

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104114 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 04:51:23 +00:00
wchen
104c3e489c merge r104099 from trunk to branch 5.3
bug TDI-26285 fixed: Database connection is failed when click "Guess schema" button in thiveinput


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104109 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 04:13:41 +00:00
jyhu
708a076329 Fix Bug TDI-26463: Connection is always closed when use exist connection on tPostgresqlBulkExec
https://jira.talendforge.org/browse/TDI-26463

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104105 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 03:57:57 +00:00
wchen
91cab8553f merge r104092 from trunk to branch 5.3
bug TDI-26285 fixed: Database connection is failed when click "Guess schema" button in thiveinput


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104102 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 03:57:03 +00:00
wwang
e221a3ac2b Fix Bug TDI-26211 : Fix for tFileInputXML under SAX too
https://jira.talendforge.org/browse/TDI-26211

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104101 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 03:55:49 +00:00
jzhao
5de9d7451f Fixed Bug TDI-26440: tSalesforceInput : using variable name for Custom Module is not working
https://jira.talendforge.org/browse/TDI-26440
Note: Modify 5 tSalesForceXX and add migration task for them.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104098 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 03:46:25 +00:00
wwang
f5c9bcf84c Fix Bug TDI-26362 : 65535 JDK limit on 64bit Java
https://jira.talendforge.org/browse/TDI-26362

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104050 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 01:46:35 +00:00
jjzhou
a1eec2a5c0 fix Bug TDI-26328: apply the patch in the TDI-25608 to trunk and branch5.3
https://jira.talendforge.org/browse/TDI-26328

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104045 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 01:12:54 +00:00
jjzhou
c9fc6c5964 fix Bug TDI-26345: tStewardshipOutput : Source/Target selector does not work properly
https://jira.talendforge.org/browse/TDI-26345

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104043 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 01:08:36 +00:00
jjzhou
99d74db820 fix Bug TDI-26388: The problem for TDI-26297 ,tOracleSCDELT 、tPostgresPlusSCDELT and tPostgresqlSCDELT components get the same problem
https://jira.talendforge.org/browse/TDI-26388

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104041 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 01:06:02 +00:00
nrousseau
2b64f6abc9 merge r104000 from trunk to branch 5.3
TUP-842 : fix a possible NPE, appears when using the basic eclipse properties view, if there is no ESB in the product.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@104001 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-17 09:57:37 +00:00
nrousseau
13251c29c3 merge r103960 from trunk to branch 5.3
TDI-26387: when do detect modifications, force doing svn update.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@103966 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-13 11:49:50 +00:00
nrousseau
e41e2242f2 merge r103961 from trunk to branch 5.3
TDI-26380 : set the action enabled again after execute, no matter if have exception or not.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@103963 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-13 11:16:53 +00:00
rdubois
c8538a1fcc TDI-26279 fixed: Add a migration task in order to have the same behavior as before
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@103897 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-10 14:12:30 +00:00
nrousseau
70b52f6f6b bug TDI-26324 fixed: avoid a graphic disposed (image of component diposed)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@103893 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-10 12:20:18 +00:00
rdubois
55315c8093 TDI-26297 fixed for other databases.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@103890 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-10 10:07:51 +00:00
rdubois
1ea0f9a08f Fix Bug TDI-25903: backport r103855 from trunk to branch-5_3
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@103860 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-07 10:56:57 +00:00
rdubois
8180f55dd3 TDI-26297 fixed for tMysqlSCD and tMysqlSCDELT
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@103859 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-07 10:52:39 +00:00
ilazebny
a366fc48b2 Update version to 5.3.1 in poms
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_3@103811 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-05 11:38:16 +00:00
wchen
cefc36632c bug TDI-26261 : Add url support for json wizard ,fix some problems for drag&drop and repository update
git-svn-id: http://talendforge.org/svn/tos/trunk@103768 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-05 08:27:20 +00:00
jjzhou
42cfe937fd fix Bug TDI-26279:For tFileInputJSON newer implement need to support get data source from URL
https://jira.talendforge.org/browse/TDI-26279

git-svn-id: http://talendforge.org/svn/tos/trunk@103760 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-05 07:44:55 +00:00
scorreia
10266c8462 TDQ-7104 swtbot properties files added to the build.
git-svn-id: http://talendforge.org/svn/tos/trunk@103749 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 13:53:36 +00:00
scorreia
d971a6757f TDQ-7104 synchronization of messages.properties with the correct English version + swtbot files created
git-svn-id: http://talendforge.org/svn/tos/trunk@103748 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 13:17:14 +00:00
scorreia
b4567ca5f1 TDI-25978 labels updated from Babili
git-svn-id: http://talendforge.org/svn/tos/trunk@103742 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 11:14:52 +00:00
zwzhao
047e6f02c5 bug TDI-25991 fixed : It doesn't work if change the Studio language from English to Chinese
git-svn-id: http://talendforge.org/svn/tos/trunk@103739 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 10:13:04 +00:00
hcyi
563b218be6 bug TDI-23838 fixed : High CPU and hang when working on "Var" section .
git-svn-id: http://talendforge.org/svn/tos/trunk@103733 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 09:36:22 +00:00
ldong
66dc4d35f3 bug TDI-25714 fixed:Automatic parallelization does not work with tSAPInput component.
git-svn-id: http://talendforge.org/svn/tos/trunk@103718 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 08:21:02 +00:00
rdubois
680b4fcb6d TDI-26155: add extended insert feature in the tRedshiftOutput
git-svn-id: http://talendforge.org/svn/tos/trunk@103714 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 08:00:05 +00:00
amarkevich
27a3653e7c TESB-8767 When using a datasource alias in JDBC components for connection pooling the tick box to switch it on and off does not function properly.
git-svn-id: http://talendforge.org/svn/tos/trunk@103712 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 07:52:13 +00:00
nrousseau
52d5abe12e TDI-26265 : remove specific code used to create documentation nodes and just use the listener.
git-svn-id: http://talendforge.org/svn/tos/trunk@103710 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 07:37:54 +00:00
wchen
6e004b887f bug TDI-26261 fixed: Add url support for json wizard .
git-svn-id: http://talendforge.org/svn/tos/trunk@103707 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 06:37:36 +00:00
bchen
8086f3ed6e Fix Bug TDI-25354: Fast Export Teradata: fast export fails but job is successful - why or fix
https://jira.talendforge.org/browse/TDI-25354 
revert r103217

git-svn-id: http://talendforge.org/svn/tos/trunk@103701 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 03:13:40 +00:00
ycbai
d0c21f0468 bug TDI-26251 fixed: Wrong display of properties for repository mode
git-svn-id: http://talendforge.org/svn/tos/trunk@103694 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 02:16:46 +00:00
rdubois
5fccd986c4 TDI-26247: Fix the first item - Using a shared DB connection and using a datasource alias are not copatible together.
git-svn-id: http://talendforge.org/svn/tos/trunk@103690 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-03 15:14:14 +00:00
ycbai
2bd0820a16 bug TDI-26251 fixed: Wrong display of properties for repository mode
git-svn-id: http://talendforge.org/svn/tos/trunk@103675 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-03 10:06:38 +00:00
wwang
c318bd1041 Fix Bug TDI-26108 : On error with subjob file is not removed based on settings
https://jira.talendforge.org/browse/TDI-26108

git-svn-id: http://talendforge.org/svn/tos/trunk@103664 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-03 09:21:40 +00:00
gliu
ec6e8fb1f0 [TESB-9869] cCXF route proxy cannot return Fault message to client when Dataformat is CXF_MESSAGE
enhance the workaround

git-svn-id: http://talendforge.org/svn/tos/trunk@103651 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-03 06:11:55 +00:00
wwang
ccbf9b7fe9 Fix Bug TDI-26155 : switch the extended insert checkbox to false for old jobs
https://jira.talendforge.org/browse/TDI-26155

git-svn-id: http://talendforge.org/svn/tos/trunk@103643 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-03 02:48:45 +00:00
pbabin
0e14088d70 TMDM-5878: Prevent MDM CE demo to appear in EE product. Refine condition to the existence of the MDM CE branding plugin.
git-svn-id: http://talendforge.org/svn/tos/trunk@103639 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-02 13:11:57 +00:00
scorreia
3ddd1f503c TDQ-7104 missing translations added into the build.
git-svn-id: http://talendforge.org/svn/tos/trunk@103634 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 16:13:27 +00:00
fwang
4357a54487 bug TDI-24935 fixed:Exported Talend job cannot be scheduled under Linux cron or any job scheduler
git-svn-id: http://talendforge.org/svn/tos/trunk@103625 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 11:18:54 +00:00
fwang
c074accf41 bug TDI-24935 revert:my modify is no good
git-svn-id: http://talendforge.org/svn/tos/trunk@103621 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 10:39:37 +00:00
rdubois
0f96974f17 Remove a DB2 library from the JavaDB dependencies.
git-svn-id: http://talendforge.org/svn/tos/trunk@103617 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 09:52:06 +00:00
gliu
c658e133d6 [TESB-9869] cCXF route proxy cannot return Fault message to client when Dataformat is CXF_MESSAGE
give a workaround currently

git-svn-id: http://talendforge.org/svn/tos/trunk@103616 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 09:43:33 +00:00
rdubois
413fdf0ae9 TDI-26155: add extended insert feature in the tRedshiftOutput
git-svn-id: http://talendforge.org/svn/tos/trunk@103612 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 09:39:42 +00:00
jjzhou
dc0ca90bcc fix Bug TDI-26214: revert all Oracle jars for last modify
https://jira.talendforge.org/browse/TDI-26214

git-svn-id: http://talendforge.org/svn/tos/trunk@103610 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 09:36:41 +00:00
ldong
f8ec14b217 bug TDI-24792 revert:On Unix External JAR Can't be run from folder with spaces in name.
git-svn-id: http://talendforge.org/svn/tos/trunk@103606 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 08:33:58 +00:00
ycbai
806f2de215 bug TUP-783 fixed: Export route check "Add maven script",unzip,"mvn install",build failure
git-svn-id: http://talendforge.org/svn/tos/trunk@103556 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-30 10:02:01 +00:00
ldong
5b15ed34bc bug TDI-25866 fixed:"org.eclipse.swt.SWTException: Graphic is disposed" error after Ctrl+Shift+F3.
git-svn-id: http://talendforge.org/svn/tos/trunk@103549 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-30 08:47:30 +00:00
jyhu
1227e21dfa Fix Bug TDI-26221 : The file name of the component "tMSSqlOutputBulkExec" should change according to the system
https://jira.talendforge.org/browse/TDI-26221

git-svn-id: http://talendforge.org/svn/tos/trunk@103545 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-30 08:35:55 +00:00
nrousseau
9971126575 TDI-26202 : remove dependency from studio.
git-svn-id: http://talendforge.org/svn/tos/trunk@103536 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-30 04:35:19 +00:00
wwang
03ebae28e9 Fix Bug TDI-25937 : onComponetError/onSubJobError should catch the exception
https://jira.talendforge.org/browse/TDI-25937

git-svn-id: http://talendforge.org/svn/tos/trunk@103533 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-30 03:48:57 +00:00
nrousseau
5d1e286436 TDI-26219 : babili update
git-svn-id: http://talendforge.org/svn/tos/trunk@103529 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-30 01:57:42 +00:00
nrousseau
7d98f959de TDI-26219 : update babili for plugins (except components)
git-svn-id: http://talendforge.org/svn/tos/trunk@103515 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-29 10:14:12 +00:00
jjzhou
eec9eeb007 fix Bug TDI-26214: Need to update the components to remove the link to old libraries plugin
https://jira.talendforge.org/browse/TDI-26214

git-svn-id: http://talendforge.org/svn/tos/trunk@103510 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-29 09:38:06 +00:00
ycbai
bd6296a809 bug TDI-25773 fixed: Hadoop configuration properties in the RUN TAB should be filled out autmatically with the first Hadoop component drag and dropped from Metadata repository
git-svn-id: http://talendforge.org/svn/tos/trunk@103487 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-29 02:34:00 +00:00
wchen
8e65a9b069 bug TDI-26206 fixed: [txmlmap component] Failed to drag a Var to the right output.
git-svn-id: http://talendforge.org/svn/tos/trunk@103467 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-28 10:49:33 +00:00
fwang
a53fa3a1e1 bug TDI-25538 fixed:BD Build:tXMLMap:Should remove option "Import from repository" option.
git-svn-id: http://talendforge.org/svn/tos/trunk@103462 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-28 10:14:16 +00:00
wwang
cd9bd86207 Fix Bug TDI-26120 : tFileInputMSXML doesn't do streaming with SAX
https://jira.talendforge.org/browse/TDI-26120

git-svn-id: http://talendforge.org/svn/tos/trunk@103456 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-28 09:51:28 +00:00
plv
4c30d0db67 TDI-26202:Remove proprietary database drivers from TOS DI
git-svn-id: http://talendforge.org/svn/tos/trunk@103445 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-28 08:52:34 +00:00
ldong
d886066311 bug TDI-25866 fixed:"org.eclipse.swt.SWTException: Graphic is disposed" error after Ctrl+Shift+F3.
git-svn-id: http://talendforge.org/svn/tos/trunk@103441 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-28 07:56:35 +00:00
jjzhou
8b18175a07 fix Bug TDI-26145: Bulk loader does not cause job to die on error when connection parameters are incorrectly configured
https://jira.talendforge.org/browse/TDI-26145

git-svn-id: http://talendforge.org/svn/tos/trunk@103408 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-27 09:58:51 +00:00
plv
26c2d1b53b bug TDI-25645 fixed:Joblet in ref-project is able to expand and edit in main project
git-svn-id: http://talendforge.org/svn/tos/trunk@103398 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-27 09:22:54 +00:00
jyhu
6dc77f5512 Fix Bug TDI-25994: revert code to r103162
https://jira.talendforge.org/browse/TDI-25994 

git-svn-id: http://talendforge.org/svn/tos/trunk@103393 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-27 09:11:45 +00:00
jjzhou
a8b8c1a2e1 fix Bug TDI-26109: tMDMConnection doesn't go into OnComponentError if the MDM server is unreachable
https://jira.talendforge.org/browse/TDI-26109

git-svn-id: http://talendforge.org/svn/tos/trunk@103362 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-27 03:45:07 +00:00
jjzhou
7996fce7be fix Bug TDI-26109: tMDMConnection doesn't go into OnComponentError if the MDM server is unreachable
https://jira.talendforge.org/browse/TDI-26109

git-svn-id: http://talendforge.org/svn/tos/trunk@103352 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-27 01:40:03 +00:00
jyhu
8aaede8ad4 Fix Bug TDI-24990: Update calls to API for marketo components
https://jira.talendforge.org/browse/TDI-24990 

git-svn-id: http://talendforge.org/svn/tos/trunk@103344 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 10:45:01 +00:00
zgao
6464d59ebd [TESB-9641] Cannot import a WSDL with complex structure (at customer POC)
└[TESB-9817] Fix tESBConsumer support wsdl with <import> wsdls.
By wrap wsdls using zipstream.

git-svn-id: http://talendforge.org/svn/tos/trunk@103340 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 10:32:45 +00:00
amarkevich
650ced626f added FileConstants.BLUEPRINT_FOLDER_NAME
git-svn-id: http://talendforge.org/svn/tos/trunk@103339 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 10:29:32 +00:00
jjzhou
803a4c972d fix Bug TDI-26126: modified ref file and remove unnecessary code.
git-svn-id: http://talendforge.org/svn/tos/trunk@103336 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 10:10:20 +00:00
jjzhou
c09ad624dc fix Bug TDI-25972: Macro disappeared when I add data by tFileOutputExcel with Write excel 2007 file format (xlsx) checked
https://jira.talendforge.org/browse/TDI-25972

git-svn-id: http://talendforge.org/svn/tos/trunk@103328 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 09:38:39 +00:00
ycbai
e07d6bfe59 bug TDI-25793 fixed: tPigLoad Property Type can only be HDFS
git-svn-id: http://talendforge.org/svn/tos/trunk@103321 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 09:07:14 +00:00
fwang
506c5bb628 bug TDI-24935 fixed:Exported Talend job cannot be scheduled under Linux cron or any job scheduler
git-svn-id: http://talendforge.org/svn/tos/trunk@103312 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 08:31:18 +00:00
hcyi
3bf4783edf bug TDI-26149 fixed : Ctrl+space can not add pigudf dependency to process automatically .
git-svn-id: http://talendforge.org/svn/tos/trunk@103308 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 08:06:54 +00:00
wwang
a69d5972a5 Fix Bug TDI-20120 : Need component team to add two elements for output_param
https://jira.talendforge.org/browse/TDI-20120

git-svn-id: http://talendforge.org/svn/tos/trunk@103270 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 02:23:17 +00:00
fwang
70bb871a49 bug TDI-24935 revert:commits was not correct, can't solve this problem.
git-svn-id: http://talendforge.org/svn/tos/trunk@103268 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 01:35:31 +00:00
amarkevich
0cc9240d72 switch REST to blueprint
git-svn-id: http://talendforge.org/svn/tos/trunk@103255 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 13:55:51 +00:00
sizhaoliu
e2ebcc51e3 TDQ-7326 Make tDqReportRun work with Target Execution option
git-svn-id: http://talendforge.org/svn/tos/trunk@103251 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 12:42:08 +00:00
fwang
3f4a405309 bug TDI-26140 fixed:Unable to launch a job
git-svn-id: http://talendforge.org/svn/tos/trunk@103246 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 11:05:04 +00:00
jjzhou
6fbff94b6c fix Bug TDI-26126: Wrong value retrieved from a SUBTOTAL function cell in a Excel 2007 spreadsheet
https://jira.talendforge.org/browse/TDI-26126

git-svn-id: http://talendforge.org/svn/tos/trunk@103239 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 10:14:33 +00:00
plv
601175d6c5 bug TDI-8531 fixed:incorrect warning message when user tries to cancel replacing already exported job.
git-svn-id: http://talendforge.org/svn/tos/trunk@103235 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 09:56:56 +00:00
plv
5ab0e0eb67 bug TDI-8531 fixed:incorrect warning message when user tries to cancel replacing already exported job.
git-svn-id: http://talendforge.org/svn/tos/trunk@103220 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 08:46:41 +00:00
ldong
caa816672c bug TDI-25792 fixed:fix this one and optimize the generate code of partitioning.
git-svn-id: http://talendforge.org/svn/tos/trunk@103218 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 08:35:54 +00:00
jyhu
9fa45cb5fd Fix Bug TDI-25354: Fast Export Teradata: fast export fails but job is successful - why or fix
https://jira.talendforge.org/browse/TDI-25354

git-svn-id: http://talendforge.org/svn/tos/trunk@103217 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 08:35:25 +00:00
wchen
1c62bd7566 bug TDI-26075 fixed: Column type in tXMLMap component is"document",swith from designer->code, there throws an error.
git-svn-id: http://talendforge.org/svn/tos/trunk@103210 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 06:39:17 +00:00
zwzhao
191bf31ccc bug TDI-25109 fixed : About SCD editor have a minor problem
git-svn-id: http://talendforge.org/svn/tos/trunk@103206 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 06:06:36 +00:00
wchen
db6ea72f68 bug TDI-26075 fixed: Column type in tXMLMap component is"document",swith from designer->code, there throws an error.
git-svn-id: http://talendforge.org/svn/tos/trunk@103205 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 06:03:35 +00:00
gliu
75b3218586 [TESB-9640] Support some other special chars when create folder under resources node
fix the error msg on Properties View

git-svn-id: http://talendforge.org/svn/tos/trunk@103204 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 06:01:51 +00:00
gliu
ea95cbdf50 [TESB-9640] Support some other special chars when create folder under resources node
fix the error msg on Properties View

git-svn-id: http://talendforge.org/svn/tos/trunk@103203 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 05:58:27 +00:00
plv
7f620873b7 bug TDI-26136 fixed:When use t*CDC components, we can't select schema in repository.
git-svn-id: http://talendforge.org/svn/tos/trunk@103202 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 05:35:39 +00:00
jyhu
30581aeff1 Fix Bug TDI-25994: tMysqlOutputBulkExec can't throw error when insert data is invalid
https://jira.talendforge.org/browse/TDI-25994 

git-svn-id: http://talendforge.org/svn/tos/trunk@103195 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 02:56:35 +00:00
wchen
ed9f4b8188 bug TDI-26072 fixed: No PIG help when creating a new custom wizard.
git-svn-id: http://talendforge.org/svn/tos/trunk@103191 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 02:38:05 +00:00
zwzhao
465fcf560e bug TDI-26100 fixed : When export route check "Add maven script",there is an java.lang.NullPointerException
git-svn-id: http://talendforge.org/svn/tos/trunk@103185 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 01:29:21 +00:00
ldong
14d8347fbe bug TDI-25307 fixed:ELT_after update the schema in repository, the old column still exist in job(component schema).
git-svn-id: http://talendforge.org/svn/tos/trunk@103173 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-22 11:03:18 +00:00
bchen
5787ecaa34 Fix Work Item TDI-23737 : The virtual component is unable to work with tUnite when merge order is 2 if the two parts of the virtual component are linked with "ComponentOK".
https://jira.talendforge.org/browse/TDI-23737

git-svn-id: http://talendforge.org/svn/tos/trunk@103171 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-22 10:18:53 +00:00
nrousseau
84731d21bc TDI-25498 : fix latest problem.
git-svn-id: http://talendforge.org/svn/tos/trunk@103168 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-22 10:13:40 +00:00
plv
fb19beba7c bug TDI-25645 fixed:Joblet in ref-project is able to expand and edit in main project
git-svn-id: http://talendforge.org/svn/tos/trunk@103166 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-22 10:07:16 +00:00
jyhu
20f66d9aaf Fix Bug TDI-25994: tMysqlOutputBulkExec can't throw error when insert data is invalid
https://jira.talendforge.org/browse/TDI-25994 

git-svn-id: http://talendforge.org/svn/tos/trunk@103163 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-22 09:59:20 +00:00
wwang
96e856866b Fix Bug TDI-25447 : PermGen space issue while using tmomoutput component
https://jira.talendforge.org/browse/TDI-25447

git-svn-id: http://talendforge.org/svn/tos/trunk@103151 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-22 08:14:12 +00:00
nrousseau
fe22c89d52 TDI-26111 : avoid to have too many calls of repository for each selection in the studio.
git-svn-id: http://talendforge.org/svn/tos/trunk@103126 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-22 03:27:23 +00:00
nrousseau
ede3d7b8b0 TDI-25907 : remove parameters added to the commandline from GUI.
git-svn-id: http://talendforge.org/svn/tos/trunk@103100 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-21 10:29:01 +00:00
zwzhao
0194d772b2 bug TDI-25896 fixed : Context connection JDBC
git-svn-id: http://talendforge.org/svn/tos/trunk@103084 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-21 09:05:31 +00:00
nrousseau
f401c297e2 TUP-763 : fix problem of job or route execution.
git-svn-id: http://talendforge.org/svn/tos/trunk@103064 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-21 06:56:42 +00:00
amarkevich
7473d7fd13 minor
git-svn-id: http://talendforge.org/svn/tos/trunk@103043 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 15:40:20 +00:00
rdubois
c0c90b69a1 TDI-25927: change the messages.properties value
git-svn-id: http://talendforge.org/svn/tos/trunk@103032 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 14:24:08 +00:00
ldong
022ab93d94 bug TUP-671 fixed:Component view is not refreshed when I check/uncheck "Use existing connection" box of database components.
git-svn-id: http://talendforge.org/svn/tos/trunk@103013 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 09:37:58 +00:00
fwang
74ea4d9c84 bug TDI-25538 fixed:BD Build:tXMLMap:Should remove option "Import from repository" option
git-svn-id: http://talendforge.org/svn/tos/trunk@103010 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 09:31:50 +00:00
jjzhou
8584d462c7 fix Bug TDI-25972: Macro disappeared when I add data by tFileOutputExcel with Write excel 2007 file format (xlsx) checked
https://jira.talendforge.org/browse/TDI-25972

git-svn-id: http://talendforge.org/svn/tos/trunk@102997 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 08:28:44 +00:00
zwzhao
4ad2cf6f20 bug TDI-25895 fixed : Not possible to move Technical folder to visible in palette
git-svn-id: http://talendforge.org/svn/tos/trunk@102987 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 06:36:16 +00:00
jzhao
9111bc19d0 Fixed Work Item Bug TDI-25705: Some components have not complete DIE_ON_ERROR function
https://jira.talendforge.org/browse/TDI-25705
Note:tSocketOutput  remove  reject schema.

git-svn-id: http://talendforge.org/svn/tos/trunk@102986 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 06:18:30 +00:00
zwzhao
807567ce16 bug TDI-26017 fixed : tMap,add more than 20 variables and random click expression,there is an error
git-svn-id: http://talendforge.org/svn/tos/trunk@102982 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 05:41:32 +00:00
wliu
a7e3d2059d Fix work item TDI-25978 : JOIN operator is wrongly labeled. It should be "Joins With" instead of "Contains Text Of"
https://jira.talendforge.org/browse/TDI-25978

git-svn-id: http://talendforge.org/svn/tos/trunk@102969 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 03:18:59 +00:00
wwang
d7ea63f407 Fix Bug TDI-25892 : Upgrade components to use CXF 2.7.5
https://jira.talendforge.org/browse/TDI-25892

git-svn-id: http://talendforge.org/svn/tos/trunk@102960 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 02:58:42 +00:00
scorreia
4fd37ff519 i18n: synchronize Babili strings exported on 2013-05-17-12-20-18
git-svn-id: http://talendforge.org/svn/tos/trunk@102937 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 10:41:29 +00:00
jyhu
8b10abcb8e Fix Bug TDI-26020: tFileOutputJSON does not honor the date pattern of the schema
https://jira.talendforge.org/browse/TDI-26020

git-svn-id: http://talendforge.org/svn/tos/trunk@102920 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 09:12:59 +00:00
ycbai
6e22e59ae0 bug TDI-25907 fixed : Hadoop Configuration don't support context
git-svn-id: http://talendforge.org/svn/tos/trunk@102902 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 08:08:45 +00:00
nrousseau
e73a3fc581 TDI-25871 : fix some problems related to the changes of display.
git-svn-id: http://talendforge.org/svn/tos/trunk@102894 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 07:30:24 +00:00
hcyi
42888ff915 bug TDI-25599 fixed : existing connection_parameter lost after drag and drop the joblet into a job .
git-svn-id: http://talendforge.org/svn/tos/trunk@102889 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 06:56:45 +00:00
bchen
f2d6cfb69f Fix Work Item TDI-25710 : Correct tWriteXMLFieldIn to handle exception which child thread throw
https://jira.talendforge.org/browse/TDI-25710

git-svn-id: http://talendforge.org/svn/tos/trunk@102880 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 06:26:05 +00:00
jjzhou
8844ebf96f fix Bug TDI-26039: make good use of the totalCount in the return result to fix the inifinite loop in tMDMInput
https://jira.talendforge.org/browse/TDI-26039

git-svn-id: http://talendforge.org/svn/tos/trunk@102877 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 05:56:49 +00:00
zgao
59557a5943 [TESB-9578] The component "tRestRequest" hide all details of the exception
└[TESB-9716] Update SalesforceInput to throw login error as RuntimeException.

git-svn-id: http://talendforge.org/svn/tos/trunk@102875 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 03:55:49 +00:00
jjzhou
daa9172d03 fix Bug TDI-26039: make good use of the totalCount in the return result to fix the inifinite loop in tMDMInput
https://jira.talendforge.org/browse/TDI-26039

git-svn-id: http://talendforge.org/svn/tos/trunk@102873 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 03:45:47 +00:00
dlin
b46e378133 bug TDI-26013 fixed : System throws an error when select "conditions" for commponent "tFilterRow"
git-svn-id: http://talendforge.org/svn/tos/trunk@102871 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 03:32:41 +00:00
jyhu
1f4a5742e2 Fix Bug TDI-25711: tAS400Connection and tAS400Output some unexpect behaviour
https://jira.talendforge.org/browse/TDI-25711

git-svn-id: http://talendforge.org/svn/tos/trunk@102856 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-16 10:07:25 +00:00
ycbai
c31e0f117a bug TDI-25962 fixed : Find component in Jobs: if component in MR job, cannot find the job
git-svn-id: http://talendforge.org/svn/tos/trunk@102846 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-16 09:22:23 +00:00
zwzhao
59fbeb1ca5 bug TDI-25498 fixed : Remote project:route with multi-version open old and latest version after close latest version it won't unlock.
git-svn-id: http://talendforge.org/svn/tos/trunk@102845 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-16 09:14:36 +00:00
hcyi
b564034420 bug TDI-25235 fixed : Stats&logs: cannot edit database information .
git-svn-id: http://talendforge.org/svn/tos/trunk@102839 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-16 08:40:12 +00:00
fwang
3f3850823e bug TDI-25469 fixed:Improvement for MSsql DB connection
git-svn-id: http://talendforge.org/svn/tos/trunk@102829 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-16 07:52:58 +00:00
wliu
749f2aa2eb Fix workitem TDI-25978: tMDMinput&tMDMViewSearch&tMDMDelete: removing operator"CONTAINS_TEXT_OF"
https://jira.talendforge.org/browse/TDI-25978

git-svn-id: http://talendforge.org/svn/tos/trunk@102803 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-16 01:34:38 +00:00
fwang
19d2a49d13 bug TDI-24935 fixed:Exported Talend job cannot be scheduled under Linux cron or any job scheduler
git-svn-id: http://talendforge.org/svn/tos/trunk@102763 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-15 08:47:40 +00:00
fwang
8aed312caf bug TDI-24792 fixed:On Unix External JAR Can't be run from folder with spaces in name
git-svn-id: http://talendforge.org/svn/tos/trunk@102756 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-15 07:47:53 +00:00
hcyi
94f46134c5 bug TDI-25534 modified : revert the commit , will keep like before , no change required .
git-svn-id: http://talendforge.org/svn/tos/trunk@102755 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-15 07:34:16 +00:00
ycbai
9622dcfdc2 bug TDQ-7288 : ignore integer type check.
git-svn-id: http://talendforge.org/svn/tos/trunk@102749 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-15 06:13:37 +00:00
zwzhao
2cfbcc73e2 bug TDI-25967 fixed : tOracleOutput in 5.2.2 causes a warning message that did not occur in 4.2.2
git-svn-id: http://talendforge.org/svn/tos/trunk@102746 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-15 05:59:58 +00:00
jzhao
c6a444b2de Fixed Work Item Bug TDI-25705: Some components have not complete DIE_ON_ERROR function
https://jira.talendforge.org/browse/TDI-25705
Note:1.Modify tDBSQLRow/tOleDbRow/tAlfrescoOutput add die on error.
2.tSocketOutput  remove  reject line.

git-svn-id: http://talendforge.org/svn/tos/trunk@102739 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-15 03:49:25 +00:00
zwzhao
0542f14c97 bug TDI-25895 fixed : Not possible to move Technical folder to visible in palette
git-svn-id: http://talendforge.org/svn/tos/trunk@102712 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-14 10:32:47 +00:00
wchen
fad790de06 bug TDI-25876 fixed: An error throw when open tMap if the linked input component is not loaded.
git-svn-id: http://talendforge.org/svn/tos/trunk@102697 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-14 08:34:45 +00:00
zwzhao
3e59296632 bug TDI-25693 fixed : The schema of tpigmap and tpigstoreresult can not sync
git-svn-id: http://talendforge.org/svn/tos/trunk@102691 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-14 07:13:11 +00:00
wliu
54557ced4d Fix workitem TDI-25978: tMDMViewSearch&tMDMDelete: add missing operators
https://jira.talendforge.org/browse/TDI-25978

git-svn-id: http://talendforge.org/svn/tos/trunk@102674 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-14 03:54:25 +00:00
zwzhao
176e9c39f0 bug TDI-25740 fixed : Used/Unused Columns for your DBInput turn in Built-In after using with a tMap
git-svn-id: http://talendforge.org/svn/tos/trunk@102671 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-14 03:40:59 +00:00
wliu
c9a87fac4a Fix workitem TDI-25978: tMDMInput: add missing operators
https://jira.talendforge.org/browse/TDI-25978

git-svn-id: http://talendforge.org/svn/tos/trunk@102670 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-14 03:36:03 +00:00
ldong
01c9c34258 bug TDI-25920 fixed:change the messages to i18n.
git-svn-id: http://talendforge.org/svn/tos/trunk@102664 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-14 01:58:24 +00:00
sizhaoliu
4570fa2a25 TDQ-7176 Fix tDqReportRun generation problem when HSQLDB is used for datamart
git-svn-id: http://talendforge.org/svn/tos/trunk@102652 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-13 10:14:28 +00:00
hcyi
340bf732c4 bug TDI-25534 fixed : The "auto map" does not show like a button , use a icon replace the text .
git-svn-id: http://talendforge.org/svn/tos/trunk@102649 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-13 10:08:45 +00:00
nrousseau
c5fb865545 TDI-25871 : improve the loading time of XML model, and the time to display on GUI. (use lazy loading for the treeview)
git-svn-id: http://talendforge.org/svn/tos/trunk@102646 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-13 10:00:16 +00:00
wwang
195da62fae Fix Bug TDI-25903 : now type filed is not useful for output table
https://jira.talendforge.org/browse/TDI-25903

git-svn-id: http://talendforge.org/svn/tos/trunk@102640 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-13 09:24:17 +00:00
ycbai
081d5dc875 bug TDI-25914 fixed : D&D a map/reduce job as a trunjob component, check "use dynamic mode" then click "choose job" button will give an error
git-svn-id: http://talendforge.org/svn/tos/trunk@102639 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-13 09:22:21 +00:00
wwang
9ae793bf9c Fix Bug TDI-25903 : tXMLMap create empty nodes when the node value is empty string even setup 'Create empty element' to false
https://jira.talendforge.org/browse/TDI-25903

git-svn-id: http://talendforge.org/svn/tos/trunk@102632 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-13 09:04:01 +00:00
ldong
122a118df6 bug TDI-25920 fixed:No matter which kind of job all support "Set Parallelization".
git-svn-id: http://talendforge.org/svn/tos/trunk@102629 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-13 08:38:35 +00:00
fwang
c889bd3e0f bug TDI-22673 fixed:Sandbox project creation doesn't allow email domain name with only one letter
git-svn-id: http://talendforge.org/svn/tos/trunk@102622 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-13 07:32:31 +00:00
hcyi
e515c1d9ac bug TDI-25576 fixed : tHiveRow_error throw when click ... button beside "Table Name" . just hide this button in Component View for Hive components , maybe later will remove this code .
git-svn-id: http://talendforge.org/svn/tos/trunk@102615 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-13 07:11:22 +00:00
hcyi
30bd16f0df bug TDI-25765 fixed : Pig job must forbid or pop up a box to user when component used is not permited .
git-svn-id: http://talendforge.org/svn/tos/trunk@102572 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 08:26:54 +00:00
ldong
12d793056f bug TDI-25799 fixed:Failed to generate code TRecollector component.
git-svn-id: http://talendforge.org/svn/tos/trunk@102570 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 08:16:00 +00:00
zwzhao
ea90a858d7 bug TDI-25488 fixed : JobScript:Fail to create another version for jobscript
git-svn-id: http://talendforge.org/svn/tos/trunk@102568 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 08:06:30 +00:00
wliu
fcddac7b52 Fix Bug TDI-25951 : Wrong urlPath configred in component
https://jira.talendforge.org/browse/TDI-25951

git-svn-id: http://talendforge.org/svn/tos/trunk@102565 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 07:42:37 +00:00
hcyi
be19a3264d bug TDI-25604 fixed : avoid Exchange view shows null entries , hide them directly .
git-svn-id: http://talendforge.org/svn/tos/trunk@102563 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 07:14:16 +00:00
hcyi
be70920390 bug TDI-25604 fixed : avoid Exchange view shows null entries , hide them directly .
git-svn-id: http://talendforge.org/svn/tos/trunk@102560 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 06:52:32 +00:00
mwang
10622bfa2d TDI-23786 File delimited component crashes when adding a file with more than 5m rows[Avoid to cause other problems, revert the original change and add the file to that plugin.]
git-svn-id: http://talendforge.org/svn/tos/trunk@102540 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 02:22:05 +00:00
fwang
9d5dbb6355 bug TDI-25409 fixed:Shell "Warning" is activated when copy and paste a joblet node.
git-svn-id: http://talendforge.org/svn/tos/trunk@102538 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 01:14:54 +00:00
ldong
1d2ddd4f0d bug TDI-25734 fixed:Unhandled event loop exception changing keys when parallelization set.
git-svn-id: http://talendforge.org/svn/tos/trunk@102535 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 10:07:10 +00:00
zwzhao
72d503a2bb bug TDI-25285 fixed : wrong content in the component tWriteJSONField if property type = "repository"
git-svn-id: http://talendforge.org/svn/tos/trunk@102533 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 09:38:00 +00:00
hcyi
bdb9853c20 bug TDI-24481 fixed : Talendforge read more link misplaced and need to update the link .
git-svn-id: http://talendforge.org/svn/tos/trunk@102528 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 09:16:40 +00:00
mwang
fc977e266a TDI-23786 File delimited component crashes when adding a file with more than 5m rows
git-svn-id: http://talendforge.org/svn/tos/trunk@102521 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 08:44:54 +00:00
wchen
c1699670a7 bug TDI-24906 fixed: the download dialog is on top of the warning dialog
git-svn-id: http://talendforge.org/svn/tos/trunk@102519 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 08:37:33 +00:00
wwang
5764f0de5c Fix Bug TDI-25927 : no need to pass the var
https://jira.talendforge.org/browse/TDI-25927

git-svn-id: http://talendforge.org/svn/tos/trunk@102515 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 08:27:31 +00:00
wwang
89bf3126ae Fix Bug TDI-25927 : Avoid the function trim in the prepared statement of tOracleOutput
https://jira.talendforge.org/browse/TDI-25927

git-svn-id: http://talendforge.org/svn/tos/trunk@102496 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 03:50:35 +00:00
wliu
dd5b58f377 Fix Backlog Task TESB-9604 : reset the status
https://jira.talendforge.org/browse/TESB-9604

git-svn-id: http://talendforge.org/svn/tos/trunk@102494 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 03:42:49 +00:00
jzhao
7d868105c8 Fixed Bug TDI-25867: Repeatition of "java.lang.Error" in the error in a certain pattern.
https://jira.talendforge.org/browse/TDI-25867

git-svn-id: http://talendforge.org/svn/tos/trunk@102491 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 03:28:35 +00:00
zwzhao
3139b52d96 bug TDI-25488 fixed : JobScript:Fail to create another version for jobscript
git-svn-id: http://talendforge.org/svn/tos/trunk@102485 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 01:59:31 +00:00
nrousseau
72543cb66c TDI-25933 : avoids to load duplicate nodes (which might appear in some old jobs created in previous version, due to some problems of copy/paste)
git-svn-id: http://talendforge.org/svn/tos/trunk@102483 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 01:33:07 +00:00
wliu
8215a88b39 Fix Bug TDI-25930: Module woodstox-core-asl-4.1.4.jar is missing when drag advanced webservice to job.
https://jira.talendforge.org/browse/TDI-25930

git-svn-id: http://talendforge.org/svn/tos/trunk@102469 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-08 11:11:06 +00:00
amarkevich
aa31e11642 TESB-9574 refix
git-svn-id: http://talendforge.org/svn/tos/trunk@102467 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-08 10:56:51 +00:00
jzhao
a2f10bbbc6 Fixed Work Item TDI-25657: When only tMemorizeRow in a job, generate code have compile error
https://jira.talendforge.org/browse/TDI-25657

git-svn-id: http://talendforge.org/svn/tos/trunk@102456 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-08 09:00:43 +00:00
jjzhou
f9169023ae fix Work Item TDI-25918: tFileInputJSON have two implements(By XPath and By JSONPath),but load all jars for any implement
https://jira.talendforge.org/browse/TDI-25918

git-svn-id: http://talendforge.org/svn/tos/trunk@102455 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-08 08:59:51 +00:00
hcyi
345179f8ba bug TDI-25744 fixed : The exchange password is stored as plain text in the talend.project file .
git-svn-id: http://talendforge.org/svn/tos/trunk@102452 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-08 08:41:06 +00:00
ycbai
bb1d893986 bug TDI-25782 fixed : M/R Code Generation Error: Execution failed : Failed to generate code. [org.eclipse.emf.codegen.jet.JETException: InvocationTargetException in null job]
git-svn-id: http://talendforge.org/svn/tos/trunk@102440 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-08 06:38:01 +00:00
zwzhao
1c5c3ec701 bug TDI-25693 fixed : The schema of tpigmap and tpigstoreresult can not sync
git-svn-id: http://talendforge.org/svn/tos/trunk@102435 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-08 06:01:29 +00:00
nrousseau
e65e843cd0 TDI-25902 : fix the propagate of schema to every job, since in fact the first job will be ok, but others won't take in account the metadata with the used column if set to true.
git-svn-id: http://talendforge.org/svn/tos/trunk@102433 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-08 05:09:41 +00:00
hcyi
b76663b207 bug TDI-25765 fixed : Pig job must forbid or pop up a box to user when component used is not permited .
git-svn-id: http://talendforge.org/svn/tos/trunk@102417 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-08 02:53:08 +00:00
sizhaoliu
e856dc3f2e TDQ-7085 include connection contexts into the generated tDqReportRun job
git-svn-id: http://talendforge.org/svn/tos/trunk@102413 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 15:30:52 +00:00
atelesh
824b532562 TESB-9318 - Upgrade CXF version (Studio + BPM)
-> TESB-9592 - remove patches for old CXF versions

git-svn-id: http://talendforge.org/svn/tos/trunk@102411 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 14:29:24 +00:00
amarkevich
a993b3711a TESB-9574 Tooling: Authorization activated through Service Registry Policy does not work
git-svn-id: http://talendforge.org/svn/tos/trunk@102397 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 10:30:18 +00:00
ldong
eee94737e4 bug TDI-25732 fixed:Parallelization in jobs not generating the code correctly when components are copy/pasted.
git-svn-id: http://talendforge.org/svn/tos/trunk@102369 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 08:54:20 +00:00
hcyi
eb81372d5f bug TDI-23417 fixed : Fix the Connect to TalendForge window in the Studio .
git-svn-id: http://talendforge.org/svn/tos/trunk@102368 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 08:47:17 +00:00
fwang
cd6b6a1dca bug TDI-25654 fixed:In the parent job, connot select the specific version of the joblet.
git-svn-id: http://talendforge.org/svn/tos/trunk@102360 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 08:17:44 +00:00
hcyi
692a3b669e bug TDI-25576 fixed : tHiveRow_error throw when click ... button beside "Table Name" .
git-svn-id: http://talendforge.org/svn/tos/trunk@102353 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 07:37:04 +00:00
nrousseau
e59f3ce7f7 TDI-25885 : check errors of compilations in main job and child jobs.
git-svn-id: http://talendforge.org/svn/tos/trunk@102347 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 07:05:56 +00:00
hcyi
96d47c78e8 bug TDI-25770 fixed : tPigMap / tXmlMap Filter added column does not show up in Expression Builder .
git-svn-id: http://talendforge.org/svn/tos/trunk@102340 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 06:15:00 +00:00
bchen
30370aac1e Fix Bug TDI-23737 : The virtual component is unable to work with tUnite when merge order is 2 if the two parts of the virtual component are linked with "ComponentOK".
https://jira.talendforge.org/browse/TDI-23737
fixed it for tMongoDBOutput, tCouchDBOutput and tCouchBaseOutput

git-svn-id: http://talendforge.org/svn/tos/trunk@102339 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 06:14:58 +00:00
mwang
d6f5f787e6 TDI-25659 Error pops up when open a job with esb component in TOS_BD and TOS_DI
git-svn-id: http://talendforge.org/svn/tos/trunk@102338 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 06:09:13 +00:00
ycbai
799e43caf0 bug TDI-25788 fixed : in MapReduce Jobs, activating the Flow Monitory produce duplicate definition of Struct
git-svn-id: http://talendforge.org/svn/tos/trunk@102336 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 03:40:16 +00:00
ycbai
ea21a525d7 bug TDI-25789 fixed : Map/Reduce Job Allows Recovery Checkpoints
git-svn-id: http://talendforge.org/svn/tos/trunk@102295 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-06 10:33:12 +00:00
mwang
59c7ff78f4 TDI-25745 Cannot add notes into MR jobs
git-svn-id: http://talendforge.org/svn/tos/trunk@102292 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-06 09:58:39 +00:00
jjzhou
432fd46fa1 fix Bug TDI-25655: tFileInputExcel read 2003 file get a problem
https://jira.talendforge.org/browse/TDI-25655

git-svn-id: http://talendforge.org/svn/tos/trunk@102289 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-06 09:47:13 +00:00
jzhao
5639764aaf Fixed Bug TDI-25692: Unable to find the Surrogate Key if the column is created in the lowercase
https://jira.talendforge.org/browse/TDI-25692

git-svn-id: http://talendforge.org/svn/tos/trunk@102284 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-06 09:39:36 +00:00
bchen
bddcd0a670 Fix Bug TDI-23737 : The virtual component is unable to work with tUnite when merge order is 2 if the two parts of the virtual component are linked with "ComponentOK".
https://jira.talendforge.org/browse/TDI-23737
fix it for tWriteJSONField

git-svn-id: http://talendforge.org/svn/tos/trunk@102276 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-06 08:02:10 +00:00
ycbai
cc9958a3d0 bug TDI-25794 fixed : HadoopCluster connection updated is not reflected in MapReduce job
git-svn-id: http://talendforge.org/svn/tos/trunk@102271 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-06 07:55:57 +00:00
hcyi
be88cafdba bug TDI-25763 fixed : Property type empty in component tPigstoreResult .
git-svn-id: http://talendforge.org/svn/tos/trunk@102269 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-06 07:42:35 +00:00
bchen
8b87b025d1 Fix Bug TDI-23737 : The virtual component is unable to work with tUnite when merge order is 2 if the two parts of the virtual component are linked with "ComponentOK".
https://jira.talendforge.org/browse/TDI-23737
fixed it for tMDMOutput

git-svn-id: http://talendforge.org/svn/tos/trunk@102256 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-06 03:25:36 +00:00
jjzhou
977cce9dd4 fix Bug TDI-25829: Update bulkload library to avoid System.out message
https://jira.talendforge.org/browse/TDI-25829

git-svn-id: http://talendforge.org/svn/tos/trunk@102234 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-03 09:55:41 +00:00
ycbai
c5517b4b03 bug TDI-25784 fixed : Schema change in Repository not propagating down to Map/Reduce Jobs
git-svn-id: http://talendforge.org/svn/tos/trunk@102222 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-03 09:30:56 +00:00
mwang
ff484bc3ef TDI-25745 Cannot add notes into MR jobs
git-svn-id: http://talendforge.org/svn/tos/trunk@102216 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-03 09:00:29 +00:00
zwzhao
c26601e8e7 bug TDI-25658 fixed : Import an item of connection into TOS_BD
git-svn-id: http://talendforge.org/svn/tos/trunk@102205 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-03 07:41:59 +00:00
wchen
56526d398b bug TDI-25828 fixed: Iterate Row Missing Name for property Connection.enableParallel
git-svn-id: http://talendforge.org/svn/tos/trunk@102195 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-03 06:30:58 +00:00
wliu
d689bd512d Fix Bug TDI-25822 : Selecting Set Parallelize with Iterate generates wrong code(It is caused by the tRunJob)
https://jira.talendforge.org/browse/TDI-25822

git-svn-id: http://talendforge.org/svn/tos/trunk@102192 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-03 05:35:58 +00:00
nrousseau
c149709df5 TDI-25820 : update the error message on tRunJob, to have the compatibility only with independant
git-svn-id: http://talendforge.org/svn/tos/trunk@102190 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-03 04:33:28 +00:00
hcyi
f0719b017f bug TDI-25701 fixed : Unable to drag and drop a tPigStoreResult for the metadata created with HCatalog .
git-svn-id: http://talendforge.org/svn/tos/trunk@102177 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-03 02:43:38 +00:00
zwzhao
3dea216731 bug TDI-25855 fixed : Some metadas names have changed in the repository view
git-svn-id: http://talendforge.org/svn/tos/trunk@102175 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-03 01:55:22 +00:00
sizhaoliu
c26b384c2f TDQ-7216 export JUDI library along with the indicator while running a tDqReportRun job + code cleansing
git-svn-id: http://talendforge.org/svn/tos/trunk@102172 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 16:49:48 +00:00
ldong
0796fc0d3f bug TDI-25735 fixed:After deparralelize, not value are outputed..
git-svn-id: http://talendforge.org/svn/tos/trunk@102149 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 09:02:02 +00:00
ldong
7e911f331a bug TDI-25792 fixed:Set Parallelization shows statistics for deactivated rows.
git-svn-id: http://talendforge.org/svn/tos/trunk@102134 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 07:25:00 +00:00
nrousseau
e3d27e09ac TDI-25761 : avoid to set initial state in gef object, since onlything we want is set the preferences.
git-svn-id: http://talendforge.org/svn/tos/trunk@102125 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 06:45:08 +00:00
wchen
9200abe1e2 bug TDI-25810: tXMLMap error - An error has occurred.
git-svn-id: http://talendforge.org/svn/tos/trunk@102124 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 06:27:39 +00:00
zwzhao
7cf625c927 bug TDI-25436 fixed : Create a new projecet logon studio, focus lost
git-svn-id: http://talendforge.org/svn/tos/trunk@102121 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 05:57:35 +00:00
nrousseau
f0336b4c34 TDQ-6616 : fix problem when target schema only have custom columns, it should not ask to get the schema or every try to get it.
git-svn-id: http://talendforge.org/svn/tos/trunk@102118 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 05:41:25 +00:00
ldong
67270080ce bug TDI-25796 fixed:this action should hide for the M/R job.
git-svn-id: http://talendforge.org/svn/tos/trunk@102100 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 02:11:21 +00:00
plv
e544d2c18e bug TDI-25263 fixed:tSPSSInput: ".sav" file with a "." (dot) in column name
git-svn-id: http://talendforge.org/svn/tos/trunk@102097 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 01:42:29 +00:00
bchen
cf741dd454 Fix Work Item TDI-25710 : Correct tWriteXMLFieldIn to handle exception which child thread throw
https://jira.talendforge.org/browse/TDI-25710

git-svn-id: http://talendforge.org/svn/tos/trunk@102034 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 09:58:03 +00:00
bchen
f94c14b2b8 Fix Work Item TDI-25707 : Remove DIE_ON_ERROR on tWriteXMLFieldOut
https://jira.talendforge.org/browse/TDI-25707

git-svn-id: http://talendforge.org/svn/tos/trunk@102033 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 09:42:46 +00:00
nrousseau
a566959e5a TDI-25706 : in case the emitterPool is not initialized, force to initialize it.
git-svn-id: http://talendforge.org/svn/tos/trunk@102032 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 09:41:40 +00:00
zwzhao
9e46e47aea bug TDI-25658 fixed : Import an item of connection into TOS_BD
git-svn-id: http://talendforge.org/svn/tos/trunk@102031 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 09:33:11 +00:00
jyhu
b20337aec9 Fix Bug TDI-25703 : The problem of TDI-25343
https://jira.talendforge.org/browse/TDI-25703

git-svn-id: http://talendforge.org/svn/tos/trunk@102027 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 09:16:00 +00:00
fwang
1c9d96d513 bug TDI-25142 fixed:The name of shell for "Create FTP" and "Edit FTP" is missing.
git-svn-id: http://talendforge.org/svn/tos/trunk@102025 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 09:05:17 +00:00
fwang
9a4d4ce2e1 bug TDI-25142 fixed:The name of shell for "Create FTP" and "Edit FTP" is missing.
git-svn-id: http://talendforge.org/svn/tos/trunk@102020 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 08:47:56 +00:00
wchen
3642117a52 bug TDI-25695 fixed:The input for txmlmap can not automatically update when drag a new tlogrow as its input.
git-svn-id: http://talendforge.org/svn/tos/trunk@102014 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 06:47:32 +00:00
gliu
efd88174ce [TESB-9466] Change the way of genate Spring Configuration content of RouteBuilder
remove spring jet file

git-svn-id: http://talendforge.org/svn/tos/trunk@102009 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 05:51:05 +00:00
plv
e9eb9fb5db bug TDI-25263 fixed:tSPSSInput: ".sav" file with a "." (dot) in column name
git-svn-id: http://talendforge.org/svn/tos/trunk@102000 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 02:05:48 +00:00
nrousseau
a9e3f6581a Fix Bug TDI-25672 : Need to review / enhance the cache initializations and loading of the studio
https://jira.talendforge.org/browse/TDI-25672

git-svn-id: http://talendforge.org/svn/tos/trunk@101998 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 00:39:59 +00:00
nrousseau
d8383695a8 Fix Bug TDI-25672 : Need to review / enhance the cache initializations and loading of the studio
https://jira.talendforge.org/browse/TDI-25672

git-svn-id: http://talendforge.org/svn/tos/trunk@101997 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 00:23:18 +00:00
nrousseau
916342e1f6 Fix Bug TDI-25672 : Need to review / enhance the cache initializations and loading of the studio
https://jira.talendforge.org/browse/TDI-25672

git-svn-id: http://talendforge.org/svn/tos/trunk@101990 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 10:48:31 +00:00
wliu
49f2f5e728 Fix TDI-24428 : remove the unnecessary code in the _java.xml file
https://jira.talendforge.org/browse/TDI-24428

git-svn-id: http://talendforge.org/svn/tos/trunk@101989 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 10:39:01 +00:00
wliu
6fff51a520 Fix TDI-24428 : remove the unnecessary code in the _java.xml file
https://jira.talendforge.org/browse/TDI-24428

git-svn-id: http://talendforge.org/svn/tos/trunk@101988 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 10:38:05 +00:00
nrousseau
ba2750c599 Fix Bug TDI-25672 : Need to review / enhance the cache initializations and loading of the studio
https://jira.talendforge.org/browse/TDI-25672

git-svn-id: http://talendforge.org/svn/tos/trunk@101987 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 10:32:46 +00:00
hcyi
5f93370aa7 bug TDI-25662 fixed : "Detect and update all jobs" doesn't work .
git-svn-id: http://talendforge.org/svn/tos/trunk@101959 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 06:25:20 +00:00
nrousseau
3bdb3a2621 Fix Bug TDI-25672 : Need to review / enhance the cache initializations and loading of the studio
https://jira.talendforge.org/browse/TDI-25672

git-svn-id: http://talendforge.org/svn/tos/trunk@101955 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 04:40:56 +00:00
wchen
9e7c689660 bug TDI-25545 fixed: <Header Footer>:JAR missing if use a header/footer which contain jars in a job
git-svn-id: http://talendforge.org/svn/tos/trunk@101945 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 02:24:25 +00:00
atelesh
8983698140 TESB-9072 - Change the way of generating Route blueprint Configuration when exporting as Kar file
git-svn-id: http://talendforge.org/svn/tos/trunk@101940 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-26 13:26:21 +00:00
atelesh
ebb43a3733 TESB-9072 - Change the way of generating Route blueprint Configuration when exporting as Kar file
-> TESB-9381 - Refactoring JobJavaScriptOSGIForESBManager to Velocity to generate Route blueprint configuration
-> TESB-9454 - create route OSGi blueprint configuration Velocity template


git-svn-id: http://talendforge.org/svn/tos/trunk@101939 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-26 13:03:35 +00:00
wliu
b945cba6f4 Fix TDI-24428 : remove the unnecessary repository_value
https://jira.talendforge.org/browse/TDI-24428

git-svn-id: http://talendforge.org/svn/tos/trunk@101913 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-26 08:48:23 +00:00
wchen
cdf04729f0 bug TDI-25405 fixed: hive connection check failed after export as context
git-svn-id: http://talendforge.org/svn/tos/trunk@101907 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-26 07:56:01 +00:00
ggu
edd6cf7ee3 TUP-507: remove RepositoryNameSorter, and try to remove the ordinal also.
git-svn-id: http://talendforge.org/svn/tos/trunk@101897 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-26 04:02:09 +00:00
ilazebny
ba7c28d22a Update version to 5.3.1-SNAPSHOT in poms
git-svn-id: http://talendforge.org/svn/tos/trunk@101879 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-25 17:10:51 +00:00
fwang
c909ea4e4d bug TDI-25538 fixed:BD Build:tXMLMap:Should remove option "Import from repository" option
git-svn-id: http://talendforge.org/svn/tos/trunk@101866 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-25 10:12:23 +00:00
hcyi
cc91cf9f57 bug TDI-25604 fixed : avoid Exchange view shows null entries , add the validate .
git-svn-id: http://talendforge.org/svn/tos/trunk@101840 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-25 06:57:27 +00:00
wwang
14dac3105b Fix Bug TDI-25333 : Invalid Batch when attempting to set Event.WhoId via an external Id owning to polymorphic type not specified.
https://jira.talendforge.org/browse/TDI-25333

git-svn-id: http://talendforge.org/svn/tos/trunk@101839 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-25 05:54:47 +00:00
amarkevich
cb26e37ba8 switch to new ExceptionHandler
git-svn-id: http://talendforge.org/svn/tos/trunk@101807 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-24 14:16:07 +00:00
ycbai
82cfaa0f0a bug TDI-24576 : Restore URIConverter after computeProperty.
git-svn-id: http://talendforge.org/svn/tos/trunk@101746 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-24 03:39:29 +00:00
jyhu
9b8080e7f3 Fix Bug TDI-7505: tSybaseXX component is unable to process "BigDecimal" properly
https://jira.talendforge.org/browse/TDI-7505

git-svn-id: http://talendforge.org/svn/tos/trunk@101745 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-24 03:39:12 +00:00
nrousseau
076fe41683 TDI-25634 : update token info for data collector
git-svn-id: http://talendforge.org/svn/tos/trunk@101719 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 11:23:59 +00:00
wchen
9245f5f01f bug TDI-25628 :Able to edit routine's jar, even if routine is opened
git-svn-id: http://talendforge.org/svn/tos/trunk@101704 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 09:36:17 +00:00
hcyi
8434dd9303 bug TDI-25605 fixed : Update component release in Talend Exchange view in Studio failed .
git-svn-id: http://talendforge.org/svn/tos/trunk@101697 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 08:59:17 +00:00
zwzhao
84c6d02df0 bug TDI-24576 fixed : Performance issue when loading the list old jobs to import
git-svn-id: http://talendforge.org/svn/tos/trunk@101694 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 08:29:49 +00:00
wchen
0c2a65e2ae bug TDI-25626 fixed: Routine can not access classes in imported library
git-svn-id: http://talendforge.org/svn/tos/trunk@101692 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 08:17:31 +00:00
ycbai
1c88f80bbc bug TDI-25609 fixed : The item cannot be imported into 5.3.0 studio
git-svn-id: http://talendforge.org/svn/tos/trunk@101690 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 07:55:23 +00:00
gliu
9a631b2c55 [TESB-9316] The generated Blueprint configuration is wrong if both Security and SAM are checked on cCXF
fix on trunk

git-svn-id: http://talendforge.org/svn/tos/trunk@101684 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 07:11:09 +00:00
wchen
351eefed73 bug TDI-25627 fixed: zookeeper-3.3.3-cdh3u0.jar is missing
git-svn-id: http://talendforge.org/svn/tos/trunk@101677 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 06:25:57 +00:00
wchen
0964ba8007 bug TDI-25627 fixed: zookeeper-3.3.3-cdh3u0.jar is missing
git-svn-id: http://talendforge.org/svn/tos/trunk@101676 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 06:05:27 +00:00
nrousseau
4624bd2e5b Fix Bug TDI-25606 : Components downloaded from Talend Exchange does not create any code
https://jira.talendforge.org/browse/TDI-25606

git-svn-id: http://talendforge.org/svn/tos/trunk@101666 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 02:54:00 +00:00
wchen
bba550aa19 bug TDI-25611 fixed: Open another version of pig udf does not work well
git-svn-id: http://talendforge.org/svn/tos/trunk@101659 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-22 10:46:26 +00:00
jjzhou
f2b37dfc9f fix Bug TDI-25608: tFileInputDelimited component has a compiled error when column numbers more than 100 when "List" type existed in column type (only happened in CSV mode).
https://jira.talendforge.org/browse/TDI-25608

git-svn-id: http://talendforge.org/svn/tos/trunk@101658 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-22 10:45:34 +00:00
jyhu
4652809c03 Fix New Feature TDI-25542 : check "Read real values for numbers" in tFileInputExccel but can not read data.
https://jira.talendforge.org/browse/TDI-25542

git-svn-id: http://talendforge.org/svn/tos/trunk@101657 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-22 10:36:20 +00:00
hcyi
555da6a7f1 bug TDI-25519 fixed : The schema of tpigload and tpigmap can not sync .
git-svn-id: http://talendforge.org/svn/tos/trunk@101646 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-22 09:35:47 +00:00
fwang
17d5ed9380 bug TDI-25580 fixed:version modification for Open another version is not correct
git-svn-id: http://talendforge.org/svn/tos/trunk@101641 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-22 08:54:57 +00:00
2641 changed files with 32783 additions and 15760 deletions

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -46,7 +46,6 @@ ComponentProjectPreferencePage.Warning=Warnung
AbstractXMLConfigPage.VERSIONTip=Ein Dezimalwert zur Angabe der Version Ihrer neuen Komponente.
WizardJetFilesChoosePage.Directory=Verzeichnis:
CreateComponentWizard.NewComponent=Neue Komponente
WizardComponentFolderPage.Name=Name
RemoveResourceAction.Remove=Entfernen
WizardJetFilesChoosePage.UseIconFrom=Verwende Icon von:
ImportComponentDialog.ImportFinished=Import der Komponente abgeschlossen

View File

@@ -19,16 +19,21 @@ WizardComponentFolderPage.ErrMSG1=Nije ozna\u010Den jezik za komponentu
CreateComponentWizard.FillIn=Popuni svojstva komponente
ComponentProjectPreferencePage.Warning=Upozorenje
AbstractXMLConfigPage.VERSIONTip=Decimalna vrijednost koja ozna\u010Dava verziju va\u0161e nove komponente.
WizardJetFilesChoosePage.Directory=Direktorij:
WizardComponentFolderPage.Name=Ime
RemoveResourceAction.Remove=Ukloni
WizardJetFilesChoosePage.UseIconFrom=Koristi ikonu iz:
AbstractXMLConfigPage.SetProperties=Postavi svojstva odabranog elementa.
AddResourceAction.AddLib=Dodaj biblioteke...
WizardComponentFolderPage.Perl=Perl
AbstractXMLConfigPage.NBLINESTip=Cjelobrojna vrijednost. Linije se prote\u017Eu od tog parametra unutar Component pogleda.
AbstractXMLConfigPage.MININPUTTip=Integer vrijednost. Najmanji broj ulaza za ovu vezu.
WizardJetFilesChoosePage.UseDefaultIcon=Koristi zadanu ikonu
WizardComponentFolderPage.LongName=Duga\u010Dko ime (mouseover tooltip)
CopyComponentActionProvider.CopyComponent=Kopiraj tu komponentu
AddExternalResourceAction.ErrorMsg=Ozna\u010Dena vanjska arhiva nije dostupna ili ne postoji.
CopyFromPaletteActionProvider.Label=Kopiraj komponentu iz izbornika Palette
WizardJetFilesChoosePage.ChoseAIcon=Odaberi ikonu
AbstractXMLConfigPage.LINESTYLETip=Cjelobrojna vrijednost'. Stil spojne linije (1. Puna, 2: Crtkana, 3: To\u010Dka, 4: Crta-To\u010Dka)
ComponentProjectPreferencePage.ButtonLabel0=U redu
CreateComponentWizard.MainProperties=Glavna svojstva

View File

@@ -0,0 +1,108 @@
AbstractXMLConfigPage.BooleanTip=Boolean value (true or false).
AbstractXMLConfigPage.COLORTip=Hex value of RGB. For example\: "00FF00"
AbstractXMLConfigPage.CTYPETip=Connector type.
AbstractXMLConfigPage.Delete=Delete
AbstractXMLConfigPage.EXTENSIONTip=String value of plugin name. This option is for external componet.
AbstractXMLConfigPage.IntValue=Integer value.
AbstractXMLConfigPage.LINESTYLETip=Integer value. Line style of the connetion. (1\: Solid Line, 2\: Dash Line, 3\: Dot Line, 4\: Dashdot Line)
AbstractXMLConfigPage.MAXINPUTTip=Integer value. Maximum input connection for this connection
AbstractXMLConfigPage.MAXOUTPUTTip=Integer value. Maximum output connection for this connection
AbstractXMLConfigPage.MININPUTTip=Integer value. Minimum input connection for this connection
AbstractXMLConfigPage.MINOUTPUTTip=Integer value. Minimum output connection for this connection
AbstractXMLConfigPage.NBLINESTip=Integer value. Lines spans of this parameter in the component's properties view
AbstractXMLConfigPage.NUMROWTip=Integer value. Row position of this parameter in the component's properties view
AbstractXMLConfigPage.New=New
AbstractXMLConfigPage.REPOSITORYVALUETip=Metadata repository to select.
AbstractXMLConfigPage.SetProperties=Set the properties for selected element.
AbstractXMLConfigPage.TYPETip=Data type.
AbstractXMLConfigPage.VERSIONTip=A decimal value to indicate the version of your new component.
AddExternalResourceAction.AddELibs=Add External Libraries...
AddExternalResourceAction.ErrorMsg=The selected external archive is unavailable or does not exist.
AddExternalResourceAction.ErrorTitle=External Archive Error
AddExternalResourceAction.JarSelection=Jar Selection
AddResourceAction.AddLib=Add Libraries...
AddResourceAction.ChooseResource=&Choose jars and zips to add\:
AddResourceAction.JARSecection=JAR Selection
ComponentProjectManager.CreationProblems=Creation Problems
ComponentProjectManager.InternalErrorMsg=Internal error\: {0}
ComponentProjectManager.NewProject=New Component Project
ComponentProjectManager.WarningMsg=The underlying file system is case insensitive. There is an existing project which conflicts with {0}
ComponentProjectPreferencePage.ButtonLabel0=Ok
ComponentProjectPreferencePage.ChooseProject=Choose a project folder for this component designer
ComponentProjectPreferencePage.ComponentProject=Component Project\:
ComponentProjectPreferencePage.SelectPath=Select Component Project Path
ComponentProjectPreferencePage.Warning=Warning
ComponentProjectPreferencePage.WarningMSG=Warning, this modification will only impact Component Designer, not the Palette.
CopyComponentActionProvider.CopyComponent=Copy This Component
CopyComponentActionProvider.CopyComponent2=Copy Component
CopyComponentActionProvider.InputName=Input a new component name for
CopyComponentValidator.ComponentExist=The component has been exsit
CopyFromPaletteActionProvider.Label=Copy Components from Palette
CopyFromPaletteActionProvider.Label2=Import components from palette
CreateComponentWizard.CreateXMLJava=Create the XML configuration file for JAVA Component
CreateComponentWizard.CreateXMLPerl=Create the XML configuration file for PERL Component
CreateComponentWizard.FillIn=Fill in component properties
CreateComponentWizard.MainProperties=Main Properties
CreateComponentWizard.NewComponent=New Component
CreateComponentWizard.SpecifyRes=Specify resources
EditComponentActionProvider.Edit=Edit This Component
EditComponentActionProvider.GroupEdit=group.edit
FileCopy.ExceptionMSG=The source File "
ImportComponentDialog.Browser=Browser..
ImportComponentDialog.ChooseComponentsLabel=Choose components to import\:
ImportComponentDialog.ErrorMSG4=No component was selected for importing.
ImportComponentDialog.Filter=Filter\:
ImportComponentDialog.ImportCanceled=Import Components Canceled
ImportComponentDialog.ImportCanceledMSG=Task import components from palette was canceled.
ImportComponentDialog.ImportFinished=Import Components Finished
ImportComponentDialog.ImportFinishedMSG=Components imported successfully.
ImportComponentDialog.NoComponentsAvailable=No Components available.
ImportComponentDialog.SelectDirectoryLabel=Select a directory\:
ImportComponentDialog.ShowPaletteComponents=Show Palette Components
ImportComponentDialog.WarningMSG=This operation will overwrite the existing components in workspace. Do you really want to import the selected components?
ImportComponentDialog.WarningTitle=Warning
NewActionProvider.New=New
NewActionProvider.NewComponent=New Component
PluginConstant.Borwser=Browser..
ProjectSelectionDialog.ChooseFolder=Choose a project folder for this session
ProjectSelectionDialog.ComponentProject=Component Project\:
ProjectSelectionDialog.SelectPath=Select Project Path
PushToPaletteActionProvider.Error=Error
PushToPaletteActionProvider.Error2=Error
PushToPaletteActionProvider.ErrorMSG=User component folder is not set.
PushToPaletteActionProvider.ErrorMSG2=User component folder doesn't exist.
PushToPaletteActionProvider.Information=Informaton
PushToPaletteActionProvider.InformationMSG=Components have been published. The palette is going to be refreshed.
PushToPaletteActionProvider.OK=OK
PushToPaletteActionProvider.OK2=OK
PushToPaletteActionProvider.OK3=OK
PushToPaletteActionProvider.PushComponentsToPalette=Push Components to Palette
PushToPaletteActionProvider.PushToPaletteActionProvider.failed=Push components to palette failed for these invalid XML files.\n
PushToPaletteActionProvider.PushToPaletteActionProvider.result=Validation result
RemoveResourceAction.Remove=Remove
ValidateComponentXMLActionProvider.error=\n\tThere is an Error on line {0}
ValidateComponentXMLActionProvider.fatalerror=\n\tThere is a Fatal Error on line {0}
ValidateComponentXMLActionProvider.invalid=Invalid component XML file\:\n
ValidateComponentXMLActionProvider.ok=OK
ValidateComponentXMLActionProvider.result=Validation result
ValidateComponentXMLActionProvider.valid=Component XML file is valid\!
ValidateComponentXMLActionProvider.validate=Validate Component XML
ValidateComponentXMLActionProvider.warning=\n\tThere is a Warning on line {0}
WizardComponentFolderPage.Available=Available in
WizardComponentFolderPage.ErrMSG1=The component language have not been selected
WizardComponentFolderPage.ErrMSG2=The component Name is empty
WizardComponentFolderPage.ErrMSG3=This component already exists
WizardComponentFolderPage.ErrMSG4=The component Long Name is empty
WizardComponentFolderPage.ErrMSG5=The component Family is empty
WizardComponentFolderPage.Family=Family
WizardComponentFolderPage.Java=Java
WizardComponentFolderPage.LongName=Long Name (mouseover tooltip)
WizardComponentFolderPage.Name=Name
WizardComponentFolderPage.Perl=Perl
WizardJetFilesChoosePage.BeginFile=Begin File
WizardJetFilesChoosePage.ChoseAIcon=Chose an icon
WizardJetFilesChoosePage.Directory=Directory\:
WizardJetFilesChoosePage.EndFile=End File
WizardJetFilesChoosePage.MainFile=Main File
WizardJetFilesChoosePage.UseDefaultIcon=Use default icon
WizardJetFilesChoosePage.UseIconFrom=Use icon from\:

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -0,0 +1,6 @@
ApplicationActionBarAdvisor.fileMenu=&File
ApplicationActionBarAdvisor.helpMenu=&Help
ApplicationActionBarAdvisor.windowMenu=&Window
ApplicationWorkbenchWindowAdvisor.rcpApp=RCP Application
FileWizard.0=File Wizard
ShowViewAction.actionLabel=Show view...

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -16,7 +16,7 @@
<extension point="org.eclipse.ui.perspectives">
<perspective class="org.talend.componentdesigner.ui.Perspective"
id="org.talend.componentdesigner.perspective"
name="Component's Designer">
name="Component Designer">
</perspective>
</extension>
<extension point="org.eclipse.ui.perspectiveExtensions">
@@ -99,7 +99,7 @@
<contentExtension
pattern="org.talend.componentdesigner.resourceContent" />
<contentExtension
pattern="org.eclipse.ui.navigator.resources.filters.*" />
pattern="org.talend.componentdesigner.ui.navigator.resources.filters.*" />
</includes>
</viewerContentBinding>
<viewerActionBinding
@@ -267,7 +267,7 @@
</filterExpression>
</commonFilter> -->
<commonFilter
id="org.eclipse.ui.navigator.resources.filters.nonComponentProject"
id="org.talend.componentdesigner.ui.navigator.resources.filters.nonComponentProject"
name="nonComponentProject" description="not the component project"
activeByDefault="true">
<filterExpression>

View File

@@ -260,7 +260,6 @@ public final class ComponentProjectManager {
addLibClasspathEntries(ces, "org.talend.metadata.managment"); //$NON-NLS-1$
addLibClasspathEntries(ces, "org.talend.core"); //$NON-NLS-1$
addLibClasspathEntries(ces, "org.talend.designer.codegen"); //$NON-NLS-1$
addLibClasspathEntries(ces, "org.talend.commons"); //$NON-NLS-1$
return ces;
}

View File

@@ -34,6 +34,9 @@ import org.talend.componentdesigner.i18n.internal.Messages;
import org.talend.componentdesigner.util.XSDValidator;
import org.talend.componentdesigner.util.file.FileCopy;
import org.talend.core.CorePlugin;
import org.talend.core.model.components.IComponent;
import org.talend.core.model.components.IComponentsFactory;
import org.talend.repository.model.ComponentsFactoryProvider;
/**
* DOC slanglois class global comment. Detailled comment
@@ -49,6 +52,7 @@ public class PushToPaletteActionProvider extends CommonActionProvider {
*
* @see org.eclipse.ui.navigator.CommonActionProvider#init(org.eclipse.ui.navigator.ICommonActionExtensionSite)
*/
@Override
public void init(ICommonActionExtensionSite anExtensionSite) {
if (anExtensionSite.getViewSite() instanceof ICommonViewerWorkbenchSite) {
@@ -59,6 +63,7 @@ public class PushToPaletteActionProvider extends CommonActionProvider {
/**
* Adds a submenu to the given menu with the name "New Component".
*/
@Override
public void fillContextMenu(IMenuManager menu) {
menu.insertBefore("group.edit", copyProjectAction); //$NON-NLS-1$
// Object obj = ((TreeSelection) this.getContext().getSelection()).getFirstElement();// need to get all
@@ -86,9 +91,10 @@ public class PushToPaletteActionProvider extends CommonActionProvider {
/*
* (non-Javadoc) Method declared on IAction.
*/
@Override
public void run() {
String path = CorePlugin.getDefault().getComponentsLocalProviderService().getPreferenceStore().getString(
"USER_COMPONENTS_FOLDER"); //$NON-NLS-1$
String path = CorePlugin.getDefault().getComponentsLocalProviderService().getPreferenceStore()
.getString("USER_COMPONENTS_FOLDER"); //$NON-NLS-1$
if (path == null || path.length() == 0) {
new MessageDialog(
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
@@ -130,6 +136,15 @@ public class PushToPaletteActionProvider extends CommonActionProvider {
}
}
// add for bug TDI-26719, clear image cash from EmfComponent
IComponentsFactory components = ComponentsFactoryProvider.getInstance();
List<IComponent> comList = components.getCustomComponents();
for (IComponent com : comList) {
if (com.getImageRegistry() != null) {
com.getImageRegistry().clear();
}
}
MessageDialog warningMessageDialog = new MessageDialog(
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
Messages.getString("PushToPaletteActionProvider.Information"), null, Messages.getString("PushToPaletteActionProvider.InformationMSG"), MessageDialog.INFORMATION, //$NON-NLS-1$ //$NON-NLS-2$
@@ -147,7 +162,8 @@ public class PushToPaletteActionProvider extends CommonActionProvider {
MessageDialog warningMessageDialog = new MessageDialog(
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), Messages.getString("PushToPaletteActionProvider.PushToPaletteActionProvider.result"), null, waringInfo, //$NON-NLS-1$
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
Messages.getString("PushToPaletteActionProvider.PushToPaletteActionProvider.result"), null, waringInfo, //$NON-NLS-1$
MessageDialog.WARNING, new String[] { Messages.getString("PushToPaletteActionProvider.OK3") }, 0); //$NON-NLS-1$
warningMessageDialog.open();
@@ -162,6 +178,7 @@ public class PushToPaletteActionProvider extends CommonActionProvider {
// get the correct XML file for components
File[] list = componentFolder.listFiles(new FilenameFilter() {
@Override
public boolean accept(File dir, String name) {
// _java.xml
String javaXmlName = dir.getName() + "_java.xml"; //$NON-NLS-1$

View File

@@ -12,11 +12,15 @@
// ============================================================================
package org.talend.componentdesigner.ui.preferencepage;
import java.io.File;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.IWorkbench;
@@ -27,8 +31,8 @@ import org.talend.componentdesigner.i18n.internal.Messages;
/**
* This class represents a preference page that is contributed to the Preferences dialog. By subclassing
* <samp>FieldEditorPreferencePage</samp>, we can use the field support built into JFace that allows us to create a
* page that is small and knows how to save, restore and apply itself.
* <samp>FieldEditorPreferencePage</samp>, we can use the field support built into JFace that allows us to create a page
* that is small and knows how to save, restore and apply itself.
* <p>
* This page is used to modify preferences only. They are stored in the preference store that belongs to the main
* plug-in class. That way, preferences can be accessed directly via the preference store.
@@ -65,23 +69,39 @@ public class ComponentProjectPreferencePage extends FieldEditorPreferencePage im
GridData gd = new GridData();
gd.horizontalSpan = 3;
l.setLayoutData(gd);
filePathTemp = new DirectoryFieldEditor(PluginConstant.PROJECT_URL, Messages
.getString("ComponentProjectPreferencePage.ComponentProject"), //$NON-NLS-1$
filePathTemp = new DirectoryFieldEditor(PluginConstant.PROJECT_URL,
Messages.getString("ComponentProjectPreferencePage.ComponentProject"), //$NON-NLS-1$
getFieldEditorParent());
addField(filePathTemp);
// addModifyListener for the filePath text
filePathTemp.getTextControl(getFieldEditorParent()).addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
String newPath = filePathTemp.getTextControl(getFieldEditorParent()).getText();
File file = new File(newPath);
if (!file.exists() && !"".equals(newPath)) {
filePathTemp.showErrorMessage();
setValid(false);
} else {
setValid(true);
}
}
});
}
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.preference.FieldEditorPreferencePage#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
* @see
* org.eclipse.jface.preference.FieldEditorPreferencePage#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
*/
public void propertyChange(PropertyChangeEvent event) {
super.propertyChange(event);
MessageDialog warningMessageDialog = new MessageDialog(getFieldEditorParent().getShell(), Messages
.getString("ComponentProjectPreferencePage.Warning"), null, //$NON-NLS-1$
MessageDialog warningMessageDialog = new MessageDialog(getFieldEditorParent().getShell(),
Messages.getString("ComponentProjectPreferencePage.Warning"), null, //$NON-NLS-1$
Messages.getString("ComponentProjectPreferencePage.WarningMSG"), MessageDialog.WARNING, //$NON-NLS-1$
new String[] { Messages.getString("ComponentProjectPreferencePage.ButtonLabel0") }, 0); //$NON-NLS-1$
warningMessageDialog.open();

View File

@@ -1341,16 +1341,12 @@
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="org.talend.libraries.csv"
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="org.talend.libraries.jdbc.sybase"
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="org.talend.librariesmanager"

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -0,0 +1,20 @@
prefs.configuration.title=Map components preferences :
prefs.configuration.LINK_STYLE=Default mapping links display as :
prefs.configuration.LINK_STYLE.AUTO=Auto
prefs.configuration.LINK_STYLE.BEZIER_CURVE=Curves
prefs.configuration.LINK_STYLE.LINE=Lines (fast)
DraggingInfosPopup.draggingEntry=Dragging {0} entry.
DraggingInfosPopup.dropInvalid=\n<< Drop invalid >>\n
DraggingInfosPopup.draggingEntries=Dragging {0} entries.
DraggingInfosPopup.dropInvalidWithKey=\n<< Drop invalid >>\nPress both Shift and Ctrl keys to map one to one and overwrite
DraggingInfosPopup.overwriteMode=\ > Overwrite mode
DraggingInfosPopup.appendMode=\ > Append mode
DraggingInfosPopup.appendModeToOverwrite=\ > Append mode (Ctrl key to overwrite)
DraggingInfosPopup.insertAllSelectedEntries=\ > Insert all selected entries
DraggingInfosPopup.insertRemainingEntries=\ > Insert remaining entries
DraggingInfosPopup.eachSourceEntryExpressionToEachTargetExpression= > Each source entry expression to each target expression
DraggingInfosPopup.eachSourceEntryToEachTargetExpression= > Each source entry to each target expression
DraggingInfosPopup.allSourceEntriesExpressionToASingleOneTargetExpressionShiftKey= > All source entries expression to a single one target expression (Shift key to change mapping)
DraggingInfosPopup.allSourceEntriesExpressionToASingleOneTargetExpression= > All source entries expression to a single one target expression
DraggingInfosPopup.allSourceEntriesToASingleOneTargetExpressionShiftKey= > All source entries to a single one target expression (Shift key to change mapping)
DraggingInfosPopup.allSourceEntriesToASingleOneTargetExpression= > All source entries to a single one target expression

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -26,16 +26,16 @@ import org.apache.oro.text.regex.Substitution;
import org.apache.oro.text.regex.Util;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.core.model.context.UpdateContextVariablesHelper;
import org.talend.core.model.process.AbstractExternalNode;
import org.talend.core.model.process.IElementParameter;
import org.talend.core.model.process.node.IExternalMapEntry;
import org.talend.core.model.process.node.MapperExternalNode;
import org.talend.designer.abstractmap.ui.prefs.MapPrefsConstants;
/**
* DOC amaumont class global comment. Detailled comment <br/>
*
*/
public abstract class AbstractMapComponent extends AbstractExternalNode {
public abstract class AbstractMapComponent extends MapperExternalNode {
/**
* DOC amaumont AbstractMapComponent constructor comment.
@@ -79,7 +79,7 @@ public abstract class AbstractMapComponent extends AbstractExternalNode {
protected boolean hasDataIntoExpression(Pattern pattern, PatternMatcher matcher, String expression) {
if (expression != null) {
if (matcher.contains(expression, pattern)) {
if (matcher.matches(expression, pattern)) {
return true;
}
}

View File

@@ -40,6 +40,10 @@ public class DefaultDropTargetListener implements TransferDropTargetListener {
private Point lastCursorPosition;
private long lastDragTime;
private boolean scrollUp = false;
public DefaultDropTargetListener(AbstractMapperManager mapperManager) {
super();
this.mapperManager = mapperManager;
@@ -53,12 +57,14 @@ public class DefaultDropTargetListener implements TransferDropTargetListener {
return mapperManager.getUiManager();
}
@Override
public void dragEnter(DropTargetEvent event) {
updatePopupPosition(event);
// updatePopupPosition(event);
setPopupVisible(true);
event.detail = mapperManager.getUiManager().getCurrentDragDetail();
}
@Override
public void dragLeave(DropTargetEvent event) {
dragFinished();
}
@@ -76,6 +82,7 @@ public class DefaultDropTargetListener implements TransferDropTargetListener {
draggingInfosPopup.setVisible(visible);
}
@Override
public void dragOperationChanged(DropTargetEvent event) {
updatePopupPosition(event);
detectPressedKeys(event);
@@ -124,6 +131,7 @@ public class DefaultDropTargetListener implements TransferDropTargetListener {
}
@Override
public void dragOver(DropTargetEvent event) {
// System.out.println(((DropTarget)event.widget).getControl());
event.detail = DND.DROP_NONE;
@@ -133,20 +141,17 @@ public class DefaultDropTargetListener implements TransferDropTargetListener {
}
private void updatePopupPosition(DropTargetEvent event) {
Point cursorPosition = new Point(event.x, event.y);
if (!cursorPosition.equals(lastCursorPosition)) {
AbstractUIManager uiManager = mapperManager.getUiManager();
DraggingInfosPopup draggingInfosPopup = uiManager.getDraggingInfosPopup();
draggingInfosPopup.setCursorPosition(event.x, event.y);
}
// System.out.println("updatePopupPosition:" + lastCursorPosition + "-->" + cursorPosition);
lastCursorPosition = cursorPosition;
}
private void autoScroll(DropTargetEvent event) {
if (lastCursorPosition == null || lastCursorPosition.y == event.y) {
return;
}
Composite currentComposite = null;
Object source = event.getSource();
if (source instanceof DropTarget) {
@@ -163,22 +168,51 @@ public class DefaultDropTargetListener implements TransferDropTargetListener {
if (parentScrolledComposite == null) {
return;
}
ScrollBar vBar = parentScrolledComposite.getVerticalBar();
int increment = event.y - lastCursorPosition.y;
if (increment > 0) {
increment = increment + 3;
} else {
increment = increment - 3;
}
Control content = parentScrolledComposite.getContent();
if (content != null) {
Point location = content.getLocation();
int vSelection = vBar.getSelection();
int increment = 0;
int thumb = vBar.getThumb();
if (lastCursorPosition == null || lastCursorPosition.y == event.y) {
long currentTimeMillis = System.currentTimeMillis();
long time = currentTimeMillis - lastDragTime;
if (lastDragTime != 0 && time > 100) {
Point pointToScrollComposite = parentScrolledComposite.toControl(event.x, event.y);
// scroll up
if (pointToScrollComposite.y < 40) {
increment = -20;
}
// scroll down
else if (thumb - pointToScrollComposite.y < 40) {
increment = 20;
} else {
return;
}
} else {
return;
}
} else {
increment = event.y - lastCursorPosition.y;
if (increment > 0) {
increment = increment + 3;
} else {
increment = increment - 3;
}
}
if (vSelection >= 0 && vSelection + increment > 0 && vSelection + increment < vBar.getMaximum()) {
vBar.setSelection(vSelection + increment);
}
content.setLocation(location.x, -vSelection);
mapperManager.getUiManager().refreshBackground(true, false);
lastDragTime = System.currentTimeMillis();
}
// Event e = new Event();
@@ -205,6 +239,7 @@ public class DefaultDropTargetListener implements TransferDropTargetListener {
return getParentScrolledComposite(composite.getParent());
}
@Override
public void drop(DropTargetEvent event) {
dragFinished();
}
@@ -218,6 +253,7 @@ public class DefaultDropTargetListener implements TransferDropTargetListener {
return getClass() != DefaultDropTargetListener.class;
}
@Override
public void dropAccept(DropTargetEvent event) {
}
@@ -227,6 +263,7 @@ public class DefaultDropTargetListener implements TransferDropTargetListener {
*
* @see org.eclipse.jface.util.TransferDropTargetListener#getTransfer()
*/
@Override
public Transfer getTransfer() {
return TableEntriesTransfer.getInstance();
}
@@ -236,6 +273,7 @@ public class DefaultDropTargetListener implements TransferDropTargetListener {
*
* @see org.eclipse.jface.util.TransferDropTargetListener#isEnabled(org.eclipse.swt.dnd.DropTargetEvent)
*/
@Override
public boolean isEnabled(DropTargetEvent event) {
return true;
}

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -14,5 +14,4 @@ AlfrescoOutputModelManager.prefixConflict=Kann das Modell nicht hinzuf
AlfrescoOutputModelManager.notYetAdded=Dieses Modell wurde noch nicht hinzugefügt.
AlfrescoModelDialog.type=Typ
AlfrescoModelDialog.addModelFailed=Modell hinzufügen fehlgeschlagen
AlfrescoModelDialog.modelTable.name=Name
AlfrescoModelDialog.remove=Entfernen

View File

@@ -10,4 +10,5 @@ AlfrescoOutputModelManager.prefixConflict=Ne mogu dodati model, prefix je u konf
AlfrescoOutputModelManager.notYetAdded=Taj model jo\u0161 nije dodan
AlfrescoModelDialog.addModelFailed=Dodavanje modela nije uspjelo
AlfrescoModelDialog.modelTable.name=Ime
AlfrescoModelDialog.remove=Ukloni
AlfrescoOutputManager.failedLoadModel=U\u010Ditavanje modela iz metapodataka komponente nije uspjelo, reinicijaliziram

View File

@@ -0,0 +1,21 @@
AlfrescoOutputManager.failedLoadModel=Failed to load model from component metadata, reinitializing
AlfrescoOutputManager.schemaError.title=Error in schema
AlfrescoOutputManager.schemaError.msg=Please synchronize schema first
AlfrescoOutputModelManager.alreadyAdded=This model has already been added
AlfrescoOutputModelManager.errorReadingModel=Error reading Alfresco model file
AlfrescoOutputModelManager.notYetAdded=This model has not yet been added
AlfrescoOutputModelManager.prefixConflict=Unable to add the model, prefix conflict with previously added model for
AlfrescoModelDialog.type=Type
AlfrescoModelDialog.aspects=Aspects
AlfrescoModelDialog.availableAspects=Available Aspects
AlfrescoModelDialog.add=Add...
AlfrescoModelDialog.addModelFailed=Failed to add model
AlfrescoModelDialog.remove=Remove
AlfrescoModelDialog.removeModelFailed=Failed to remove model
AlfrescoModelDialog.missingTypeDefinitions.title=Missing type definitions
AlfrescoModelDialog.missingTypeDefinitions.msg=The chosen type refers to unknown Alfresco type(s) or aspect(s) : ${0}.\n\
Please provide the alfresco model files that define them.
AlfrescoModelDialog.missingAspectDefinitions.title=Missing aspects definitions
AlfrescoModelDialog.missingAspectDefinitions.msg=The chosen aspects refer to unknown Alfresco aspect(s) : ${0}.\nPlease provide the alfresco model files that define them.
AlfrescoModelDialog.modelTable.title=Title
AlfrescoModelDialog.modelTable.name=Name

View File

@@ -1,3 +1,4 @@
AlfrescoModelDialog.modelTable.title=Ba\u015Fl\u0131k
AlfrescoModelDialog.add=Ekle...
AlfrescoModelDialog.type=Tip
AlfrescoModelDialog.modelTable.name=Ad\u0131

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -6,4 +6,8 @@ bin.includes = META-INF/,\
plugin_en.properties,\
plugin_fr.properties,\
plugin_it.properties,\
plugin_zh.properties
plugin_zh_CN.properties\
,plugin_ru.properties\
,plugin_el.properties\
,plugin_ja.properties\
,plugin_swtbot.properties

View File

@@ -1,2 +1,3 @@
providerName=.Talend SA.
pluginName=\u0395\u03C0\u03B9\u03C7\u03B5\u03B9\u03C1\u03B7\u03C3\u03B9\u03B1\u03BA\u03CC \u03A0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03BF
repository.businessProcess=\u0395\u03C0\u03B9\u03C7\u03B5\u03B9\u03C1\u03B7\u03BC\u03B1\u03C4\u03B9\u03BA\u03AC \u039C\u03BF\u03BD\u03C4\u03AD\u03BB\u03B1

View File

@@ -0,0 +1,3 @@
pluginName=Business Plugin
providerName=.Talend SA.
repository.businessProcess=Business Models

View File

@@ -53,3 +53,4 @@ BusinessNewDiagramFileWizard.SelectDiagramRootElement=\u0627\u062E\u062A\u0631 \
BusinessAbstractParser.StringFloatConvertError=\u0644\u0627 \u064A\u0645\u0643\u0646 \u062A\u062D\u0648\u064A\u0644 \u0642\u064A\u0645\u0629 \u0646\u0635\u064A\u0629 \u0625\u0644\u0649 \u0642\u064A\u0645\u0629 \u0639\u0634\u0631\u064A\u0629
BusinessAbstractParser.StringValueDoesNotConvertToByteValue=\u0644\u0627 \u064A\u0645\u0643\u0646 \u062A\u062D\u0648\u064A\u0644 \u0642\u064A\u0645\u0629 \u0646\u0635\u064A\u0629 \u0625\u0644\u0649 \u0642\u064A\u0645\u0629 \u0628\u0627\u064A\u062A
DeleteAssignmentAction.DeleteAssignment=\u062D\u0630\u0641 \u062A\u0643\u0644\u064A\u0641
BusinessDiagramEditor.canNotSaveTitle=\u062A\u062D\u0630\u064A\u0631

View File

@@ -16,7 +16,6 @@ BusinessModelingAssistantProvider.AvaiableDomainModelElements=Verf
BusinessPaletteFactory.BidirectionalRelationShip=Bidirektionale Beziehung
BusinessPaletteFactory.CreateDirectionalRelationShip=Direktionale Beziehung hinzufügen
BusinessPaletteFactory.CreateBidirectionalRelationShip=Bidirektionale Beziehung hinzufügen
AssignmentPropertySection.Name=Name
CreateAssignmentCommand.CannotAssign=Zuordnung nicht möglich.
BusinessNewDiagramFileWizard.DiagramRootElement=Diagramm root-Element
BusinessNewDiagramFileWizard.NoDiagramRootElementSelectedError=Kein Diagram-Root Element ausgewählt

View File

@@ -75,3 +75,4 @@ BusinessAbstractParser.StringValueDoesNotConvertToByteValue=\u03A4\u03B9\u03BC\u
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=\u0391\u03C1\u03C7\u03B9\u03BA\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03BD\u03AD\u03BF\u03C5 \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03BC\u03BC\u03B1\u03C4\u03BF\u03C2 Ecore
BusinessTooltipFigure.assignedMeta={0} \u03BA\u03B1\u03B8\u03BF\u03C1\u03B9\u03C3\u03BC\u03AD\u03BD\u03B1 \u039C\u03B5\u03C4\u03B1\u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03B1
DeleteAssignmentAction.DeleteAssignment=\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u0391\u03BD\u03AC\u03B8\u03B5\u03C3\u03B7\u03C2
BusinessDiagramEditor.canNotSaveTitle=\u03A0\u03C1\u03BF\u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7

View File

@@ -64,3 +64,4 @@ BusinessAbstractParser.StringFloatConvertError=String nije mogu\u0107e konvertir
BusinessAbstractParser.StringValueDoesNotConvertToByteValue=String nije mogu\u0107e konvertirati u Byte
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=Inicijaliziranje nove datoteke za Ecore dijagram
DeleteAssignmentAction.DeleteAssignment=Izbri\u0161i pridru\u017Eivanje
BusinessDiagramEditor.canNotSaveTitle=Upozorenje

View File

@@ -80,3 +80,4 @@ BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=\u65B0\u898F Ecore \u30C0
BusinessTooltipFigure.assignedMeta=\u5272\u308A\u5F53\u3066\u3089\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF {0}
DeleteAssignmentAction.DeleteAssignment=\u5272\u308A\u5F53\u3066\u306E\u524A\u9664
BusinessDiagramEditor.canNotSaveTitle=\u8B66\u544A
BusinessDiagramEditor.canNotSaveMessage=\u4ED6\u306E\u30E6\u30FC\u30B6\u304C\u64CD\u4F5C\u4E2D\u306E\u305F\u3081\u3001\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3002

View File

@@ -57,3 +57,4 @@ BusinessAbstractParser.StringFloatConvertError=Warto\u015B\u0107 typu znakowego
BusinessAbstractParser.StringValueDoesNotConvertToByteValue=Warto\u015B\u0107 typu znakowego nie mo\u017Ce by\u0107 skonwertowana na warto\u015B\u0107 typu Byte
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=Inicjalizuj nowy plik diagramu Ecore
DeleteAssignmentAction.DeleteAssignment=Skasuj przypisanie
BusinessDiagramEditor.canNotSaveTitle=Ostrze\u017Cenie

View File

@@ -0,0 +1,83 @@
CreateDiagramAction.CreateBusinessModel=Create Business Model
CreateAssignmentCommand.CannotAssign=Cannot Assign.
FindAssignmentAction.FindAssignments=Find Assignments
EditAction.Edit=Edit
SimpleBusinessCreationWizardPage.Super=BusinessProcessCreatePage
SimpleBusinessCreationWizardPage.Title=New Business Model
SimpleBusinessCreationWizard.NewBusinessModel=New Business Model
OpenDiagramAction.EditBusinessModel=Edit Business Model
OpenDiagramAction.ReadBusinessModel=Read Business Model
DeleteAssignmentAction.DeleteAssignment =Delete Assignment
AssignmentPropertySection.Type=Type
AssignmentPropertySection.Name=Name
AssignmentPropertySection.Comment=Comment
AssignmentPropertySection.DeleteAssignment=Delete Assignment
BusinessPaletteFactory.DecisionComment=Create new Decision
BusinessPaletteFactory.TerminalComment=Create new Terminal
BusinessPaletteFactory.DocuemntComment=Create new Document
BusinessPaletteFactory.DatabaseComment=Create new Database
BusinessInitDiagramFileAction.Error=Error
BusinessVisualIDRegistry.ParseError=Unable to parse view type as a visualID number:
BusinessPaletteFactory.decision=Decision
BusinessPaletteFactory.Action=Action
BusinessPaletteFactory.Actor=Actor
BusinessPaletteFactory.ActionComment=Create new Action
BusinessPaletteFactory.CreateEllipse=Create new Ellipse
BusinessAbstractParser.InvalidInputAt=Invalid input at
BusinessAbstractParser.UnknownLiteral=Unknown literal:
BusinessPaletteFactory.Terminal=Terminal
BusinessPaletteFactory.DataComment=Create new Data
BusinessPaletteFactory.Document=Document
BusinessPaletteFactory.InputComment=Create new Input
BusinessPaletteFactory.ListComment=Create new List
BusinessPaletteFactory.CreateActor=Create new Actor
BusinessPaletteFactory.CreateGear=Create new Gear
BusinessPaletteFactory.Database=Database
BusinessPaletteFactory.Ellipse=Ellipse
BusinessPaletteFactory.Relationshop=Relationship
BusinessInitDiagramFileAction.LoadFaild=Model file loading failed
BusinessInitDiagramFileAction.IntialNew=Initialize new
BusinessInitDiagramFileAction.DiagramFile=\ diagram file
BusinessPaletteFactory.RelationshopComment=Create new Relationship
BusinessPaletteFactory.DirectionalRelationShip=Directional Relationship
BusinessPaletteFactory.CreateDirectionalRelationShip=Create new Directional Relationship
BusinessPaletteFactory.BidirectionalRelationShip=Bidirectional Relationship
BusinessPaletteFactory.CreateBidirectionalRelationShip=Create new Bidirectional Relationship
BusinessNewDiagramFileWizard.DiagramFile=Diagram file
BusinessInitDiagramFileAction.UnableToLoadResource=Unable to load resource:
BusinessAbstractParser.ValueOfTypeStringIsExpected=Value of type String is expected
BusinessCreationWizardPage.CreateBusinessDiagram=Create Business Diagram
BusinessAbstractParser.ValueOfTypeByteIsExpected=Value of type Byte is expected
BusinessAbstractParser.StringIntegerConvertError=String value does not convert to Integer value
BusinessNewDiagramFileWizard.CreateNewDiagram=Create new diagram based on {0} model content
BusinessAbstractParser.StringShortConverError=String value does not convert to Short value
BusinessAbstractParser.ValueOfShortIsExpected=Value of type Short is expected
BusinessAbstractParser.StringLongConverError=String value does not convert to Long value
BusinessAbstractParser.ValueOfLongIsExpected=Value of type Long is expected
BusinessAbstractParser.ValueOfFloatIsExpected=Value of type Float is expected
BusinessNewDiagramFileWizard.SelectRootElement=Select diagram root element
BusinessAbstractParser.StringFloatConvertError=String value does not convert to Float value
BusinessAbstractParser.ValueOfDoubleIsExpected=Value of type Double is expected
BusinessNewDiagramFileWizard.DiagramRootElement=Diagram root element
BusinessAbstractParser.ValueOfBooleanIsExpected=Value of type Boolean is expected
BusinessAbstractParser.ValueOfIntegerIsExpected=Value of type Integer is expected
BusinessAbstractParser.StringDoubleConvertError=String value does not convert to Double value
BusinessCreationWizardPage.CreatenewBusinessDiagram=Create a new Business diagram.
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=Initialize new Ecore diagram file
BusinessNewDiagramFileWizard.SelectSemanticModelElement=Select semantic model element to be depicted on diagram
BusinessNewDiagramFileWizard.SelectDiagramRootElement=Select diagram root element:
BusinessAbstractParser.ValueOfTypeCharacterIsExpected=Value of type Character is expected
BusinessNewDiagramFileWizard.NoDiagramRootElementSelectedError=No diagram root element selected
BusinessNewDiagramFileWizard.InvalidDiagramRootElementSelected=Invalid diagram root element was selected
BusinessModelingAssistantProvider.AvaiableDomainModelElements=Available domain model elements:
BusinessAbstractParser.StringValueDoesNotConvertToByteValue=String value does not convert to Byte value
BusinessModelingAssistantProvider.SelectDomainModelElement=Select domain model element
BusinessPaletteFactory.Data=Data
BusinessPaletteFactory.Input=Input
BusinessPaletteFactory.List=List
BusinessPaletteFactory.Gear=Gear
BusinessTooltipFigure.assignedMeta={0} assigned Metadata
RepositoryFactoryProxyLabelProvider.NotFound=\ (Not Found)
RepositoryFactoryProxyLabelProvider.Deleted=\ (Deleted)
BusinessDiagramEditor.canNotSaveTitle=Warning
BusinessDiagramEditor.canNotSaveMessage=Business Model is not locked by user, can not save.

View File

@@ -1,3 +1,4 @@
AssignmentPropertySection.Type=Tip
AssignmentPropertySection.Name=Ad\u0131
BusinessInitDiagramFileAction.Error=Hata
BusinessPaletteFactory.InputComment=Yeni giri\u015F olu\u015Ftur

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -79,8 +79,6 @@ BusinessPaletteFactory.Gear=Gear
BusinessTooltipFigure.assignedMeta={0} assigned Metadata
RepositoryFactoryProxyLabelProvider.NotFound=\ (Not Found)
RepositoryFactoryProxyLabelProvider.Deleted=\ (Deleted)
AssignmentPropertySection.Type=Type
AssignmentPropertySection.Name=Name
AssignmentPropertySection.Comment=Comment
BusinessDiagramEditor.canNotSaveTitle=Warning
BusinessDiagramEditor.canNotSaveMessage=Business Model is not locked by user, can not save.

View File

@@ -86,8 +86,7 @@ public class CreateDiagramAction extends AContextualAction implements IIntroActi
if (nodeType == ERepositoryObjectType.BUSINESS_PROCESS) {
enabled = true;
}
if (repositoryNode.getObject() != null
&& repositoryNode.getObject().getProperty().getItem().getState().isDeleted()) {
if (repositoryNode.getObject() != null && repositoryNode.getObject().isDeleted()) {
enabled = false;
}
}

View File

@@ -82,6 +82,7 @@ import org.talend.designer.core.ui.views.jobsettings.JobSettingsView;
import org.talend.designer.core.ui.views.jobsettings.tabs.AbstractTabComposite;
import org.talend.designer.core.utils.EmfPropertyHelper;
import org.talend.designer.core.utils.KeyHelper;
import org.talend.repository.ProjectManager;
import org.talend.repository.model.IRepositoryNode;
import org.talend.repository.model.IRepositoryNode.ENodeType;
import org.talend.repository.model.IRepositoryNode.EProperties;
@@ -411,11 +412,12 @@ public class BusinessAssignmentComposite extends AbstractTabComposite {
}
}
}
if (ProjectManager.getInstance().isInCurrentMainProject(repositoryNode)) {
CorePlugin.getDefault().getDiagramModelService()
.addDeleteAssignmentAction(mgr, tableViewer.getSelection());
}
}
CorePlugin.getDefault().getDiagramModelService().addDeleteAssignmentAction(mgr, tableViewer.getSelection());
}
}
});
Menu menu = menuMgr.createContextMenu(tableViewer.getControl());

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -3,4 +3,14 @@ output.. = class/
bin.includes = META-INF/,\
.,\
plugin_en.properties,\
plugin_zh.properties
plugin_zh_CN.properties\
,plugin_ru.properties\
,plugin_hr.properties\
,plugin_fr.properties\
,plugin_el.properties\
,plugin_ja.properties\
,plugin_it.properties\
,plugin_es.properties\
,plugin_pl.properties\
,plugin_de.properties\
,plugin_swtbot.properties

View File

@@ -0,0 +1,5 @@
pluginName = EmittersPool Model
providerName = www.example.org
components=Components
trunjob=tRunJob
format=Format

View File

@@ -87,7 +87,7 @@ FAMILY.Misc=Verschiedenes
FAMILY.MySQL=MySQL
FAMILY.Netezza=Netezza
FAMILY.OLAP_Cube=OLAP Würfel
FAMILY.Oracle=Dieser Quellcode wurde automatisiert generiert durch {0}
FAMILY.Oracle=Oracle
FAMILY.Orchestration=Instrumentation
FAMILY.Output= Ausgabe
FAMILY.ParAccel=Paraccel

View File

@@ -130,3 +130,4 @@ FAMILY.Teradata=Teradata
FAMILY.Vertica=Vertica
FAMILY.VtigerCRM=VtigerCRM
FAMILY.XML=XML
CodeGeneratorEmittersPoolFactory.updatePaletteForEditors=Mettre à jour la palette pour les éditeurs

View File

@@ -25,3 +25,4 @@ FAMILY.Input=Unos
FAMILY.MySQL=MySQL
FAMILY.Oracle=Oracle
FAMILY.PostgreSQL=PostgreSQL
FAMILY.XML=XML

View File

@@ -130,3 +130,4 @@ FAMILY.Teradata=Teradata
FAMILY.Vertica=Vertica
FAMILY.VtigerCRM=VtigerCRM
FAMILY.XML=XML
CodeGeneratorEmittersPoolFactory.updatePaletteForEditors=\u30A8\u30C7\u30A3\u30BF\u306E\u30D1\u30EC\u30C3\u30C8\u306E\u66F4\u65B0

View File

@@ -0,0 +1,135 @@
generatedcode.copyright.title=Copyright (c) 2005-2010, Talend Inc.
generatedcode.copyright.body1=This source code has been automatically generated by {0}
generatedcode.copyright.body2= / JobDesigner (CodeGenerator version {0}).
generatedcode.copyright.body3=You can find more information about Talend products at www.talend.com.
generatedcode.copyright.body4=You may distribute this code under the terms of the GNU LGPL license
generatedcode.copyright.body5=(http://www.gnu.org/licenses/lgpl.html).
generatedcode.footerprocess.nbcharsgenerated={0} characters generated by {1}
CodeGenerator.getGraphicalNode1=------process.getGraphicalNodes()------
CodeGenerator.getGraphicalNode2=------process.getGeneratingNodes()------
CodeGenerator.JET.TimeOut=JET initialisation Time Out
CodeGenerator.newLine=\n\n\n\n
CodeGenerator.Node.NotFound=Node not found in current process
JavaRoutineSynchronizer.UnsupportedOperation.Exception1=method not implemented: org.talend.designer.codegen.JavaRoutineSynchronizer line:49
JavaRoutineSynchronizer.UnsupportedOperation.Exception2=method not implemented: org.talend.designer.codegen.JavaRoutineSynchronizer line:58
JetSkeletonManager.unableLoad=unable to load skeleton update cache file
JetSkeletonManager.unableSave=unable to save skeleton update cache file
JetSkeletonManager.updateProblem=when update skeleton persistence data, there have some problems
EmfEmittersPersistence.CodeGen.DataMissing=Code Generation Datas missing. Starting Full Code Generation.
CodeGeneratorEmittersPoolFactory.PersitentData.Error=Persitent data cannot be saved :
CodeGeneratorEmittersPoolFactory.JETEmitters.NoPresent=JETEmitters Project not present, full reinitialize is needed
CodeGeneratorEmittersPoolFactory.Class.NotFound=Template still present, but class {0} has disapeared from workspace. This unit needs to be recompiled.
CodeGeneratorEmittersPoolFactory.codeThread=Code generation background thread
CodeGeneratorEmittersPoolFactory.componentCompiled=Components compiled in {0} ms
CodeGeneratorEmittersPoolFactory.dialogContent=JetEmitter Generation is canceled,to avoid problems cause by this, please press Ctrl+Shift+F3 to generate again\!
CodeGeneratorEmittersPoolFactory.failCompail=Components compile fail : \r\n
EmittersPoolFactoryImpl.Class.IllegalArg=The class ' {0}' is not a valid classifier
CodeGeneratorEmittersPoolFactory.initialException=Exception during Initialization
CodeGeneratorEmittersPoolFactory.initMessage=Generation Engine Initialization in progress...
CodeGeneratorEmittersPoolFactory.jetEmitterInitialException=Error during JetEmitter initalization
CodeGeneratorEmittersPoolFactory.operationCanceled=Operation Canceled
CodeGeneratorEmittersPoolFactory.updatePaletteForEditors=Update the palette for editors
CodeGeneratorService.invalidLanguage1=invalid language type.
CodeGeneratorService.invalidLanguage2=invalid language type.
CodeGenInit.addMarkers=Adding markers to workspace
CodeGenInit.createProject=create {0} project
CodeGenInit.deleteProject=delete {0} project
CodeGenInit.initTemplate=init Templates
CodeGenInit.removeLink=Remove linked resources
CodeGenInit.saveWorkspace=Saving workspace
DocumentRootImpl.mixed=\ (mixed:
NodesSubTree.enableParallel=__ENABLE_PARALLEL__
PoolTypeImpl.persistentPool=\ (persistentPool: {0} )
TalendJetEmitter.compileFail=\ compile fail : {0} : {1}
TalendJetEmitter.exception=Exception on
JetFilesProviderManager.unableLoad=Unable to load {0}JetFilesProviderManager.unableLoad=Unable to load {0}JetFilesProviderManager.unableLoad=Unable to load {0}
ComponentsFactory.afterSystemComponent=after system component
ComponentsFactory.componentNotFound=Component folder not found\:
ComponentsFactory.load.components=Load Components...
ComponentsFactory.parentNotRecompiled=Warning\: parents of *.inc.javajet are not recompiled \!
ComponentsLocalProviderService.componentLoadError=Component load error
ComponentsLocalProviderService.talendExchangeError=Talend Exchange Error
ComponentsPreferencePage.ButtonLabel0=Ok
ComponentsPreferencePage.configuration.LINK_STYLE=Default mapping links display as :
ComponentsPreferencePage.rowLimit=Row limit
ComponentsPreferencePage.WarningMsg=Need to restart Talend Open Studio to load extral components !
ComponentsPreferencePage.WarningTitle=Warning
ComponentsPreferencePage.directoryFieldLabel=User component folder\:
ComponentsProviderManager.unableLoad=unable to load component provider
ComponenttRunJobPreferencePage.label=Don't show corresponding job after double click on a tRunJob Component.
ComponentJobletPreferencePage.label=Don't show corresponding job after double click on a Joblet Component.
ComponenttRunJobPreferencePage.showCorrespondingJob=Show corresponding job after double click on a tRunJob Component.
XsdValidationCacheManager.unableLoadxsd=unable to load xsd validation cache file
XsdValidationCacheManager.unableSavexsd=unable to save xsd validation cache file
prefs.configuration.LINK_STYLE.AUTO=Auto
prefs.configuration.LINK_STYLE.BEZIER_CURVE=Curves
prefs.configuration.LINK_STYLE.LINE=Lines (fast)
FAMILY.AS400=AS400
FAMILY.Access=Access
FAMILY.Alfresco=Alfresco
FAMILY.Business=Business
FAMILY.Business_Intelligence=Business Intelligence
FAMILY.CentricCRM=CentricCRM
FAMILY.Charts=Charts
FAMILY.Connections=Connections
FAMILY.Custom_Code=Custom Code
FAMILY.DB2=DB2
FAMILY.DB_Generic=DB Generic
FAMILY.DB_JDBC=DB JDBC
FAMILY.DB_SCD=DB SCD
FAMILY.Data_Quality=Data Quality
FAMILY.Databases=Databases
FAMILY.ELT=ELT
FAMILY.ESB=ESB
FAMILY.EXASolution=EXASolution
FAMILY.eXist=eXist
FAMILY.FTP=FTP
FAMILY.Fields=Fields
FAMILY.File=File
FAMILY.FireBird=FireBird
FAMILY.Greenplum=Greenplum
FAMILY.HSQLDb=HSQLDb
FAMILY.Healthcare=Healthcare
FAMILY.Hive=Hive
FAMILY.Informix=Informix
FAMILY.Ingres=Ingres
FAMILY.Input=Input
FAMILY.Interbase=Interbase
FAMILY.Internet=Internet
FAMILY.Jasper=Jasper
FAMILY.JavaDB=JavaDB
FAMILY.JDBC=JDBC
FAMILY.LDAP=LDAP
FAMILY.Logs_Errors=Logs & Errors
FAMILY.MS_SQL_Server=MS SQL Server
FAMILY.MSSql=MSSql
FAMILY.Management=Management
FAMILY.MaxDB=MaxDB
FAMILY.Microsoft_AX=Microsoft AX
FAMILY.Microsoft_CRM=Microsoft CRM
FAMILY.Misc=Misc
FAMILY.MySQL=MySQL
FAMILY.Netezza=Netezza
FAMILY.OLAP_Cube=OLAP Cube
FAMILY.Oracle=Oracle
FAMILY.Orchestration=Orchestration
FAMILY.Output=Output
FAMILY.ParAccel=ParAccel
FAMILY.PostgreSQL=PostgreSQL
FAMILY.PostgresPlus=PostgresPlus
FAMILY.Processing=Processing
FAMILY.SAP=SAP
FAMILY.Sas=Sas
FAMILY.SCD=SCD
FAMILY.SCP=SCP
FAMILY.SPSS=SPSS
FAMILY.SQLite=SQLite
FAMILY.Salesforce=Salesforce
FAMILY.SugarCRM=SugarCRM
FAMILY.Sybase=Sybase
FAMILY.System=System
FAMILY.Technical=Technical
FAMILY.Teradata=Teradata
FAMILY.Vertica=Vertica
FAMILY.VtigerCRM=VtigerCRM
FAMILY.XML=XML

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -56,7 +56,7 @@
<page
category="org.talend.designer.codegen.components.localprovider.page1"
class="org.talend.designer.components.preference.labelformat.ComponentsFormatPreferencePage"
id="org.talend.designer.codegen.components.localprovider.page1"
id="org.talend.designer.codegen.components.localprovider.page2"
name="%format">
</page>
</extension>

View File

@@ -106,6 +106,7 @@
boolean hasCXFHTTPAuthConsumer = false;
boolean hasCXFHTTPAuthProvider = false;
boolean hasCXFComponentConsumer = false;
boolean hasCXFComponentConsumerWithCXFMESSAGE = false;
List<? extends INode> cxfNodes = process.getNodesOfType("cCXF");
if( null != cxfNodes && cxfNodes.size() >0 ){
hasCXFComponent = true;
@@ -120,6 +121,9 @@
if(!hasCXFComponentConsumer && incomingConnections>0){
hasCXFComponentConsumer = true;
}
if(!hasCXFComponentConsumerWithCXFMESSAGE && incomingConnections>0 && "CXF_MESSAGE".equals(formatType)){
hasCXFComponentConsumerWithCXFMESSAGE = true;
}
if("true".equals(useSecurity)){
if("SAML".equals(securityType) && (!hasCXFSamlTokenProvider || !hasCXFSamlTokenConsumer)){
if(incomingConnections == 0){
@@ -519,8 +523,64 @@ if (isProvider) {
}
%>
}
<%}%>
<%
}
if(hasCXFComponentConsumerWithCXFMESSAGE){
%>
/*
* on CXF_MESSAGE case (call a service)
* if the response is fault, then will run into problem
*/
private void addCXFMESSAGEFaultInterceptor(org.apache.camel.component.cxf.CxfEndpoint cxfEndpoint){
cxfEndpoint.getBus().getInFaultInterceptors().add(new org.apache.cxf.interceptor.DocLiteralInInterceptor() {
@Override
public void handleMessage(org.apache.cxf.message.Message message) {
// if has List content, then return
if(message.getContent(java.util.List.class) != null){
return;
}
if (isFaultMessage(message)) {
org.apache.cxf.message.Message inFaultMessage = message
.getExchange().getInFaultMessage();
org.apache.cxf.message.MessageContentsList parameters = new org.apache.cxf.message.MessageContentsList();
if (inFaultMessage != null) {
org.apache.cxf.staxutils.W3CDOMStreamWriter content = inFaultMessage
.get(org.apache.cxf.staxutils.W3CDOMStreamWriter.class);
parameters.add(content);
}
message.setContent(java.util.List.class, parameters);
}
}
private boolean isFaultMessage(org.apache.cxf.message.Message msg) {
if (msg == null
|| !(msg instanceof org.apache.cxf.binding.soap.SoapMessage)) {
return false;
}
org.apache.cxf.binding.soap.SoapMessage message = (org.apache.cxf.binding.soap.SoapMessage) msg;
//if it's not a CXF_MESSAGE, then return false
Object dataFormat = message.getContextualProperty(org.apache.camel.component.cxf.common.message.CxfConstants.DATA_FORMAT_PROPERTY);
if(org.apache.camel.component.cxf.DataFormat.CXF_MESSAGE != dataFormat){
return false;
}
javax.xml.stream.XMLStreamReader xmlReader = message
.getContent(javax.xml.stream.XMLStreamReader.class);
if (xmlReader == null) {
return false;
}
if (message.getVersion().getFault()
.equals(xmlReader.getName())
&& isRequestor(message)) {
return true;
}
return false;
}
});
}
<%}%>
/**
* please initial uri map
*/
@@ -579,7 +639,11 @@ if (isProvider) {
}
%>
);
<%
<%
if("CXF_MESSAGE".equals(formatType) && node.getIncomingConnections().size() > 0){
%>
addCXFMESSAGEFaultInterceptor(<%=endpointVar%>);
<% }
String useSL = ElementParameterParser.getValue(node, "__ENABLE_SL__");
String useSAM = ElementParameterParser.getValue(node, "__ENABLE_SAM__");
if ("true".equals(useSL)) {

View File

@@ -16,6 +16,7 @@
org.talend.core.model.metadata.types.JavaType
java.util.Map
java.util.List
java.util.ArrayList
java.util.Set
java.util.HashSet
"
@@ -37,23 +38,44 @@ boolean isRunInMultiThread = codeGenArgument.getIsRunInMultiThread();
Set<IConnection> connSet = new HashSet<IConnection>();
connSet.addAll(node.getIncomingConnections(EConnectionType.FLOW_MAIN));
connSet.addAll(node.getIncomingConnections(EConnectionType.FLOW_MERGE));
connSet.addAll(node.getOutgoingConnections(EConnectionType.FLOW_MERGE));
Set<IConnection> iterateConnSet = new HashSet<IConnection>();
iterateConnSet.addAll(node.getOutgoingConnections(EConnectionType.ITERATE));
List<IConnection> allSubProcessConnection = codeGenArgument.getAllMainSubTreeConnections();
if((codePart.equals(ECodePart.END))&&(stat)&&connSet.size()>0){
for(IConnection con:connSet){
%>
if(execStat){
runStat.updateStatOnConnection("<%=con.getUniqueName()%>"
+iterateId,2, 0);
if((codePart.equals(ECodePart.END))&&(stat)){
boolean iterateInVFComp = (node.getVirtualLinkTo() != null && node.getVirtualLinkTo() == EConnectionType.ITERATE);
if(iterateInVFComp){
List<String> needToEndConnNames = new ArrayList<String>();
INode nextNode = node.getOutgoingConnections(EConnectionType.ITERATE).get(0).getTarget();
NodeUtil.fillConnectionsForStat(needToEndConnNames, nextNode);
%>
if(execStat){
<%
for(String connName : needToEndConnNames){
%>
runStat.updateStatOnConnection("<%=connName%>"+iterateId,2, 0);
<%
}
%>
}
<%
}
if(connSet.size()>0){
for(IConnection con:connSet){
%>
if(execStat){
if(resourceMap.get("inIterateVComp") == null || !((Boolean)resourceMap.get("inIterateVComp"))){
runStat.updateStatOnConnection("<%=con.getUniqueName()%>"+iterateId,2, 0);
}
}
<%
}
}
}
<%
}
}%>
%>
<%
@@ -311,6 +333,9 @@ end_Hash.put("<%=node.getUniqueName() %>", System.currentTimeMillis());
if (!status.equals("failure")) {
status = errorThread_<%=iterateTargetNodeName %>.status;
}
if(errorThread_<%=iterateTargetNodeName %>.exception!=null){
throw errorThread_<%=iterateTargetNodeName %>.exception;
}
}else{
Integer threadErrorCode = mtp_<%=iterateTargetNodeName %>.getTalendThreadResult().getErrorCode();
String threadStatus = mtp_<%=iterateTargetNodeName %>.getTalendThreadResult().getStatus();
@@ -338,6 +363,9 @@ end_Hash.put("<%=node.getUniqueName() %>", System.currentTimeMillis());
if (!localStatus.equals("failure")) {
((java.util.Map) threadLocal.get()).put("status", errorThread_<%=iterateTargetNodeName %>.status);
}
if(errorThread_<%=iterateTargetNodeName %>.exception!=null){
throw errorThread_<%=iterateTargetNodeName %>.exception;
}
}else{
Integer threadErrorCode = mtp_<%=iterateTargetNodeName %>.getTalendThreadResult().getErrorCode();
String threadStatus = mtp_<%=iterateTargetNodeName %>.getTalendThreadResult().getStatus();

View File

@@ -8,9 +8,11 @@
org.talend.core.model.process.EConnectionType
org.talend.core.model.process.ElementParameterParser
org.talend.designer.codegen.config.CodeGeneratorArgument
org.talend.core.model.utils.NodeUtil
org.talend.core.model.process.IConnectionCategory
java.util.List
java.util.Set
java.util.ArrayList
java.util.Set
java.util.HashSet
java.util.Iterator
"
@@ -33,12 +35,12 @@
List<IConnection> allSubProcessConnection = codeGenArgument.getAllMainSubTreeConnections();
%>
/**
* [<%=node.getUniqueName() %> <%=codePart %> ] start
*/
/**
* [<%=node.getUniqueName() %> <%=codePart %> ] start
*/
<%
<%
//This part in order to feedback with the iterate_subprocess_header.javajet and iterate_subprocess_footer.javajet
if (codePart.equals(ECodePart.BEGIN)) {
@@ -47,139 +49,195 @@
for (IConnection iterateConn : iterateConnSet) {
parallelIterate = "true".equals(ElementParameterParser.getValue(iterateConn, "__ENABLE_PARALLEL__"));
if (parallelIterate) {
%>
TalendThreadPool mtp_<%=iterateConn.getTarget().getUniqueName() %> = new TalendThreadPool(<%=ElementParameterParser.getValue(iterateConn,"__NUMBER_PARALLEL__") %>);
%>
TalendThreadPool mtp_<%=iterateConn.getTarget().getUniqueName() %> = new TalendThreadPool(<%=ElementParameterParser.getValue(iterateConn,"__NUMBER_PARALLEL__") %>);
<%
if(!hasParallelIterate){
hasParallelIterate = true;
%>
<%
if(!hasParallelIterate){
hasParallelIterate = true;
%>
final Object[] lockWrite = new Object[0];
int threadIdCounter =0;
<%}%>
final Object[] lockWrite = new Object[0];
int threadIdCounter =0;
<%
}
%>
<%
<%
}
String iterateNodeName = iterateConn.getTarget().getUniqueName();
%>
%>
int NB_ITERATE_<%=iterateNodeName %> = 0; //for statistics
<%
<%
continue;
}
}
%>
%>
<%
<%
if (codePart.equals(ECodePart.BEGIN)) {
%>
<% if(trace){ %>
globalMap.put("ENABLE_TRACES_CONNECTION_<%=startNodeCid%>",Boolean.FALSE);
<% } %>
ok_Hash.put("<%=node.getUniqueName() %>", false);
start_Hash.put("<%=node.getUniqueName() %>", System.currentTimeMillis());
<%
%>
<%
if(trace){
%>
globalMap.put("ENABLE_TRACES_CONNECTION_<%=startNodeCid%>",Boolean.FALSE);
<%
}
%>
ok_Hash.put("<%=node.getUniqueName() %>", false);
start_Hash.put("<%=node.getUniqueName() %>", System.currentTimeMillis());
<%
String statCatcher = ElementParameterParser.getValue(node,"__TSTATCATCHER_STATS__");
if ((node.getProcess().getNodesOfType("tStatCatcher").size() > 0) && (statCatcher.equals("true"))) {
for (INode statCatcherNode : node.getProcess().getNodesOfType("tStatCatcher")) {
%>
<%=statCatcherNode.getUniqueName() %>.addMessage("begin","<%=node.getUniqueName() %>");
<%=statCatcherNode.getDesignSubjobStartNode().getUniqueName() %>Process(globalMap);
<%
%>
<%=statCatcherNode.getUniqueName() %>.addMessage("begin","<%=node.getUniqueName() %>");
<%=statCatcherNode.getDesignSubjobStartNode().getUniqueName() %>Process(globalMap);
<%
}
}
}
if(codePart.equals(ECodePart.MAIN)) {
List<INode> meterCatchers = (List<INode>)node.getProcess().getNodesOfType("tFlowMeterCatcher");
if ((node.getProcess().getNodesOfType("tFlowMeter").size() > 0))
{
for(IConnection temp_conn : node.getIncomingConnections(EConnectionType.FLOW_MAIN))
{
if ((node.getProcess().getNodesOfType("tFlowMeter").size() > 0)){
for(IConnection temp_conn : node.getIncomingConnections(EConnectionType.FLOW_MAIN)){
String name_conn = temp_conn.getUniqueName();
if(temp_conn.isUseByMetter())
{
%>
<%
if (meterCatchers != null) {
for (INode meterCatcher : meterCatchers) {
%>
<%=meterCatcher.getUniqueName() %>.addLineToRow("<%=name_conn%>_count");
<%
}
}
%>
<%
if(temp_conn.isUseByMetter()){
%>
<%
if (meterCatchers != null) {
for (INode meterCatcher : meterCatchers) {
%>
<%=meterCatcher.getUniqueName() %>.addLineToRow("<%=name_conn%>_count");
<%
}
}
}
}
for(IConnection temp_conn : node.getIncomingConnections(EConnectionType.FLOW_MERGE))
{
for(IConnection temp_conn : node.getIncomingConnections(EConnectionType.FLOW_MERGE)){
String name_conn = temp_conn.getUniqueName();
if(name_conn == incomingName && temp_conn.isUseByMetter())
{
%>
<%
if (meterCatchers != null) {
for (INode meterCatcher : meterCatchers) {
%>
<%=meterCatcher.getUniqueName() %>.addLineToRow("<%=name_conn%>_count");
<%
}
}
%>
<%
if(name_conn == incomingName && temp_conn.isUseByMetter()){
if (meterCatchers != null) {
for (INode meterCatcher : meterCatchers) {
%>
<%=meterCatcher.getUniqueName() %>.addLineToRow("<%=name_conn%>_count");
<%
}
}
}
}
}
}
%>
currentComponent="<%=node.getUniqueName() %>";
%>
<%
if(node.isVirtualGenerateNode()){
%>
currentVirtualComponent = "<%=NodeUtil.getVirtualUniqueName(node)%>";
<%
}
%>
currentComponent="<%=node.getUniqueName() %>";
<%
<%
connSet = new HashSet<IConnection>();
connSet.addAll(node.getIncomingConnections(EConnectionType.FLOW_MAIN));
connSet.addAll(node.getIncomingConnections(EConnectionType.FLOW_MERGE));
connSet.addAll(node.getOutgoingConnections(EConnectionType.FLOW_MERGE));
if ((codePart.equals(ECodePart.BEGIN))&&(stat)&&connSet.size()>0) {
for(IConnection con:connSet){
%>
%>
if (execStat) {
if(resourceMap.get("inIterateVComp") == null){
java.util.concurrent.ConcurrentHashMap<Object, Object> concurrentHashMap_<%=con.getUniqueName() %> = (java.util.concurrent.ConcurrentHashMap) globalMap.get("concurrentHashMap");
concurrentHashMap_<%=con.getUniqueName() %>.putIfAbsent("<%=con.getUniqueName() %>" + iterateLoop,new java.util.concurrent.atomic.AtomicInteger(0));
java.util.concurrent.atomic.AtomicInteger stats_<%=con.getUniqueName() %> = (java.util.concurrent.atomic.AtomicInteger) concurrentHashMap_<%=con.getUniqueName() %>.get("<%=con.getUniqueName() %>" + iterateLoop);
runStat.updateStatOnConnection("<%=con.getUniqueName() %>" + iterateId, stats_<%=con.getUniqueName() %>.incrementAndGet()<=1?0:1, 0);
}
}
if (execStat) {
java.util.concurrent.ConcurrentHashMap<Object, Object> concurrentHashMap_<%=con.getUniqueName() %> = (java.util.concurrent.ConcurrentHashMap) globalMap.get("concurrentHashMap");
concurrentHashMap_<%=con.getUniqueName() %>.putIfAbsent("<%=con.getUniqueName() %>" + iterateLoop,new java.util.concurrent.atomic.AtomicInteger(0));
java.util.concurrent.atomic.AtomicInteger stats_<%=con.getUniqueName() %> = (java.util.concurrent.atomic.AtomicInteger) concurrentHashMap_<%=con.getUniqueName() %>.get("<%=con.getUniqueName() %>" + iterateLoop);
runStat.updateStatOnConnection("<%=con.getUniqueName() %>" + iterateId, stats_<%=con.getUniqueName() %>.incrementAndGet()<=1?0:1, 0);
}
<% }
<%
}
}
if((codePart.equals(ECodePart.MAIN))&&(stat)&&connSet.size()>0){
for(IConnection con:connSet){
%>
%>
//<%=con.getUniqueName()%>
//<%=(String)codeGenArgument.getIncomingName()%>
//<%=con.getUniqueName()%>
//<%=(String)codeGenArgument.getIncomingName()%>
<%if (!node.getComponent().useMerge()) {%>
if(execStat){
runStat.updateStatOnConnection("<%=con.getUniqueName() %>"+iterateId,1, 1);
}
<%
} else if(con.getUniqueName().equals((String)codeGenArgument.getIncomingName())){
%>
if(execStat){
runStat.updateStatOnConnection("<%=con.getUniqueName() %>"+iterateId,1, 1);
}
<%}%>
<%if (!node.getComponent().useMerge()) {%>
if(execStat){
runStat.updateStatOnConnection("<%=con.getUniqueName() %>"+iterateId,1, 1);
}
<%
} else if(con.getUniqueName().equals((String)codeGenArgument.getIncomingName())){
%>
if(execStat){
runStat.updateStatOnConnection("<%=con.getUniqueName() %>"+iterateId,1, 1);
}
<%}%>
<%
<%
}
}
%>
%>
<%if(codePart.equals(ECodePart.BEGIN)){ %>
int tos_count_<%=node.getUniqueName() %> = 0;
<%}%>
<%
if(codePart.equals(ECodePart.BEGIN)){
%>
int tos_count_<%=node.getUniqueName() %> = 0;
<%
}
if(stat){
boolean iterateInVFComp = (node.getVirtualLinkTo() != null && node.getVirtualLinkTo() == EConnectionType.ITERATE);
if(iterateInVFComp){
if(codePart.equals(ECodePart.BEGIN)){
List<String> needToStartConnNames = new ArrayList<String>();
INode nextNode = node.getOutgoingConnections(EConnectionType.ITERATE).get(0).getTarget();
NodeUtil.fillConnectionsForStat(needToStartConnNames, nextNode);
%>
if(execStat){
<%
for(String connName : needToStartConnNames){
%>
java.util.concurrent.ConcurrentHashMap<Object, Object> concurrentHashMap_<%=connName%> = (java.util.concurrent.ConcurrentHashMap) globalMap.get("concurrentHashMap");
concurrentHashMap_<%=connName%>.putIfAbsent("<%=connName%>" + iterateLoop,new java.util.concurrent.atomic.AtomicInteger(0));
java.util.concurrent.atomic.AtomicInteger stats_<%=connName%> = (java.util.concurrent.atomic.AtomicInteger) concurrentHashMap_<%=connName%>.get("<%=connName%>" + iterateLoop);
runStat.updateStatOnConnection("<%=connName%>" + iterateId, stats_<%=connName%>.incrementAndGet()<=1?0:1, 0);
<%
}
%>
}
<%
}else if(codePart.equals(ECodePart.MAIN)){
%>
resourceMap.put("inIterateVComp", true);
<%
}else if(codePart.equals(ECodePart.END)){
%>
resourceMap.remove("inIterateVComp");
<%
}
}else{
IConnection preIterate = (node.getIncomingConnections(EConnectionType.ITERATE) != null && node.getIncomingConnections(EConnectionType.ITERATE).size() == 1) ? node.getIncomingConnections(EConnectionType.ITERATE).get(0) : null;
if(preIterate != null){
boolean iterateInVSComp = (preIterate.getSource().getVirtualLinkTo() != null && preIterate.getSource().getVirtualLinkTo() == EConnectionType.ITERATE);
if(iterateInVSComp){
if(codePart.equals(ECodePart.BEGIN)){
%>
resourceMap.remove("inIterateVComp");
<%
}else if(codePart.equals(ECodePart.END)){
%>
resourceMap.put("inIterateVComp", true);
<%
}
}
}
}
}
%>

View File

@@ -167,7 +167,9 @@
public int runJobInTOS(String[] args) {
// reset status
status = "";
String lastStr = "";
for (String arg : args) {
if (arg.equalsIgnoreCase("--context_param")) {

View File

@@ -35,9 +35,10 @@ public class CLASS
// toReturn += failure_singleThread;
// }
toReturn += "globalMap.put(\""+rootNode.getUniqueName()+ "_SUBPROCESS_STATE\", -1);\n";
toReturn += "\ne_" + rootNode.getUniqueName() + ".printStackTrace();\n";
toReturn += "globalMap.put(\""+rootNode.getUniqueName()+ "_SUBPROCESS_STATE\", -1);\n";
//List< ? extends IConnection> onSubJobErrorConns = rootNode.getOutgoingConnections(EConnectionType.ON_SUBJOB_ERROR);
//if(onSubJobErrorConns!=null){
@@ -47,8 +48,8 @@ public class CLASS
//}
if(isMultiThread){
toReturn += "\n}catch (Error e_" + rootNode.getUniqueName() + ") {\n";
toReturn += "\ne_" + rootNode.getUniqueName() + ".printStackTrace();\n";
toReturn += "globalMap.put(\""+rootNode.getUniqueName()+ "_SUBPROCESS_STATE\", -1);\n";
toReturn += "\ne_" + rootNode.getUniqueName() + ".printStackTrace();\n";
}
toReturn += "\n}";
return toReturn;

View File

@@ -260,23 +260,38 @@ public <%=JavaTypesManager.getTypeToGenerate(ctxParam.getType(),true)%> get<%=Ch
private final String projectName = "<%=codeGenArgument.getCurrentProjectName() %>";
public Integer errorCode = null;
private String currentComponent = "";
<%
if(!isRunInMultiThread ){
%>
private final java.util.Map<String, Long> start_Hash = new java.util.HashMap<String, Long>();
private final java.util.Map<String, Long> end_Hash = new java.util.HashMap<String, Long>();
private final java.util.Map<String, Boolean> ok_Hash = new java.util.HashMap<String, Boolean>();
private final java.util.Map<String, Object> globalMap = new java.util.HashMap<String, Object>();
public final java.util.List<String[]> globalBuffer = new java.util.ArrayList<String[]>();
<%
} else {
%>
private final java.util.Map<String, Long> start_Hash = java.util.Collections.synchronizedMap(new java.util.HashMap<String, Long>());
private final java.util.Map<String, Long> end_Hash = java.util.Collections.synchronizedMap(new java.util.HashMap<String, Long>());
private final java.util.Map<String, Boolean> ok_Hash = java.util.Collections.synchronizedMap(new java.util.HashMap<String, Boolean>());
private final java.util.Map<String, Object> globalMap = java.util.Collections.synchronizedMap(new java.util.HashMap<String, Object>());
public final java.util.List<String[]> globalBuffer = java.util.Collections.synchronizedList(new java.util.ArrayList<String[]>());
<% } %>
<%
//tParallelize will wrap globalMap with synchronizedMap
if(!isRunInMultiThread){
%>
private final java.util.Map<String, Object> globalMap = new java.util.HashMap<String, Object>();
<%
}else{
%>
private final java.util.Map<String, Object> globalMap = java.util.Collections.synchronizedMap(new java.util.HashMap<String, Object>());
<%
}
boolean exist_tParallelize = false;
List<? extends INode> tParallelizeList = process.getNodesOfType("tParallelize");
if(tParallelizeList != null && tParallelizeList.size() > 0){
exist_tParallelize = true;
}
if(!isRunInMultiThread && !exist_tParallelize){
%>
private final java.util.Map<String, Long> start_Hash = new java.util.HashMap<String, Long>();
private final java.util.Map<String, Long> end_Hash = new java.util.HashMap<String, Long>();
private final java.util.Map<String, Boolean> ok_Hash = new java.util.HashMap<String, Boolean>();
public final java.util.List<String[]> globalBuffer = new java.util.ArrayList<String[]>();
<%
}else{
%>
private final java.util.Map<String, Long> start_Hash = java.util.Collections.synchronizedMap(new java.util.HashMap<String, Long>());
private final java.util.Map<String, Long> end_Hash = java.util.Collections.synchronizedMap(new java.util.HashMap<String, Long>());
private final java.util.Map<String, Boolean> ok_Hash = java.util.Collections.synchronizedMap(new java.util.HashMap<String, Boolean>());
public final java.util.List<String[]> globalBuffer = java.util.Collections.synchronizedList(new java.util.ArrayList<String[]>());
<%
}
%>
<%
if (stats) {
@@ -359,6 +374,11 @@ private class TalendException extends java.lang.Exception {
private java.util.Map<String, Object> globalMap = null;
private java.lang.Exception e = null;
private String currentComponent = null;
private String virtualComponentName = null;
public void setVirtualComponentName (String virtualComponentName){
this.virtualComponentName = virtualComponentName;
}
private TalendException(java.lang.Exception e, String errorComponent, final java.util.Map<String, Object> globalMap) {
this.currentComponent= errorComponent;
@@ -374,10 +394,32 @@ private class TalendException extends java.lang.Exception {
return this.currentComponent;
}
<%//For TDI-27789%>
public String getExceptionCauseMessage(java.lang.Exception e){
Throwable cause = e;
String message = null;
int i = 10;
while (null != cause && 0 < i--) {
message = cause.getMessage();
if (null == message) {
cause = cause.getCause();
} else {
break;
}
}
if (null == message) {
message = e.getClass().getName();
}
return message;
}
@Override
public void printStackTrace() {
if (!(e instanceof TalendException || e instanceof TDieException)) {
globalMap.put(currentComponent+"_ERROR_MESSAGE",e.getMessage());
if(virtualComponentName!=null && currentComponent.indexOf(virtualComponentName+"_")==0){
globalMap.put(virtualComponentName+"_ERROR_MESSAGE",getExceptionCauseMessage(e));
}
globalMap.put(currentComponent+"_ERROR_MESSAGE",getExceptionCauseMessage(e));
System.err.println("Exception in component " + currentComponent);
}
if (!(e instanceof TDieException)) {
@@ -493,17 +535,6 @@ private class TalendException extends java.lang.Exception {
}
}
%>
} else {
<%
if (isRunInMultiThread ) {
%>
((java.util.Map)threadLocal.get()).put("status", "failure");
<%
} else {%>
status = "failure";
<%
}
%>
}
}
}

View File

@@ -297,7 +297,7 @@ for (INode node : graphicalNodes) {
}
}
String delay = ElementParameterParser.getValue(node, "__DELAY__");
if(delay!=null && !delay.trim().equals("") && !"1000".equals(delay)){
if(delay!=null && !delay.trim().equals("")){
if(sb.length()==0){
sb.append("+\"?delay=\"+");
sb.append(delay);

View File

@@ -12,16 +12,20 @@
org.talend.designer.codegen.config.NodesSubTree
org.talend.core.model.utils.NodeUtil
java.util.List
java.util.Set
java.util.Set
java.util.HashSet
java.util.Iterator
java.util.Vector
"
class="IterateSubProcessFooter"
skeleton="subprocess_header_java.skeleton"
%>
<%
CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;
INode node = (INode)codeGenArgument.getArgument();
Vector v = (Vector) codeGenArgument.getArgument();
INode node = (INode) v.get(0);
String finallyPart = v.get(1).toString();
ECodePart codePart = codeGenArgument.getCodePart();
//boolean trace = codeGenArgument.isTrace();
boolean stat = codeGenArgument.isStatistics();
@@ -51,57 +55,81 @@
schemaInstanceDeclaration = "," + schemaInstanceDeclaration.substring(0,schemaInstanceDeclaration.length()-1);
}
if(stat){
%>
if(execStat){
runStat.updateStatOnConnection("<%=iterateConn.getUniqueName() %>",2,"exec"+iterateId);
}
<%
%>
if(execStat){
runStat.updateStatOnConnection("<%=iterateConn.getUniqueName() %>",2,"exec"+iterateId);
}
<%
}
%>
} catch (java.lang.Exception e) {
this.status = "failure";
Integer localErrorCode = (Integer) (((java.util.Map) threadLocal.get()).get("errorCode"));
if (localErrorCode != null) {
if (this.errorCode == null || localErrorCode.compareTo(this.errorCode) > 0) {
this.errorCode = localErrorCode;
}
}
talendThreadPool.setErrorThread(this);
talendThreadPool.stopAllWorkers();
new TalendException(e, currentComponent, globalMap).printStackTrace();
}
this.isRunning = false;
Integer localErrorCode = (Integer) (((java.util.Map) threadLocal.get()).get("errorCode"));
String localStatus = (String) (((java.util.Map) threadLocal.get()).get("status"));
if (localErrorCode != null) {
if (this.errorCode == null || localErrorCode.compareTo(this.errorCode) > 0) {
this.errorCode = localErrorCode;
}
}
if (!this.status.equals("failure")) {
this.status = localStatus;
}
talendThreadPool.getTalendThreadResult().setErrorCode(this.errorCode);
talendThreadPool.getTalendThreadResult().setStatus(this.status);
}
}
<%=node.getUniqueName() %>Thread bt_<%=node.getUniqueName() %> = new <%=node.getUniqueName() %>Thread(globalMap<%=schemaInstanceDeclaration %>,threadIdCounter++);
mtp_<%=node.getUniqueName() %>.execute(bt_<%=node.getUniqueName() %>);
%>
} catch (java.lang.Exception e) {
this.status = "failure";
Integer localErrorCode = (Integer) (((java.util.Map) threadLocal.get()).get("errorCode"));
if (localErrorCode != null) {
if (this.errorCode == null || localErrorCode.compareTo(this.errorCode) > 0) {
this.errorCode = localErrorCode;
}
}
TalendException te = new TalendException(e, currentComponent, globalMap);
<%
if(NodeUtil.hasVirtualComponent(subTree.getNodes())){
%>
te.setVirtualComponentName(currentVirtualComponent);
<%
}
%>
this.exception = te;
talendThreadPool.setErrorThread(this);
talendThreadPool.stopAllWorkers();
<%
} finally {
try{
<%=finallyPart%>
}catch(java.lang.Exception e){
//ignore
}catch(java.lang.Error error){
//ignore
}
resourceMap = null;
}
this.isRunning = false;
Integer localErrorCode = (Integer) (((java.util.Map) threadLocal.get()).get("errorCode"));
String localStatus = (String) (((java.util.Map) threadLocal.get()).get("status"));
if (localErrorCode != null) {
if (this.errorCode == null || localErrorCode.compareTo(this.errorCode) > 0) {
this.errorCode = localErrorCode;
}
}
if (!this.status.equals("failure")) {
this.status = localStatus;
}
talendThreadPool.getTalendThreadResult().setErrorCode(this.errorCode);
talendThreadPool.getTalendThreadResult().setStatus(this.status);
}
}
<%=node.getUniqueName() %>Thread bt_<%=node.getUniqueName() %> = new <%=node.getUniqueName() %>Thread(globalMap<%=schemaInstanceDeclaration %>,threadIdCounter++);
mtp_<%=node.getUniqueName() %>.execute(bt_<%=node.getUniqueName() %>);
<%
continue;
}else {//3
if(stat){
%>
if(execStat){
runStat.updateStatOnConnection("<%=iterateConn.getUniqueName() %>", 2, "exec" + NB_ITERATE_<%=iterateNodeName %>);
}
<%
if(node.getDesignSubjobStartNode().getComponent().getName().equals("tCollector")){
%>
if(execStat){
runStat.updateStatOnIterate("<%=iterateConn.getUniqueName() %>", RunStat.END);
}
<%
}else{%>
if(execStat){
runStat.updateStatOnConnection("<%=iterateConn.getUniqueName() %>", 2, "exec" + NB_ITERATE_<%=iterateNodeName %>);
}
<%
}
}
}//3
}//2

View File

@@ -50,12 +50,10 @@ params = process.getContextManager().getDefaultContext().getContextParameterList
List<IConnection> allSubProcessConnection = codeGenArgument.getAllMainSubTreeConnections();
boolean parallelIterate = false;
for (IConnection iterateConn : iterateConnSet) { //1
%>
NB_ITERATE_<%=iterateNodeName %>++;
iterateLoop++;
<%
<%
parallelIterate = "true".equals(ElementParameterParser.getValue(iterateConn, "__ENABLE_PARALLEL__"));
if (parallelIterate) {//2
if (codePart.equals(ECodePart.BEGIN)) {//3
@@ -64,156 +62,176 @@ for (IConnection iterateConn : iterateConnSet) { //1
rowList += conn.getUniqueName()+"Struct "+conn.getUniqueName()+",";
}
rowList = rowList.substring(0, rowList.length()-1);
%>
class <%=node.getUniqueName() %>Thread extends TalendThread {//implements routines.system.TalendThreadPool.PropertySettable
%>
class <%=node.getUniqueName() %>Thread extends TalendThread {//implements routines.system.TalendThreadPool.PropertySettable
class ThreadedMap extends java.util.HashMap<String, Object> {
class ThreadedMap extends java.util.HashMap<String, Object> {
private static final long serialVersionUID = 0L;
public ThreadedMap(java.util.Map<String, Object> globalMap) {
super(globalMap);
}
@Override
public Object put(String key, Object value) {
<%if(!isRunInMultiThread){%>
synchronized (<%=process.getName()%>.this.obj) {
<%}%>
super.put(key, value);
return <%=process.getName()%>.this.globalMap.put(key, value);
<%if(!isRunInMultiThread){%>
}
<%}%>
}
}
<% if(isRunJob) {%>
private final ContextProperties localContext = new ContextProperties();
<% } %>
private java.util.Map<String, Object> globalMap = null;
boolean isRunning = false;
String iterateId = "";
int iterateLoop = 0;
<%
if(!subTree.isMergeSubTree()) {
List< ? extends IConnection> rootConns = subTree.getRootNode().getOutgoingConnections();
if ((rootConns!=null)&&(rootConns.size()>0)) {
%>
<%=createPrivateClassInstance(subTree.getRootNode(), rootConns.get(0).getName(), false)%>
<%
}
} else {
List<INode> sortedMergeBranchStarts = subTree.getSortedMergeBranchStarts();
for (INode startNode : sortedMergeBranchStarts) {
List< ? extends IConnection> rootConns = startNode.getOutgoingConnections();
if ((rootConns!=null)&&(rootConns.size()>0)) {
%>
<%=createPrivateClassInstance(startNode, rootConns.get(0).getName(), false)%>
<%
private static final long serialVersionUID = 0L;
public ThreadedMap(java.util.Map<String, Object> globalMap) {
super(globalMap);
}
@Override
public Object put(String key, Object value) {
<%if(!isRunInMultiThread){%>
synchronized (<%=process.getName()%>.this.obj) {
<%}%>
super.put(key, value);
return <%=process.getName()%>.this.globalMap.put(key, value);
<%if(!isRunInMultiThread){%>
}
<%}%>
}
}
<% if(isRunJob) {%>
private final ContextProperties localContext = new ContextProperties();
<% } %>
private java.util.Map<String, Object> globalMap = null;
boolean isRunning = false;
String iterateId = "";
int iterateLoop = 0;
<%
if(!subTree.isMergeSubTree()) {
List< ? extends IConnection> rootConns = subTree.getRootNode().getOutgoingConnections();
if ((rootConns!=null)&&(rootConns.size()>0)) {
%>
<%=createPrivateClassInstance(subTree.getRootNode(), rootConns.get(0).getName(), false)%>
<%
}
} else {
List<INode> sortedMergeBranchStarts = subTree.getSortedMergeBranchStarts();
for (INode startNode : sortedMergeBranchStarts) {
List< ? extends IConnection> rootConns = startNode.getOutgoingConnections();
if ((rootConns!=null)&&(rootConns.size()>0)) {
%>
<%=createPrivateClassInstance(startNode, rootConns.get(0).getName(), false)%>
<%
}
}
List< ? extends IConnection> rootConns = subTree.getMergeNode().getOutgoingConnections();
if ((rootConns!=null)&&(rootConns.size()>0)) {
%>
<%=createPrivateClassInstance(subTree.getMergeNode(), rootConns.get(0).getName(), false)%>
<%
}
}
List< ? extends IConnection> rootConns = subTree.getMergeNode().getOutgoingConnections();
if ((rootConns!=null)&&(rootConns.size()>0)) {
%>
<%=createPrivateClassInstance(subTree.getMergeNode(), rootConns.get(0).getName(), false)%>
<%
}
}
String schemaInstanceDeclaration = createPriveClassMethodDeclaration(subTree.getRootNode(), subTree.getRootNode().getOutgoingConnections().get(0).getName(), false, new java.util.HashSet<String>());
if (schemaInstanceDeclaration.length()>0) {
schemaInstanceDeclaration = "," + schemaInstanceDeclaration.substring(0,schemaInstanceDeclaration.length()-1);
}
%>
String schemaInstanceDeclaration = createPriveClassMethodDeclaration(subTree.getRootNode(), subTree.getRootNode().getOutgoingConnections().get(0).getName(), false, new java.util.HashSet<String>());
if (schemaInstanceDeclaration.length()>0) {
schemaInstanceDeclaration = "," + schemaInstanceDeclaration.substring(0,schemaInstanceDeclaration.length()-1);
}
%>
public <%=node.getUniqueName() %>Thread(java.util.Map<String, Object> globalMap<%=schemaInstanceDeclaration %>, int threadID) {
super();
<%
for (IConnection connection : allSubProcessConnection) {
IMetadataTable table = connection.getMetadataTable();
%>
if(<%= connection.getName() %> != null){
<%
List<IMetadataColumn> listColumns = table.getListColumns();
for (IMetadataColumn column : listColumns) {
%>this.<%= connection.getName() %>.<%= column.getLabel() %> = <%= connection.getName() %>.<%= column.getLabel() %>;
<%
}
%>
}
<%
}
%>
<%
// if codeGenArgument.getIsRunInMultiThread() is true, the job.this.globalMap will wrapped with synchronizedMap, use synchronized(job.this.globalMap) when use globalMap.keySet().iterator()
// when codeGenArgument.getIsRunInMultiThread() is false, the job.this.globalMap is HashMap, use synchronized(job.this.object) when do the job.this.globalMap.put() operation(tMap,tIterateToFlow).
if(isRunInMultiThread){%>
synchronized (globalMap) {
this.globalMap = java.util.Collections.synchronizedMap(new ThreadedMap(globalMap));
<%}else{%>
synchronized (<%=process.getName()%>.this.obj) {
this.globalMap = new ThreadedMap(globalMap);
<%}%>
public <%=node.getUniqueName() %>Thread(java.util.Map<String, Object> globalMap<%=schemaInstanceDeclaration %>, int threadID) {
super();
<%
for (IConnection connection : allSubProcessConnection) {
IMetadataTable table = connection.getMetadataTable();
%>
if(<%= connection.getName() %> != null){
<%
List<IMetadataColumn> listColumns = table.getListColumns();
for (IMetadataColumn column : listColumns) {
%>
this.<%= connection.getName() %>.<%= column.getLabel() %> = <%= connection.getName() %>.<%= column.getLabel() %>;
<%
}
%>
}
<%
}
%>
<%
// if codeGenArgument.getIsRunInMultiThread() is true, the job.this.globalMap will wrapped with synchronizedMap, use synchronized(job.this.globalMap) when use globalMap.keySet().iterator()
// when codeGenArgument.getIsRunInMultiThread() is false, the job.this.globalMap is HashMap, use synchronized(job.this.object) when do the job.this.globalMap.put() operation(tMap,tIterateToFlow).
if(isRunInMultiThread){%>
synchronized (globalMap) {
this.globalMap = java.util.Collections.synchronizedMap(new ThreadedMap(globalMap));
<%}else{%>
synchronized (<%=process.getName()%>.this.obj) {
this.globalMap = new ThreadedMap(globalMap);
<%}%>
}
iterateId = "." + threadID;
iterateLoop++;
<%if(isRunJob) {%>
//bug21906 copy context to local for mutilthread
context.synchronizeContext();
java.util.Enumeration<?> propertyNames = context.propertyNames();
while(propertyNames.hasMoreElements()) {
String propertyName = (String)propertyNames.nextElement();
String propertyValue = context.getProperty(propertyName);
localContext.setProperty(propertyName, propertyValue);
}
<% for (IContextParameter ctxParam : params){%>
localContext.<%=ctxParam.getName()%> = context.<%=ctxParam.getName()%>;
<%
}
}
%>
}
iterateId = "." + threadID;
iterateLoop++;
<%if(isRunJob) {%>
//bug21906 copy context to local for mutilthread
context.synchronizeContext();
java.util.Enumeration<?> propertyNames = context.propertyNames();
while(propertyNames.hasMoreElements()) {
String propertyName = (String)propertyNames.nextElement();
String propertyValue = context.getProperty(propertyName);
localContext.setProperty(propertyName, propertyValue);
}
<% for (IContextParameter ctxParam : params){%>
localContext.<%=ctxParam.getName()%> = context.<%=ctxParam.getName()%>;
<% } %>
<% } %>
}
public void run() {
java.util.Map threadRunResultMap = new java.util.HashMap();
threadRunResultMap.put("errorCode", null);
threadRunResultMap.put("status", "");
threadLocal.set(threadRunResultMap);
this.isRunning = true;
String currentComponent = "";
try {
<%
if(stat){
%>
if(execStat){
runStat.updateStatOnConnection("<%=iterateConn.getUniqueName() %>",0,"exec"+iterateId);
}
<%
}
}//3
continue;
}else {//2
if(stat){
%>
<%
public void run() {
java.util.Map threadRunResultMap = new java.util.HashMap();
threadRunResultMap.put("errorCode", null);
threadRunResultMap.put("status", "");
threadLocal.set(threadRunResultMap);
this.isRunning = true;
String currentComponent = "";
java.util.Map<String, Object> resourceMap = new java.util.HashMap<String, Object>();
<%
if(NodeUtil.hasVirtualComponent(subTree.getNodes())){
%>
String currentVirtualComponent = null;
<%
}
%>
try {
<%
if(stat){
%>
if(execStat){
runStat.updateStatOnConnection("<%=iterateConn.getUniqueName() %>",0,"exec"+iterateId);
}
<%
}
}//3
continue;
}else {//2
if(stat){
//iterateConn.getSource().getVirtualLinkTo() only works on the first component of a virtual component, if it works for the second one, the code should change
boolean iterateInVComp = iterateConn.getSource().getVirtualLinkTo() != null && iterateConn.getSource().getVirtualLinkTo() == EConnectionType.ITERATE;
if(!iterateInVComp){
Set<? extends IConnection> allInLineJobConns = NodeUtil.getAllInLineJobConnections(iterateConn.getTarget());
for (IConnection inLineConn : allInLineJobConns) {
%>
if(execStat){
runStat.updateStatOnConnection("<%=inLineConn.getUniqueName() %>", 3, 0);
}
<%
%>
if(execStat){
runStat.updateStatOnConnection("<%=inLineConn.getUniqueName() %>", 3, 0);
}
<%
}
%>
if(execStat){
runStat.updateStatOnConnection("<%=iterateConn.getUniqueName() %>", 1, "exec" + NB_ITERATE_<%=iterateNodeName %>);
//Thread.sleep(1000);
}
<%
}
}//2
}//1
}
if(node.getDesignSubjobStartNode().getComponent().getName().equals("tCollector")){
%>
if(execStat){
runStat.updateStatOnIterate("<%=iterateConn.getUniqueName() %>", RunStat.RUNNING);
}
<%
}else{
%>
if(execStat){
runStat.updateStatOnConnection("<%=iterateConn.getUniqueName() %>", 1, "exec" + NB_ITERATE_<%=iterateNodeName %>);
//Thread.sleep(1000);
}
<%
}
}
}//2
}//1
%>

View File

@@ -1,18 +0,0 @@
<%@ jet
package="org.talend.designer.codegen.translators"
imports="
org.talend.core.model.process.IContextParameter
org.talend.designer.codegen.config.CodeGeneratorArgument
java.util.List
java.util.Properties
java.io.ByteArrayOutputStream
org.talend.core.model.utils.TalendTextUtils
org.talend.core.model.process.IProcess2
"
class="Context"
%>
<%
CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;
IProcess2 p2 = (IProcess2) codeGenArgument.getArgument();
%>
<%=p2.getSpringContent() %>

View File

@@ -10,21 +10,24 @@
org.talend.core.model.process.ElementParameterParser
java.util.List
java.util.Iterator
java.util.Vector
org.talend.core.model.utils.NodeUtil
"
class="SubProcessFooter"
%>
<%
CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;
Vector v = (Vector) codeGenArgument.getArgument();
NodesSubTree subTree = (NodesSubTree) v.get(0);
String finallyPart = v.get(1).toString();
boolean stat = codeGenArgument.isStatistics();
NodesSubTree subTree = (NodesSubTree) codeGenArgument.getArgument();
for (INode node : subTree.getNodes()) {
for(INode node : subTree.getNodes()){
List<IMetadataTable> metadatas = node.getMetadataList();
List< ? extends IConnection> conns = node.getOutgoingConnections();
}
boolean isParallelize = false;
for (INode node : subTree.getNodes()) {
for(INode node : subTree.getNodes()){
if(node!=null){
String parallelize = ElementParameterParser.getValue(node, "__PARALLELIZE__");
if(parallelize!=null &&parallelize.equals("true")){
@@ -34,7 +37,7 @@
}
}
if(isParallelize){
%>
%>
} catch (java.lang.Exception e) {
this.status = "failure";
@@ -47,6 +50,15 @@
pool.setErrorThread(this, new TalendException(e, currentComponent, globalMap));
//pool.setErrorThread(this,e);
pool.stopAllThreads();
}finally{
try{
<%=finallyPart%>
}catch(java.lang.Exception e){
//ignore
}catch(java.lang.Error error){
//ignore
}
resourceMap = null;
}
this.isRunning = false;
@@ -76,7 +88,7 @@
}
} else {
// Start a new thread
<%=subTree.getName() %>_ParallelThread pt = new <%=subTree.getName()%>_ParallelThread(
<%=subTree.getName()%>_ParallelThread pt = new <%=subTree.getName()%>_ParallelThread(
globalMap, (Object[]) globalMap
.get("PARALLEL_FLOW_LOCK_<%=(subTree.getName()).replaceAll("tAsyncIn", "tAsyncOut")%>"));
pt.putBuffer(buffer);
@@ -87,199 +99,198 @@
} catch (java.lang.Exception te) {
throw new TalendException(te, currentComponent, globalMap);
}
<%
<%
}else{
%>
%>
}//end the resume
<%
//this part for "Resume Management"
{
INode firstNode = subTree.getNode(subTree.getName());
List<String> beforeSubProcesses = subTree.getBeforeSubProcesses();
//System.out.println(firstNode.getUniqueName());
List<? extends IConnection> outConns = firstNode.getOutgoingConnections();
//System.out.println(inConns.size());
for(IConnection conn : outConns){
// boolean activeResume = "true".equals(ElementParameterParser.getValue(conn, "__RESUMING_CHECKPOINT__"));
boolean activeResume = true;
//System.out.println("Test:" + ElementParameterParser.getValue(conn, "__RESUMING_CHECKPOINT__"));
String uniqueNameTargetNode = conn.getTarget().getUniqueName();
EConnectionType lineStyle = conn.getLineStyle();
}
}
%>
}//end the resume
<%
//this part for "Resume Management"
{
INode firstNode = subTree.getNode(subTree.getName());
List<String> beforeSubProcesses = subTree.getBeforeSubProcesses();
//System.out.println(firstNode.getUniqueName());
List<? extends IConnection> outConns = firstNode.getOutgoingConnections();
//System.out.println(inConns.size());
for(IConnection conn : outConns){
// boolean activeResume = "true".equals(ElementParameterParser.getValue(conn, "__RESUMING_CHECKPOINT__"));
boolean activeResume = true;
//System.out.println("Test:" + ElementParameterParser.getValue(conn, "__RESUMING_CHECKPOINT__"));
String uniqueNameTargetNode = conn.getTarget().getUniqueName();
EConnectionType lineStyle = conn.getLineStyle();
if(beforeSubProcesses.indexOf(uniqueNameTargetNode) != -1) {
if(activeResume){
%>
if( resumeEntryMethodName == null || globalResumeTicket){
resumeUtil.addLog("CHECKPOINT", "CONNECTION:<%=lineStyle.getName() %>:<%=subTree.getName() %>:<%=conn.getName() %><%=conn.getOutputId() > 0 ? conn.getOutputId() : "" %>", "", Thread.currentThread().getId() + "", "", "", "", "", "");
}
<%
}
%>
<%
if(stat){
%>
if(execStat){
runStat.updateStatOnConnection("<%=conn.getUniqueName() %>", 0, "ok");
}
<%
}
%>
<%= uniqueNameTargetNode %>Process(globalMap);
<%
}
}
}
%>
<%
if (subTree.getRootNode().getProcess().getNodesOfType("tFlowMeterCatcher").size() > 0
&& subTree.getRootNode().getProcess().getNodesOfType("tFlowMeter").size() >0 ) {
List<INode> metterCatchers = (List<INode>)subTree.getRootNode().getProcess().getNodesOfType("tFlowMeterCatcher");
List<INode> metters = (List<INode>)subTree.getRootNode().getProcess().getNodesOfType("tFlowMeter");
List<INode> nodes = (List<INode>)subTree.getNodes();
boolean hasMetterProcess = false;
for(INode tmp : nodes)
{
for(INode metter : metters)
{
if(tmp.getUniqueName().equals(metter.getUniqueName()))
{
hasMetterProcess = true;
break;
<%
if(subTree.getRootNode().getProcess().getNodesOfType("tFlowMeterCatcher").size() > 0
&& subTree.getRootNode().getProcess().getNodesOfType("tFlowMeter").size() > 0){
List<INode> metterCatchers = (List<INode>)subTree.getRootNode().getProcess().getNodesOfType("tFlowMeterCatcher");
List<INode> metters = (List<INode>)subTree.getRootNode().getProcess().getNodesOfType("tFlowMeter");
List<INode> nodes = (List<INode>)subTree.getNodes();
boolean hasMetterProcess = false;
for(INode tmp : nodes){
for(INode metter : metters){
if(tmp.getUniqueName().equals(metter.getUniqueName())){
hasMetterProcess = true;
break;
}
}
if(hasMetterProcess){
break;
}
}
if(hasMetterProcess){
for(INode metterCatcher : metterCatchers){
%>
<%=metterCatcher.getDesignSubjobStartNode().getUniqueName() %>Process(globalMap);
<%
}
}
}
}
if(hasMetterProcess)
{
break;
}
}
if(hasMetterProcess)
{
for (INode metterCatcher : metterCatchers) {
%>
<%=metterCatcher.getDesignSubjobStartNode().getUniqueName() %>Process(globalMap);
<%
}
}
}
%>
} catch(java.lang.Exception e) {
throw new TalendException(e, currentComponent, globalMap);
} catch(java.lang.Error error) {
<%
if(stat){
%>
runStat.stopThreadStat();
<%
}
%>
throw new java.lang.Error(error);
}
<%
//generate the code to free memory for lookup link and virtual component buffered datas
boolean firstIn = true;
boolean needGc = false;
List<INode> nodes = subTree.getNodes();
for(INode node:nodes){
boolean isVirtualGenerateNode = node.isVirtualGenerateNode();
//check the virtual component generate node
if(isVirtualGenerateNode){
String origin = ElementParameterParser.getValue(node, "__ORIGIN__");
if(origin != null && !"".equals(origin)){
if(!needGc) needGc = true;
%>
<%if(firstIn){%> finally{ <% firstIn = false;}%>
//free memory for "<%=node.getUniqueName() %>"
globalMap.remove("<%=origin %>");
<%
}
}else{
//check the Lookup link
List<? extends IConnection> lookupInput = node.getIncomingConnections(EConnectionType.FLOW_REF);
if(lookupInput!=null && lookupInput.size()>0){
if(!needGc) needGc = true;
//check the tMap like this, instanceof can't work
if(node.getClass().getName().equals("org.talend.designer.mapper.MapperComponent")){
for(IConnection connection:lookupInput){
%>
<%if(firstIn){%> finally{ <% firstIn = false;}%>
//free memory for "<%=node.getUniqueName() %>"
globalMap.remove("tHash_Lookup_<%=connection.getName() %>");
<%
}
}else{
for(IConnection connection:lookupInput){
%>
<%if(firstIn){%> finally{ <% firstIn = false;}%>
//free memory for "<%=node.getUniqueName() %>"
globalMap.remove("tHash_<%=connection.getName() %>");
<%
}
}
}
}
}
if(needGc) {
%>
//this part for "Resume Management"
{
INode firstNode = subTree.getNode(subTree.getName());
List<String> beforeSubProcesses = subTree.getBeforeSubProcesses();
//System.out.println(firstNode.getUniqueName());
List<? extends IConnection> outConns = firstNode.getOutgoingConnections();
//System.out.println(inConns.size());
for(IConnection conn : outConns){
//boolean activeResume = "true".equals(ElementParameterParser.getValue(conn, "__RESUMING_CHECKPOINT__"));
boolean activeResume = true;
//System.out.println("Test:" + ElementParameterParser.getValue(conn, "__RESUMING_CHECKPOINT__"));
String uniqueNameTargetNode = conn.getTarget().getUniqueName();
EConnectionType lineStyle = conn.getLineStyle();
}
<%
}
}//isParallelize
%>
if(beforeSubProcesses.indexOf(uniqueNameTargetNode) != -1){
if(activeResume){
%>
if(resumeEntryMethodName == null || globalResumeTicket){
resumeUtil.addLog("CHECKPOINT", "CONNECTION:<%=lineStyle.getName() %>:<%=subTree.getName() %>:<%=conn.getName() %><%=conn.getOutputId() > 0 ? conn.getOutputId() : "" %>", "", Thread.currentThread().getId() + "", "", "", "", "", "");
}
<%
}
if(stat){
%>
if(execStat){
runStat.updateStatOnConnection("<%=conn.getUniqueName() %>", 0, "ok");
}
<%
}
%>
<%= uniqueNameTargetNode %>Process(globalMap);
<%
}
}
}
%>
globalMap.put("<%=subTree.getName() %>_SUBPROCESS_STATE", 1);
}
<% if (subTree.isMethodSizeNeeded()){ %>
/**
* End of Function: <%=subTree.getName() %>Process
*/
<% } %>
}catch(java.lang.Exception e){
TalendException te = new TalendException(e, currentComponent, globalMap);
<%
if(NodeUtil.hasVirtualComponent(subTree.getNodes())){
%>
te.setVirtualComponentName(currentVirtualComponent);
<%
}
for(INode node : subTree.getNodes()){
if(node!=null){
if("tDepartitioner".equals(node.getComponent().getName())){
String cid = node.getUniqueName();
%>
if(resourceMap.get("finish_<%=cid%>") == null){
if(resourceMap.get("start_<%=cid%>") != null){
globalMap.put("THREADS_HAVE_ERROR", e);
return;
}
}
<%
}
}
}
%>
throw te;
}catch(java.lang.Error error){
<%
if(stat){
%>
runStat.stopThreadStat();
<%
}
for(INode node : subTree.getNodes()){
if(node!=null){
if("tDepartitioner".equals(node.getComponent().getName())){
String cid = node.getUniqueName();
%>
if(resourceMap.get("finish_<%=cid%>") == null){
if(resourceMap.get("start_<%=cid%>") != null){
globalMap.put("THREADS_HAVE_ERROR",error);
return;
}
}
<%
}
}
}
%>
throw error;
}finally{
<%
//generate the code to free memory for lookup link and virtual component buffered datas
List<INode> nodes = subTree.getNodes();
for(INode node:nodes){
boolean isVirtualGenerateNode = node.isVirtualGenerateNode();
//check the virtual component generate node
if(isVirtualGenerateNode){
String origin = ElementParameterParser.getValue(node, "__ORIGIN__");
if(origin != null && !"".equals(origin)){
%>
//free memory for "<%=node.getUniqueName()%>"
globalMap.remove("<%=origin%>");
<%
}
}else{
//check the Lookup link
List<? extends IConnection> lookupInput = node.getIncomingConnections(EConnectionType.FLOW_REF);
if(lookupInput!=null && lookupInput.size()>0){
//check the tMap like this, instanceof can't work
if(node.getClass().getName().equals("org.talend.designer.mapper.MapperComponent")){
for(IConnection connection:lookupInput){
%>
//free memory for "<%=node.getUniqueName()%>"
globalMap.remove("tHash_Lookup_<%=connection.getName()%>");
<%
}
}else{
for(IConnection connection:lookupInput){
%>
//free memory for "<%=node.getUniqueName()%>"
globalMap.remove("tHash_<%=connection.getName()%>");
<%
}
}
}
}
}
%>
try{
<%=finallyPart%>
}catch(java.lang.Exception e){
//ignore
}catch(java.lang.Error error){
//ignore
}
resourceMap = null;
}
<%
}//isParallelize
%>
globalMap.put("<%=subTree.getName() %>_SUBPROCESS_STATE", 1);
}
<%
if(subTree.isMethodSizeNeeded()){
%>
/**
* End of Function: <%=subTree.getName() %>Process
*/
<%
}
%>

View File

@@ -1003,16 +1003,32 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
this.isRunning = true;
String currentComponent = "";
java.util.Map<String, Object> resourceMap = new java.util.HashMap<String, Object>();
try{
<%
}else{//isParallelize
if(NodeUtil.hasVirtualComponent(subTree.getNodes())){
%>
String iterateId = "";
String currentVirtualComponent = null;
<%
}
%>
<%
if(subTree.getRootNode().getComponent().getName().equals("tCollector")){
%>
String iterateId = "." + globalMap.get("<%=subTree.getRootNode().getDesignSubjobStartNode().getUniqueName()%>_THREAD_ID");
<%
}else{
%>
String iterateId = "";
<%
}
%>
int iterateLoop = 0;
String currentComponent = "";
java.util.Map<String, Object> resourceMap = new java.util.HashMap<String, Object>();
try {
String currentMethodName = new java.lang.Exception().getStackTrace()[0].getMethodName();

View File

@@ -31,6 +31,7 @@ import org.talend.core.language.ECodeLanguage;
import org.talend.core.model.components.IComponentFileNaming;
import org.talend.core.model.components.IComponentsFactory;
import org.talend.core.model.process.EConnectionType;
import org.talend.core.model.process.ElementParameterParser;
import org.talend.core.model.process.IConnection;
import org.talend.core.model.process.IConnectionCategory;
import org.talend.core.model.process.IContext;
@@ -205,6 +206,7 @@ public class CodeGenerator implements ICodeGenerator {
* @return the generated code
* @throws CodeGeneratorException if an error occurs during Code Generation
*/
@Override
@SuppressWarnings("unchecked")
public String generateProcessCode() throws CodeGeneratorException {
// Parse Process, generate Code for Individual Components
@@ -273,14 +275,12 @@ public class CodeGenerator implements ICodeGenerator {
// Fix bug TESB-2951 Generated Codes error when Route
// starts with cFile/cFTP/cActiveMQ/cFTP/cJMS
// LiXiaopeng 2011-09-05
INode subProcessStartNode = subTree.getRootNode()
.getSubProcessStartNode(true);
String startNodeName = subProcessStartNode
.getComponent().getName();
IElementParameter family = subProcessStartNode.getElementParameter("FAMILY");
if(subProcessStartNode.isStart() && null != family && "Messaging".equals(family.getValue())){
INode subProcessStartNode = subTree.getRootNode().getSubProcessStartNode(true);
String startNodeName = subProcessStartNode.getComponent().getName();
IElementParameter family = subProcessStartNode.getElementParameter("FAMILY");
if (subProcessStartNode.isStart() && null != family && "Messaging".equals(family.getValue())) {
nodeSubTreeList.add(subTree);
} else if ("cConfig".equals(startNodeName)) {
} else if ("cConfig".equals(startNodeName)) {
// Customized remove the cConfig routeId codes.
// TESB-2825 LiXP 20110823
// Do nothing.
@@ -327,8 +327,15 @@ public class CodeGenerator implements ICodeGenerator {
componentsCode.append(generateTypedComponentCode(EInternalTemplate.PART_ENDMAIN,
subTree.getRootNode()));
componentsCode.append(generateComponentsCode(subTree, subTree.getRootNode(), ECodePart.END, null));
componentsCode.append(generateTypedComponentCode(EInternalTemplate.SUBPROCESS_FOOTER, subTree));
StringBuffer finallyPart = new StringBuffer();
finallyPart.append(generateComponentsCode(subTree, subTree.getRootNode(), ECodePart.FINALLY, null));
Vector subprocess_footerArgument = new Vector(2);
subprocess_footerArgument.add(subTree);
subprocess_footerArgument.add(finallyPart.toString());
componentsCode.append(generateTypedComponentCode(EInternalTemplate.SUBPROCESS_FOOTER,
subprocess_footerArgument));
} else {
StringBuffer finallyPart = new StringBuffer();
componentsCode.append(generateTypedComponentCode(EInternalTemplate.SUBPROCESS_HEADER, subTree));
componentsCode.append(generateComponentsCode(subTree, subTree.getMergeNode(), ECodePart.BEGIN, null));
@@ -341,13 +348,17 @@ public class CodeGenerator implements ICodeGenerator {
subTree.getRootNode()));
componentsCode.append(generateComponentsCode(subTree, startNode, ECodePart.END, null));
finallyPart.append(generateComponentsCode(subTree, startNode, ECodePart.FINALLY, null));
}
componentsCode.append(generateComponentsCode(subTree, subTree.getMergeNode(), ECodePart.END, null));
componentsCode.append(generateTypedComponentCode(EInternalTemplate.SUBPROCESS_FOOTER, subTree));
finallyPart.append(generateComponentsCode(subTree, subTree.getMergeNode(), ECodePart.FINALLY, null));
Vector subprocess_footerArgument = new Vector(2);
subprocess_footerArgument.add(subTree);
subprocess_footerArgument.add(finallyPart.toString());
componentsCode.append(generateTypedComponentCode(EInternalTemplate.SUBPROCESS_FOOTER,
subprocess_footerArgument));
}
}
}
}
@@ -355,10 +366,11 @@ public class CodeGenerator implements ICodeGenerator {
Vector footerArgument = new Vector(2);
footerArgument.add(process);
footerArgument.add(processTree.getRootNodes());
if (isCamel)
if (isCamel) {
componentsCode.append(generateTypedComponentCode(EInternalTemplate.FOOTER_ROUTE, footerArgument));
else
} else {
componentsCode.append(generateTypedComponentCode(EInternalTemplate.FOOTER, footerArgument));
}
componentsCode.append(generateTypedComponentCode(EInternalTemplate.PROCESSINFO, componentsCode.length()));
// ####
return componentsCode.toString();
@@ -404,6 +416,7 @@ public class CodeGenerator implements ICodeGenerator {
* @return the generated code
* @throws CodeGeneratorException if an error occurs during Code Generation
*/
@Override
public String generateContextCode(IContext designerContext) throws CodeGeneratorException {
if (process != null) {
if (designerContext == null) {
@@ -444,42 +457,22 @@ public class CodeGenerator implements ICodeGenerator {
}
return ""; //$NON-NLS-1$
}
/*
* ADDED for TESB-7887 By GangLiu(non-Javadoc)
*
* @see org.talend.designer.codegen.ICodeGenerator#generateSpringContent()
*/
@Override
public String generateSpringContent() throws CodeGeneratorException {
if (process == null || !( process instanceof IProcess2) ){
return null;
}
IProcess2 process2 = (IProcess2) process;
if(!process2.needsSpring() || process2.getSpringContent() == null){
return null;
}
CodeGeneratorArgument codeGenArgument = new CodeGeneratorArgument();
codeGenArgument.setJobName(jobName);
codeGenArgument.setJobVersion(jobVersion);
codeGenArgument.setNode(process);
codeGenArgument.setIsRunInMultiThread(getRunInMultiThread());
codeGenArgument.setPauseTime(CorePlugin.getDefault().getRunProcessService().getPauseTime());
JetBean jetBean = initializeJetBean(codeGenArgument);
jetBean.setTemplateRelativeUri(TemplateUtil.RESOURCES_DIRECTORY + TemplateUtil.DIR_SEP
+ EInternalTemplate.SPRING + TemplateUtil.EXT_SEP + language.getExtension() + TemplateUtil.TEMPLATE_EXT);
JetProxy proxy = new JetProxy(jetBean);
try {
return proxy.generate();
} catch (JETException e) {
log.error(e.getMessage(), e);
throw new CodeGeneratorException(e);
} catch (CoreException e) {
log.error(e.getMessage(), e);
throw new CodeGeneratorException(e);
}
if (process == null || !(process instanceof IProcess2)) {
return null;
}
IProcess2 process2 = (IProcess2) process;
if (!process2.needsSpring() || process2.getSpringContent() == null) {
return null;
}
return process2.getSpringContent();
}
/**
@@ -649,8 +642,16 @@ public class CodeGenerator implements ICodeGenerator {
codeComponent.append(generateComponentCode(subProcess, node, ECodePart.END, incomingName, typeGen));
codeComponent.append(generatesTreeCode(subProcess, node, ECodePart.END, typeGen));
codeComponent.append(generateTypedComponentCode(EInternalTemplate.ITERATE_SUBPROCESS_FOOTER, node,
ECodePart.END, incomingName, subProcess));
StringBuffer finallyPart = new StringBuffer();
// if iterate with parallel
finallyPart.append(generateComponentsCode(subProcess, node, ECodePart.FINALLY, incomingName, typeGen));
Vector iterate_Argument = new Vector(2);
iterate_Argument.add(node);
iterate_Argument.add(finallyPart.toString());
codeComponent.append(generateTypedComponentCode(EInternalTemplate.ITERATE_SUBPROCESS_FOOTER,
iterate_Argument, ECodePart.END, incomingName, subProcess));
} else {
if (ETypeGen.CAMEL == typeGen) {
if (node.getIncomingConnections() != null && node.getIncomingConnections().size() > 0) {
@@ -661,32 +662,28 @@ public class CodeGenerator implements ICodeGenerator {
}
codeComponent.append(generateComponentCode(subProcess, node, ECodePart.MAIN, incomingName, typeGen));
if (ETypeGen.CAMEL == typeGen) {
if (node.getIncomingConnections().size() < 1 && node.isStart()){
// http://jira.talendforge.org/browse/TESB-4086 XiaopengLi
String label = null;
IElementParameter parameter = node
.getElementParameter("LABEL");
if (parameter != null
&& !"__UNIQUE_NAME__".equals(parameter
.getValue())) {
label = (String) parameter.getValue();
}
if (node.getIncomingConnections().size() < 1 && node.isStart()) {
// http://jira.talendforge.org/browse/TESB-4086 XiaopengLi
String label = null;
IElementParameter parameter = node.getElementParameter("LABEL");
if (parameter != null && !"__UNIQUE_NAME__".equals(parameter.getValue())) {
label = (String) parameter.getValue();
}
/*
* Fix https://jira.talendforge.org/browse/TESB-6685
* label + uniqueName to make it unique
*/
if (label == null) {
label = node.getUniqueName();
}else{
label += "_"+node.getUniqueName();
}
if(!"cErrorHandler".equals(node.getComponent().getName())){
codeComponent.append(".routeId(\"" + label + "\")");
}
}else{
codeComponent.append(".id(\"" + node.getUniqueName() + "\")");
}
/*
* Fix https://jira.talendforge.org/browse/TESB-6685 label + uniqueName to make it unique
*/
if (label == null) {
label = node.getUniqueName();
} else {
label += "_" + node.getUniqueName();
}
if (!"cErrorHandler".equals(node.getComponent().getName())) {
codeComponent.append(".routeId(\"" + label + "\")");
}
} else {
codeComponent.append(".id(\"" + node.getUniqueName() + "\")");
}
}
codeComponent.append(generatesTreeCode(subProcess, node, ECodePart.MAIN, typeGen));
}
@@ -714,6 +711,10 @@ public class CodeGenerator implements ICodeGenerator {
// }
}
break;
case FINALLY:
codeComponent.append(generateComponentCode(subProcess, node, ECodePart.FINALLY, incomingName, typeGen));
codeComponent.append(generatesTreeCode(subProcess, node, ECodePart.FINALLY, typeGen));
break;
default:
// do nothing
}
@@ -786,24 +787,21 @@ public class CodeGenerator implements ICodeGenerator {
}
if (ETypeGen.ETL == typeGen) {
/**
* fix for bug: TDI-8508 aim: change the order of end parts to be the opposite order of begin parts
*/
// for (IConnection connection : node.getOutgoingConnections()) {
for (int i = 0; i < node.getOutgoingConnections().size(); i++) {
for (IConnection connection : node.getOutgoingConnections()) {
IConnection connection = null;
if (part == ECodePart.END) {
connection = node.getOutgoingConnections().get(node.getOutgoingConnections().size() - (i + 1));
} else {
connection = node.getOutgoingConnections().get(i);
}
if ((connection.getLineStyle() == EConnectionType.ITERATE) && (part != ECodePart.MAIN)) {
if ((connection.getLineStyle() == EConnectionType.ITERATE) && (part != ECodePart.MAIN)
&& (part != ECodePart.FINALLY)) {
continue;
}
if ((connection.getLineStyle() == EConnectionType.ON_ROWS_END) && (part != ECodePart.END)) {
if ((connection.getLineStyle() == EConnectionType.ITERATE)
&& ("true".equals(ElementParameterParser.getValue(connection, "__ENABLE_PARALLEL__"))) //$NON-NLS-1$//$NON-NLS-2$
&& part == ECodePart.FINALLY) {
continue;
}
if ((connection.getLineStyle() == EConnectionType.ON_ROWS_END) && (part != ECodePart.END)
&& (part != ECodePart.FINALLY)) {
continue;
}
@@ -886,8 +884,9 @@ public class CodeGenerator implements ICodeGenerator {
StringBuffer content = new StringBuffer();
try {
if (typeGen == ETypeGen.ETL)
if (typeGen == ETypeGen.ETL) {
content.append(generateTypedComponentCode(EInternalTemplate.PART_HEADER, node, part, incomingName, subProcess));
}
IComponentFileNaming componentFileNaming = ComponentsFactoryProvider.getFileNamingInstance();
String templateURI = node.getComponent().getPathSource() + TemplateUtil.DIR_SEP + node.getComponent().getName()
@@ -897,8 +896,9 @@ public class CodeGenerator implements ICodeGenerator {
jetBean.setTemplateRelativeUri(templateURI);
JetProxy proxy = new JetProxy(jetBean);
content.append(proxy.generate());
if (typeGen == ETypeGen.ETL)
if (typeGen == ETypeGen.ETL) {
content.append(generateTypedComponentCode(EInternalTemplate.PART_FOOTER, node, part, incomingName, subProcess));
}
} catch (JETException jetException) {
log.error(jetException.getMessage(), jetException);
@@ -919,6 +919,7 @@ public class CodeGenerator implements ICodeGenerator {
* @return the generated code
* @throws CodeGeneratorException if an error occurs during Code Generation
*/
@Override
public String generateComponentCode(INode node, ECodePart part) throws CodeGeneratorException {
CodeGeneratorArgument argument = new CodeGeneratorArgument();
argument.setNode(node);
@@ -1002,6 +1003,7 @@ public class CodeGenerator implements ICodeGenerator {
* @see org.talend.designer.codegen.ICodeGenerator#generateComponentCodeWithRows (java.lang.String,
* java.lang.Object)
*/
@Override
public String generateComponentCodeWithRows(String nodeName, IAloneProcessNodeConfigurer nodeConfigurer) {
StringBuffer componentsCode = new StringBuffer();
@@ -1032,6 +1034,7 @@ public class CodeGenerator implements ICodeGenerator {
// nodeConfigurer.configure(subTreeNode);
// }
componentsCode.append(generateTypedComponentCode(EInternalTemplate.SUBPROCESS_HEADER, subTree));
StringBuffer finallyPart = new StringBuffer();
if (subTreeNode != null) {
if (!subTree.isMergeSubTree()) {
@@ -1051,6 +1054,8 @@ public class CodeGenerator implements ICodeGenerator {
// generateTypedComponentCode
// (EInternalTemplate.SUBPROCESS_FOOTER,
// subTree));
finallyPart
.append(generateComponentsCode(subTree, subTree.getRootNode(), ECodePart.FINALLY, null));
} else {
// componentsCode.append(
// generateTypedComponentCode
@@ -1065,6 +1070,8 @@ public class CodeGenerator implements ICodeGenerator {
componentsCode.append(generateComponentsCode(subTree, startNode, ECodePart.MAIN, null));
componentsCode.append(generateComponentsCode(subTree, startNode, ECodePart.END, null));
finallyPart.append(generateComponentsCode(subTree, startNode, ECodePart.FINALLY, null));
}
componentsCode.append(generateTypedComponentCode(EInternalTemplate.PART_ENDMAIN,
@@ -1073,13 +1080,20 @@ public class CodeGenerator implements ICodeGenerator {
componentsCode
.append(generateComponentsCode(subTree, subTree.getMergeNode(), ECodePart.END, null));
finallyPart.append(generateComponentsCode(subTree, subTree.getMergeNode(), ECodePart.FINALLY,
null));
// componentsCode.append(
// generateTypedComponentCode
// (EInternalTemplate.SUBPROCESS_FOOTER,
// subTree));
}
}
componentsCode.append(generateTypedComponentCode(EInternalTemplate.SUBPROCESS_FOOTER, subTree));
Vector subprocess_footerArgument = new Vector(2);
subprocess_footerArgument.add(subTree);
subprocess_footerArgument.add(finallyPart.toString());
componentsCode.append(generateTypedComponentCode(EInternalTemplate.SUBPROCESS_FOOTER,
subprocess_footerArgument));
}
Vector footerArgument = new Vector(2);
footerArgument.add(process);
@@ -1115,6 +1129,7 @@ public class CodeGenerator implements ICodeGenerator {
return null;
}
@Override
public void setContextName(String contextName) {
this.contextName = contextName;
}

View File

@@ -13,17 +13,21 @@
package org.talend.designer.codegen;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.ui.PlatformUI;
import org.talend.commons.ui.runtime.CommonUIPlugin;
import org.talend.core.CorePlugin;
import org.talend.core.GlobalServiceRegister;
import org.talend.core.ILibraryManagerService;
import org.talend.core.language.ECodeLanguage;
import org.talend.core.language.LanguageManager;
import org.talend.core.model.components.ComponentCompilations;
import org.talend.core.model.process.Element;
import org.talend.core.model.process.IProcess;
import org.talend.designer.codegen.i18n.Messages;
import org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory;
import org.talend.designer.core.ICamelDesignerCoreService;
import org.talend.designer.core.IDesignerCoreService;
import org.talend.designer.core.ui.views.properties.IComponentSettingsView;
import org.talend.repository.model.ComponentsFactoryProvider;
/**
@@ -137,18 +141,33 @@ public class CodeGeneratorService implements ICodeGeneratorService {
*/
@Override
public Job refreshTemplates() {
// this will force to refresh all components libs when install run ctrl+f3
Element oldComponent = null;
IComponentSettingsView viewer = null;
if (!CommonUIPlugin.isFullyHeadless()) {
// TDI-25866:In case select a component and sctrl+shift+f3,need clean its componentSetting view
viewer = (IComponentSettingsView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.findView(IComponentSettingsView.ID);
if (viewer != null) {
oldComponent = viewer.getElement();
viewer.cleanDisplay();
}
}
ComponentCompilations.deleteMarkers();
ComponentsFactoryProvider.getInstance().resetCache();
ILibraryManagerService librairesManagerService = (ILibraryManagerService) GlobalServiceRegister.getDefault().getService(
ILibraryManagerService.class);
librairesManagerService.clearCache();
ComponentCompilations.deleteMarkers();
ComponentsFactoryProvider.getInstance().resetCache();
Job job = CodeGeneratorEmittersPoolFactory.initialize();
CorePlugin.getDefault().getLibrariesService().syncLibraries();
Job job = CodeGeneratorEmittersPoolFactory.initialize();
// achen modify to record ctrl+shift+f3 is pressed to fix bug 0006107
IDesignerCoreService designerCoreService = (IDesignerCoreService) GlobalServiceRegister.getDefault().getService(
IDesignerCoreService.class);
designerCoreService.getLastGeneratedJobsDateMap().clear();
if (oldComponent != null) {
viewer.setElement(oldComponent);
}
return job;
}
}

View File

@@ -77,9 +77,14 @@ public class JavaRoutineSynchronizer extends AbstractRoutineSynchronizer {
*/
@Override
public void syncAllRoutines() throws SystemException {
syncRoutineItems(getRoutines());
syncRoutineItems(getRoutines(),false);
}
@Override
public void syncAllRoutinesForLogOn() throws SystemException {
syncRoutineItems(getRoutines(),true);
}
/*
* (non-Javadoc)
*
@@ -87,13 +92,18 @@ public class JavaRoutineSynchronizer extends AbstractRoutineSynchronizer {
*/
@Override
public void syncAllPigudf() throws SystemException {
syncRoutineItems(getAllPigudf());
syncRoutineItems(getAllPigudf(),false);
}
@Override
public void syncAllPigudfForLogOn() throws SystemException {
syncRoutineItems(getAllPigudf(), true);
}
private void syncRoutineItems(List<IRepositoryViewObject> routineObjects) throws SystemException {
private void syncRoutineItems(List<IRepositoryViewObject> routineObjects,boolean forceUpdate) throws SystemException {
for (IRepositoryViewObject routine : routineObjects) {
RoutineItem routineItem = (RoutineItem) routine.getProperty().getItem();
syncRoutine(routineItem, true);
syncRoutine(routineItem, true,forceUpdate);
}
try {

View File

@@ -13,12 +13,6 @@
package org.talend.designer.codegen;
import org.eclipse.jface.action.Action;
import org.talend.core.CorePlugin;
import org.talend.core.GlobalServiceRegister;
import org.talend.core.model.components.ComponentCompilations;
import org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory;
import org.talend.designer.core.IDesignerCoreService;
import org.talend.repository.model.ComponentsFactoryProvider;
/**
* DOC mhirt class global comment. Detailled comment <br/>
@@ -40,14 +34,8 @@ public class RefreshTemplatesAction extends Action {
*/
@Override
public void run() {
ComponentCompilations.deleteMarkers();
ComponentsFactoryProvider.getInstance().resetCache();
CorePlugin.getDefault().getLibrariesService().syncLibraries();
CodeGeneratorEmittersPoolFactory.initialize();
// achen modify to record ctrl+shift+f3 is pressed to fix bug 0006107
IDesignerCoreService designerCoreService = (IDesignerCoreService) GlobalServiceRegister.getDefault().getService(
IDesignerCoreService.class);
designerCoreService.getLastGeneratedJobsDateMap().clear();
CodeGeneratorService service = new CodeGeneratorService();
service.refreshTemplates();
}
}

View File

@@ -27,7 +27,6 @@ import org.osgi.framework.Bundle;
import org.talend.commons.CommonsPlugin;
import org.talend.commons.exception.BusinessException;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.commons.utils.io.SHA1Util;
import org.talend.commons.xml.XSDValidator;
import org.talend.core.model.ModelPlugin;
import org.talend.designer.core.model.components.ComponentFilesNaming;
@@ -49,18 +48,14 @@ public class ComponentFileChecker {
checkFiles(currentFolder, languageSuffix);
File xmlMainFile = new File(currentFolder, ComponentFilesNaming.getInstance().getMainXMLFileName(currentFolder.getName(),
languageSuffix));
XsdValidationCacheManager xsdValidationCacheManager = XsdValidationCacheManager.getInstance();
FileInputStream fis = null;
try {
fis = new FileInputStream(xmlMainFile);
String sha1 = SHA1Util.calculateFromTextStream(fis);
// do not check anymore XSD when be in headless mode.
// check is mainly usefull for GUI to be able to check why component is not loaded after be developped.
// if be in headless mode (like commandline), it's supposed to use only stable components
if (!CommonsPlugin.isHeadless() && xsdValidationCacheManager.needCheck(xmlMainFile, sha1)) {
if (!CommonsPlugin.isHeadless()) {
checkXSD(xmlMainFile);
xsdValidationCacheManager.setChecked(xmlMainFile, sha1);
}
} catch (FileNotFoundException e) {
ExceptionHandler.process(e);

View File

@@ -14,28 +14,24 @@ package org.talend.designer.codegen.components.model;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.Set;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.Priority;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
@@ -53,10 +49,14 @@ import org.osgi.framework.ServiceReference;
import org.osgi.service.packageadmin.PackageAdmin;
import org.talend.commons.CommonsPlugin;
import org.talend.commons.exception.BusinessException;
import org.talend.commons.ui.runtime.CommonUIPlugin;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.commons.utils.io.FilesUtils;
import org.talend.commons.utils.io.SHA1Util;
import org.talend.core.CorePlugin;
import org.talend.core.GlobalServiceRegister;
import org.talend.core.language.ECodeLanguage;
import org.talend.core.context.Context;
import org.talend.core.context.RepositoryContext;
import org.talend.core.language.LanguageManager;
import org.talend.core.model.component_cache.ComponentCachePackage;
import org.talend.core.model.component_cache.ComponentInfo;
@@ -69,7 +69,6 @@ import org.talend.core.model.components.IComponent;
import org.talend.core.model.components.IComponentsFactory;
import org.talend.core.model.components.IComponentsHandler;
import org.talend.core.model.general.Project;
import org.talend.core.model.properties.ComponentSetting;
import org.talend.core.ui.branding.IBrandingService;
import org.talend.core.ui.images.CoreImageProvider;
import org.talend.core.utils.TalendCacheUtils;
@@ -82,14 +81,7 @@ import org.talend.designer.core.model.components.ComponentFilesNaming;
import org.talend.designer.core.model.components.EmfComponent;
import org.talend.designer.core.model.components.manager.ComponentManager;
import org.talend.designer.core.model.process.AbstractProcessProvider;
import org.talend.repository.ProjectManager;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.talend.repository.model.ComponentsFactoryProvider;
/**
* Component factory that look for each component and load their information. <br/>
@@ -111,9 +103,9 @@ public class ComponentsFactory implements IComponentsFactory {
private static HashSet<IComponent> componentList = null;
private static List<IComponent> customComponentList = null;
private static HashSet<IComponent> customComponentList = null;
private List<IComponent> userComponentList = null;
private HashSet<IComponent> userComponentList = null;
private IProgressMonitor monitor;
@@ -127,8 +119,6 @@ public class ComponentsFactory implements IComponentsFactory {
private static Map<String, AbstractComponentsProvider> componentsAndProvider = new HashMap<String, AbstractComponentsProvider>();
private Map<String, String> allComponents;
// 1. only the in the directory /components ,not including /resource
// 2. include the skeleton files and external include files
private static ArrayList<String> skeletonList = null;
@@ -137,119 +127,13 @@ public class ComponentsFactory implements IComponentsFactory {
private static final String INCLUDEFILEINJET_SUFFIX = ".inc.javajet"; //$NON-NLS-1$
private static final String FAMILY_SPEARATOR = "--FAMILY--"; //$NON-NLS-1$
private boolean isCreated = false;
private boolean isReset = false;
private IComponentsHandler componentsHandler;// Added by Marvin Wang on Jan. 11, 2012 for M/R.
// public XmiResourceManager xmiResourceManager = new XmiResourceManager();
// this list of component is always needed, they must always be loaded at least, since they can be used for code
// generation indirectly.
// tFileInputFullRow + tSocketOutput : needed for DataViewer
private static final String[] COMPONENTS_ALWAYS_NEEDED = { "tPrejob", "tPostjob", //$NON-NLS-1$ //$NON-NLS-2$
"tJava", "tLibraryLoad", "tFileInputFullRow", "tSocketOutput", "tFilterRow", "tELTMysqlMap" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
private static boolean cleanDone = false;
public ComponentsFactory() {
if (!INCLUDEFILEINJET_SUFFIX.equals(".inc.javajet")) { //$NON-NLS-1$
ExceptionHandler.process(new IllegalStateException(Messages.getString("ComponentsFactory.parentNotRecompiled")), //$NON-NLS-1$
Priority.WARN);
}
}
private List<ComponentSetting> getComponentsFromProject() {
// TODO check components used from ref projects.
Project currentProject = ProjectManager.getInstance().getCurrentProject();
if (currentProject != null && currentProject.getEmfProject() != null) {
List<ComponentSetting> components = currentProject.getEmfProject().getComponentsSettings();
return components;
}
return Collections.emptyList();
}
private boolean isComponentVisible(String componentName) {
Boolean visible = Boolean.TRUE;
if (ArrayUtils.contains(COMPONENTS_ALWAYS_NEEDED, componentName)) {
return true;
}
List<ComponentSetting> settingsFromCompName = new ArrayList<ComponentSetting>();
// here we just check if the component is visible somewhere in the settings.
// if it's visible in any category, we will load the component
// if the component is unknown (new component?), we will load also
// (technical components will always loaded by default as they're not saved in componentSettings)
// to avoid any problem, we also load by default the category named "Technical".
for (ComponentSetting componentSetting : getComponentsFromProject()) {
String name = componentSetting.getName();
if (name != null && name.equals(componentName)) {
settingsFromCompName.add(componentSetting);
// if (componentSetting.isHidden()) {
// // hide component only if hidden in all projects
// if (manager.getReferencedProjects(manager.getCurrentProject()).size() > 0
// && isHiddenInRefProjects(componentName)) {
// visible = Boolean.FALSE;
// } else {
// visible = Boolean.TRUE;
// componentSetting.setHidden(false);
// }
// } else {
// return true;
// }
if ("Technical".equals(componentSetting.getFamily())) { //$NON-NLS-1$
return true;
}
}
}
// load components those visible in any category
int hideCount = 0;
for (ComponentSetting componentSetting : settingsFromCompName) {
if (componentSetting.isHidden()) {
// hide component only if hidden in all projects
if (isHiddenInRefProjects(componentSetting)) {
hideCount++;
} else {
visible = Boolean.TRUE;
componentSetting.setHidden(false);
}
} else {
visible = Boolean.TRUE;
}
}
if (settingsFromCompName.size() > 0 && hideCount == settingsFromCompName.size()) {
visible = Boolean.FALSE;
}
return visible;
}
private boolean isHiddenInRefProjects(ComponentSetting settingInMain) {
if (settingInMain == null) {
return false;
}
int hiddenCount = 0;
ProjectManager manager = ProjectManager.getInstance();
List<Project> referencedProjects = manager.getReferencedProjects();
for (Project curProject : referencedProjects) {
List<ComponentSetting> componentsSettings = curProject.getEmfProject().getComponentsSettings();
for (ComponentSetting setting : componentsSettings) {
if (setting.isHidden() && setting.getName().equals(settingInMain.getName())
&& setting.getFamily().equals(settingInMain.getFamily())) {
hiddenCount++;
}
}
}
if (hiddenCount == referencedProjects.size()) {
return true;
}
return false;
}
private void init(boolean duringLogon) {
@@ -259,164 +143,74 @@ public class ComponentsFactory implements IComponentsFactory {
// TimeMeasure.display = true;
// TimeMeasure.displaySteps = true;
// TimeMeasure.measureActive = true;
// TimeMeasure.begin("initComponents");
componentList = new HashSet<IComponent>();
customComponentList = new ArrayList<IComponent>();
customComponentList = new HashSet<IComponent>();
skeletonList = new ArrayList<String>();
userComponentList = new HashSet<IComponent>();
String installLocation = new Path(Platform.getConfigurationLocation().getURL().getPath()).toFile().getAbsolutePath();
componentToProviderMap = new HashMap<IComponent, AbstractComponentsProvider>();
boolean isNeedClean = TalendCacheUtils.cleanComponentCache();
boolean isNeedClean = !cleanDone && TalendCacheUtils.isSetCleanComponentCache();
cleanDone = true; // only check this parameter one time, or it will reinitialize things all the time...
isCreated = hasComponentFile(installLocation) && !isNeedClean;
if (isReset) {
isCreated = false;
}
ComponentsCache cache = ComponentManager.getInstance();
ComponentsCache cache = ComponentManager.getComponentCache();
try {
if (isCreated) {
ComponentsCache loadCache = loadComponentResource(installLocation);
cache.getComponentEntryMap().putAll(loadCache.getComponentEntryMap());
// if cache is created and empty, means we never loaded it before.
// if it was already loaded, then no need to go again, since it's a static variable, it's still in
// memory.
// it avoids to reload from disk again even more for commandline at each logon, since it's no use.
if (cache.getComponentEntryMap().isEmpty()) {
ComponentsCache loadCache = loadComponentResource(installLocation);
cache.getComponentEntryMap().putAll(loadCache.getComponentEntryMap());
}
} else {
cache.getComponentEntryMap().clear();
}
// check if any component is missing from any provider
// if yes, re-create the cache.
if (isCreated && isAnyComponentMissing()) {
cache.getComponentEntryMap().clear();
isCreated = false;
}
} catch (IOException e) {
ExceptionHandler.process(e);
cache.getComponentEntryMap().clear();
isCreated = false;
}
// 1.Load Component from extension point: components_provider
if (isCreated) {
try {
reloadComponentsFromCache();
} catch (Exception e) {
ExceptionHandler.process(e);
// if any exception happen, reset all cache
cache.getComponentEntryMap().clear();
isCreated = false;
}
}
if (!isCreated) {
loadComponentsFromComponentsProviderExtension();
}
loadComponentsFromComponentsProviderExtension();
// TimeMeasure.step("initComponents", "loadComponentsFromProvider");
// 2.Load Component from extension point: component_definition
loadComponentsFromExtensions();
// TimeMeasure.step("initComponents", "loadComponentsFromExtension[joblets?]");
// TimeMeasure.step("initComponents", "reloadFromCache");
ComponentManager.saveResource(); // will save only if needed.
if (!isCreated) {
XsdValidationCacheManager.getInstance().save();
ComponentManager.saveResource();
isReset = false;
}
// TimeMeasure.step("initComponents", "createCache");
log.debug(componentList.size() + " components loaded in " + (System.currentTimeMillis() - startTime) + " ms"); //$NON-NLS-1$ //$NON-NLS-2$
if (!duringLogon) {
// CorePlugin.getDefault().getRunProcessService().updateLibraries(new HashSet<String>(), null);
}
// TimeMeasure.step("initComponents", "updateLibraries");
// TimeMeasure.end("initComponents");
// TimeMeasure.display = false;
// TimeMeasure.displaySteps = false;
// TimeMeasure.measureActive = false;
}
private boolean isAnyComponentMissing() throws IOException {
final Set<String> componentsList = ComponentManager.getInstance().getComponentEntryMap().keySet();
ECodeLanguage currentLanguage = LanguageManager.getCurrentLanguage();
final FileFilter fileFilter = new FileFilter() {
@Override
public boolean accept(final File file) {
return file.isDirectory() && file.getName().charAt(0) != '.'
&& !file.getName().equals(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER)
&& isComponentVisible(file.getName());
if (!CommonUIPlugin.isFullyHeadless()) {
RepositoryContext repositoryContext = (RepositoryContext) CorePlugin.getContext().getProperty(
Context.REPOSITORY_CONTEXT_KEY);
if (repositoryContext == null) {
return;
}
};
for (AbstractComponentsProvider componentsProvider : ComponentsProviderManager.getInstance().getProviders()) {
File source = componentsProvider.getInstallationFolder();
if (source != null && source.exists()) {
for (File component : source.listFiles(fileFilter)) {
if (!componentsList.contains(component.getName())) {
String mainXmlFileName = ComponentFilesNaming.getInstance().getMainXMLFileName(component.getName(),
currentLanguage.getName());
File mainXmlFile = new File(component, mainXmlFileName);
if (mainXmlFile.exists()) {
return true;
}
// no xml file for this language, ignore it
}
}
Project project = repositoryContext.getProject();
if (project == null) {
return;
}
org.talend.core.model.properties.Project emfProject = project.getEmfProject();
if (emfProject == null) {
return;
}
EList list = emfProject.getComponentsSettings();
if (list.isEmpty()) {
ComponentsFactoryProvider.saveComponentVisibilityStatus();
}
}
return false;
}
/**
* DOC guanglong.du Comment method "reloadComponentsFromCache".
*
* @throws BusinessException
*/
private void reloadComponentsFromCache() throws BusinessException {
ComponentsCache cache = ComponentManager.getInstance();
Iterator it = cache.getComponentEntryMap().entrySet().iterator();
while (it.hasNext()) {
Map.Entry<String, EList<ComponentInfo>> entry = (Map.Entry<String, EList<ComponentInfo>>) it.next();
EList<ComponentInfo> infoList = entry.getValue();
String name = entry.getKey();
if (!isComponentVisible(name)) {
continue;
}
for (ComponentInfo info : infoList) {
IBrandingService service = (IBrandingService) GlobalServiceRegister.getDefault().getService(
IBrandingService.class);
String[] availableComponents = service.getBrandingConfiguration().getAvailableComponents();
EmfComponent currentComp = new EmfComponent(info.getUriString(), info.getSourceBundleName(), name,
info.getPathSource(), cache, true);
// if the component is not needed in the current branding,
// and that this one IS NOT a specific component for code generation
// just don't load it
if (availableComponents != null
&& !ArrayUtils.contains(availableComponents, currentComp.getName())
&& !(ArrayUtils.contains(COMPONENTS_ALWAYS_NEEDED, currentComp.getName())
|| currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) { //$NON-NLS-1$
continue;
}
// if the component is not needed in the current branding,
// and that this one IS a specific component for code generation,
// hide it
if (availableComponents != null
&& !ArrayUtils.contains(availableComponents, currentComp.getName())
&& (ArrayUtils.contains(COMPONENTS_ALWAYS_NEEDED, currentComp.getName())
|| currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) { //$NON-NLS-1$
currentComp.setVisible(false);
currentComp.setTechnical(true);
}
currentComp.setPaletteType(currentComp.getType());
if (!componentList.contains(currentComp)) {
currentComp.setResourceBundle(getComponentResourceBundle(currentComp,
ComponentBundleToPath.getPathFromBundle(info.getSourceBundleName()) + info.getUriString(),
info.getPathSource(), null));
componentList.add(currentComp);
}
}
}
}
/**
@@ -464,15 +258,6 @@ public class ComponentsFactory implements IComponentsFactory {
}
}
public void loadComponentsFromExtension(String id) {
ComponentsProviderManager componentsProviderManager = ComponentsProviderManager.getInstance();
for (AbstractComponentsProvider componentsProvider : componentsProviderManager.getProviders()) {
if (componentsProvider.getId() != null && componentsProvider.getId().equals(id)) {
loadComponents(componentsProvider);
}
}
}
private void loadComponents(AbstractComponentsProvider componentsProvider) {
if (componentsProvider != null) {
try {
@@ -493,8 +278,8 @@ public class ComponentsFactory implements IComponentsFactory {
ComponentsProviderManager componentsProviderManager = ComponentsProviderManager.getInstance();
AbstractComponentsProvider componentsProvider = componentsProviderManager.loadUserComponentsProvidersFromExtension();
// remove old user components
if (this.userComponentList != null) {
ComponentsCache cache = ComponentManager.getInstance();
if (!this.userComponentList.isEmpty()) {
ComponentsCache cache = ComponentManager.getComponentCache();
for (IComponent component : userComponentList) {
if (componentList != null && componentList.contains(component)) {
componentList.remove(component);
@@ -504,13 +289,12 @@ public class ComponentsFactory implements IComponentsFactory {
}
if (cache.getComponentEntryMap().get(component.getName()) != null) {
cache.getComponentEntryMap().remove(component.getName());
ComponentManager.setModified(true);
}
}
}
loadComponents(componentsProvider);
if (!CommonsPlugin.isHeadless()) {
ComponentManager.saveResource();
}
ComponentManager.saveResource();
}
private void removeOldComponentsUserFolder() {
@@ -530,17 +314,6 @@ public class ComponentsFactory implements IComponentsFactory {
}
private void loadComponentsFromFolder(String pathSource, AbstractComponentsProvider provider) {
if (pathSource != null) {
Path userComponent = new Path(pathSource);
Path templatePath = new Path(IComponentsFactory.COMPONENTS_INNER_FOLDER + File.separatorChar
+ IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER + File.separatorChar
+ ComponentUtilities.getExtFolder(OLD_COMPONENTS_USER_INNER_FOLDER));
if (userComponent.equals(templatePath)) {
this.userComponentList = new ArrayList<IComponent>();
}
}
boolean isCustom = false;
if ("org.talend.designer.components.model.UserComponentsProvider".equals(provider.getId())
|| "org.talend.designer.components.exchange.ExchangeComponentsProvider".equals(provider.getId())) {
@@ -561,8 +334,7 @@ public class ComponentsFactory implements IComponentsFactory {
@Override
public boolean accept(final File file) {
return file.isDirectory() && file.getName().charAt(0) != '.'
&& !file.getName().equals(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER)
&& isComponentVisible(file.getName());
&& !file.getName().equals(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER);
}
};
@@ -599,19 +371,17 @@ public class ComponentsFactory implements IComponentsFactory {
if (context == null) {
context = CodeGeneratorActivator.getDefault().getBundle().getBundleContext();
}
// if (Platform.getProduct() != null) {
// context = Platform.getProduct().getDefiningBundle().getBundleContext();
// } else {
// context = CodeGeneratorActivator.getDefault().getBundle().getBundleContext();
// }
// if (context == null) {
// context = Platform.getProduct().getDefiningBundle().getBundleContext();
// if (context == null)
// context = CodeGeneratorActivator.getDefault().getBundle().getBundleContext();
// }
ServiceReference sref = context.getServiceReference(PackageAdmin.class.getName());
PackageAdmin admin = (PackageAdmin) context.getService(sref);
String bundleName;
if (!isCustom) {
bundleName = admin.getBundle(provider.getClass()).getSymbolicName();
} else {
bundleName = IComponentsFactory.COMPONENTS_LOCATION;
}
if (childDirectories != null) {
if (monitor != null) {
this.subMonitor = SubMonitor.convert(monitor,
@@ -629,34 +399,63 @@ public class ComponentsFactory implements IComponentsFactory {
}
try {
ComponentFileChecker.checkComponentFolder(currentFolder, getCodeLanguageSuffix());
File xmlMainFile = new File(currentFolder, ComponentFilesNaming.getInstance().getMainXMLFileName(
currentFolder.getName(), getCodeLanguageSuffix()));
String bundleName;
if (!isCustom) {
bundleName = admin.getBundle(provider.getClass()).getSymbolicName();
} else {
bundleName = IComponentsFactory.COMPONENTS_LOCATION;
if (!xmlMainFile.exists()) {
// if not a component folder, ignore it.
continue;
}
if (CommonsPlugin.isHeadless() && componentsCache.containsKey(xmlMainFile.getAbsolutePath())) {
IComponent componentFromThisProvider = null;
for (IComponent component : componentsCache.get(xmlMainFile.getAbsolutePath()).values()) {
if (component instanceof EmfComponent) {
if (bundleName.equals(((EmfComponent) component).getSourceBundleName())) {
componentFromThisProvider = component;
String currentXmlSha1 = null;
try {
currentXmlSha1 = SHA1Util.calculateFromTextStream(new FileInputStream(xmlMainFile));
} catch (FileNotFoundException e) {
// nothing since exceptions are directly in the check bellow
}
// Need to check if this component is already in the cache or not.
// if yes, then we compare the sha1... and if different we reload the component
// if component is not in the cache, of course just load it!
ComponentsCache cache = ComponentManager.getComponentCache();
boolean foundComponentIsSame = false;
ComponentInfo existingComponentInfoInCache = null;
if (cache.getComponentEntryMap().containsKey(currentFolder.getName())) {
EList<ComponentInfo> infos = cache.getComponentEntryMap().get(currentFolder.getName());
for (ComponentInfo info : infos) {
if (StringUtils.equals(bundleName, info.getSourceBundleName())) {
existingComponentInfoInCache = info;
if (StringUtils.equals(info.getSha1(), currentXmlSha1)) {
foundComponentIsSame = true;
}
break; // found component, no matter changed or not
}
}
}
if (foundComponentIsSame) {
// check if component is already loaded in memory, if yes it will only reload existing xml
// it should go here mainly for commandline or if use like ctrl+shift+f3
if (componentsCache.containsKey(xmlMainFile.getAbsolutePath())) {
IComponent componentFromThisProvider = null;
for (IComponent component : componentsCache.get(xmlMainFile.getAbsolutePath()).values()) {
if (component instanceof EmfComponent) {
if (bundleName.equals(((EmfComponent) component).getSourceBundleName())) {
componentFromThisProvider = component;
break;
}
}
}
}
if (componentFromThisProvider != null) {
// In headless mode, we assume the components won't change and we will use a cache
componentList.add(componentFromThisProvider);
if (isCustom) {
customComponentList.add(componentFromThisProvider);
if (componentFromThisProvider != null) {
// In headless mode, we assume the components won't change and we will use a cache
componentList.add(componentFromThisProvider);
if (isCustom) {
customComponentList.add(componentFromThisProvider);
}
continue;
}
continue;
}
}
if (!foundComponentIsSame) {
ComponentFileChecker.checkComponentFolder(currentFolder, getCodeLanguageSuffix());
}
String pathName = xmlMainFile.getAbsolutePath();
String applicationPath = ComponentBundleToPath.getPathFromBundle(bundleName);
@@ -664,30 +463,41 @@ public class ComponentsFactory implements IComponentsFactory {
// pathName = C:\myapp\plugins\myplugin\components\mycomponent\mycomponent.xml
pathName = (new Path(pathName)).toPortableString();
// pathName = C:/myapp/plugins/myplugin/components/mycomponent/mycomponent.xml
pathName = pathName.replace(applicationPath, "");
pathName = pathName.replace(applicationPath, ""); //$NON-NLS-1$
// pathName = /components/mycomponent/mycomponent.xml
// if not already in memory, just load the component from cache.
// if the component is already existing in cache and if it's the same, it won't reload all (cf
// flag: foundComponentIsSame)
EmfComponent currentComp = new EmfComponent(pathName, bundleName, xmlMainFile.getParentFile().getName(),
pathSource, ComponentManager.getInstance(), isCreated);
// force to call some functions to update the cache. (to improve)
currentComp.isVisibleInComponentDefinition();
currentComp.isTechnical();
currentComp.getOriginalFamilyName();
currentComp.getTranslatedFamilyName();
currentComp.getPluginExtension();
currentComp.getVersion();
currentComp.getModulesNeeded();
currentComp.getPluginDependencies();
// end of force cache update.
pathSource, cache, foundComponentIsSame);
if (!foundComponentIsSame) {
// force to call some functions to update the cache. (to improve)
currentComp.isVisibleInComponentDefinition();
currentComp.isTechnical();
currentComp.getOriginalFamilyName();
currentComp.getTranslatedFamilyName();
currentComp.getPluginExtension();
currentComp.getVersion();
currentComp.getModulesNeeded();
currentComp.getPluginDependencies();
// end of force cache update.
EList<ComponentInfo> componentsInfo = cache.getComponentEntryMap().get(currentFolder.getName());
for (ComponentInfo cInfo : componentsInfo) {
if (cInfo.getSourceBundleName().equals(bundleName)) {
cInfo.setSha1(currentXmlSha1);
break;
}
}
ComponentManager.setModified(true); // this will force to save the cache later.
}
// if the component is not needed in the current branding,
// and that this one IS NOT a specific component for code generation
// just don't load it
if (availableComponents != null
&& !ArrayUtils.contains(availableComponents, currentComp.getName())
&& !(ArrayUtils.contains(COMPONENTS_ALWAYS_NEEDED, currentComp.getName())
|| currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) {
if (availableComponents != null && !ArrayUtils.contains(availableComponents, currentComp.getName())
&& !(currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) {
continue;
}
@@ -696,10 +506,8 @@ public class ComponentsFactory implements IComponentsFactory {
// if the component is not needed in the current branding,
// and that this one IS a specific component for code generation,
// hide it
if (availableComponents != null
&& !ArrayUtils.contains(availableComponents, currentComp.getName())
&& (ArrayUtils.contains(COMPONENTS_ALWAYS_NEEDED, currentComp.getName())
|| currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) {
if (availableComponents != null && !ArrayUtils.contains(availableComponents, currentComp.getName())
&& (currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) {
currentComp.setVisible(false);
currentComp.setTechnical(true);
}
@@ -729,13 +537,13 @@ public class ComponentsFactory implements IComponentsFactory {
}
}
if (CommonsPlugin.isHeadless()) {
String componentName = xmlMainFile.getAbsolutePath();
if (!componentsCache.containsKey(componentName)) {
componentsCache.put(componentName, new HashMap<String, IComponent>());
}
componentsCache.get(xmlMainFile.getAbsolutePath()).put(currentComp.getPaletteType(), currentComp);
// componentsCache only used bellow in case of headless (commandline) or if use like
// ctrl+shift+f3
String componentName = xmlMainFile.getAbsolutePath();
if (!componentsCache.containsKey(componentName)) {
componentsCache.put(componentName, new HashMap<String, IComponent>());
}
componentsCache.get(xmlMainFile.getAbsolutePath()).put(currentComp.getPaletteType(), currentComp);
} catch (MissingMainXMLComponentFileException e) {
log.trace(currentFolder.getName() + " is not a " + getCodeLanguageSuffix() + " component", e); //$NON-NLS-1$ //$NON-NLS-2$
} catch (BusinessException e) {
@@ -956,25 +764,7 @@ public class ComponentsFactory implements IComponentsFactory {
if (customComponentList == null) {
init(false);
}
return customComponentList;
}
/*
* (non-Javadoc)
*
* @see org.talend.core.model.components.IComponentsFactory#getComponentPath()
*/
@Override
public URL getComponentPath() throws IOException {
String componentsPath = IComponentsFactory.COMPONENTS_LOCATION;
IBrandingService breaningService = (IBrandingService) GlobalServiceRegister.getDefault().getService(
IBrandingService.class);
if (breaningService.isPoweredOnlyCamel()) {
componentsPath = IComponentsFactory.CAMEL_COMPONENTS_LOCATION;
}
Bundle b = Platform.getBundle(componentsPath);
URL url = FileLocator.toFileURL(FileLocator.find(b, new Path(IComponentsFactory.COMPONENTS_INNER_FOLDER), null));
return url;
return new ArrayList<IComponent>(customComponentList);
}
/*
@@ -995,7 +785,6 @@ public class ComponentsFactory implements IComponentsFactory {
componentList = null;
skeletonList = null;
customComponentList = null;
allComponents = null;
}
@@ -1004,8 +793,6 @@ public class ComponentsFactory implements IComponentsFactory {
componentList = null;
skeletonList = null;
customComponentList = null;
allComponents = null;
isReset = true;
if (!CommonsPlugin.isHeadless()) {
CoreImageProvider.clearComponentIconImages();
}
@@ -1043,150 +830,6 @@ public class ComponentsFactory implements IComponentsFactory {
return translated;
}
/*
* (non-Javadoc)
*
* @see org.talend.core.model.components.IComponentsFactory#getAllComponentsCanBeProvided()
*/
@Override
public Map<String, String> getAllComponentsCanBeProvided() {
List source = new ArrayList();
if (allComponents == null) {
allComponents = new HashMap<String, String>();
source.add(IComponentsFactory.COMPONENTS_INNER_FOLDER);
ComponentsProviderManager componentsProviderManager = ComponentsProviderManager.getInstance();
source.addAll(componentsProviderManager.getProviders());
for (int i = 0; i < source.size(); i++) {
String path = null;
AbstractComponentsProvider provider = null;
Object object = source.get(i);
if (object instanceof String) {
path = (String) object;
} else if (object instanceof AbstractComponentsProvider) {
provider = ((AbstractComponentsProvider) object);
path = provider.getComponentsLocation();
}
if (path != null) {
// **if the components is from provider,should get components from provider path,see bug TDI-18036
File sourceFile = getComponentsLocation(path, provider);
File[] childDirectories;
FileFilter fileFilter = new FileFilter() {
@Override
public boolean accept(final File file) {
return file.isDirectory() && file.getName().charAt(0) != '.'
&& !file.getName().equals(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER);
}
};
if (sourceFile == null) {
ExceptionHandler.process(new Exception("Component Not Found")); //$NON-NLS-1$
continue;
}
childDirectories = sourceFile.listFiles(fileFilter);
if (childDirectories != null) {
for (File currentFolder : childDirectories) {
try {
ComponentFileChecker.checkComponentFolder(currentFolder, getCodeLanguageSuffix());
} catch (BusinessException e) {
continue;
}
File xmlMainFile = new File(currentFolder, ComponentFilesNaming.getInstance().getMainXMLFileName(
currentFolder.getName(), getCodeLanguageSuffix()));
List<String> families = getComponentsFamilyFromXML(xmlMainFile);
if (families != null) {
for (String family : families) {
allComponents.put(family + FAMILY_SPEARATOR + currentFolder.getName(),
currentFolder.getName() + "_32");
if (object instanceof AbstractComponentsProvider) {
if (!componentsAndProvider.containsKey(family)) {
componentsAndProvider.put(family, (AbstractComponentsProvider) object);
}
}
}
}
}
}
}
}
}
return allComponents;
}
private List<String> getComponentsFamilyFromXML(File xmlMainFile) {
final DocumentBuilderFactory fabrique = DocumentBuilderFactory.newInstance();
final String familysTag = "FAMILIES"; //$NON-NLS-1$
final String header = "HEADER"; //$NON-NLS-1$
final String technical = "TECHNICAL"; //$NON-NLS-1$
List<String> familyNames = new ArrayList<String>();
DocumentBuilder analyseur;
try {
analyseur = fabrique.newDocumentBuilder();
analyseur.setErrorHandler(new ErrorHandler() {
@Override
public void error(final SAXParseException exception) throws SAXException {
throw exception;
}
@Override
public void fatalError(final SAXParseException exception) throws SAXException {
throw exception;
}
@Override
public void warning(final SAXParseException exception) throws SAXException {
throw exception;
}
});
Document document = analyseur.parse(xmlMainFile);
NodeList elementsByTagName = document.getElementsByTagName(header);
String technicalValue = null;
if (elementsByTagName != null && elementsByTagName.getLength() > 0) {
Node item = elementsByTagName.item(0);
NamedNodeMap attributes = item.getAttributes();
if (attributes != null) {
Node namedItem = attributes.getNamedItem(technical);
if (namedItem != null) {
technicalValue = namedItem.getNodeValue();
}
}
}
// techenical node are not visible ,so no need to return it's family
if (technicalValue == null || !"true".equals(technicalValue)) { //$NON-NLS-1$
NodeList element = document.getElementsByTagName(familysTag);
if (element != null && element.getLength() > 0) {
Node family = element.item(0);
NodeList childNodes = family.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
final Node item = childNodes.item(i);
if (item instanceof com.sun.org.apache.xerces.internal.dom.DeferredElementImpl
|| item instanceof org.apache.xerces.dom.DeferredElementImpl) {
familyNames.add(item.getTextContent());
}
}
}
}
} catch (ParserConfigurationException e) {
ExceptionHandler.process(e);
} catch (SAXException e) {
ExceptionHandler.process(e);
} catch (IOException e) {
ExceptionHandler.process(e);
}
return familyNames;
}
/*
* (non-Javadoc)
*

View File

@@ -1,166 +0,0 @@
// ============================================================================
//
// Copyright (C) 2006-2013 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.codegen.components.model;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Status;
import org.talend.designer.codegen.CodeGeneratorActivator;
import org.talend.designer.codegen.i18n.Messages;
/**
* tfeng class global comment. Detailled comment <br/>
*
* $Id: talend.epf 1 2006-09-29 17:06:40Z nrousseau $
*
*/
public class XsdValidationCacheManager {
private Map<String, String> alreadyCheckedXsd = new HashMap<String, String>();
private static XsdValidationCacheManager instance;
private XsdValidationCacheManager() {
}
public synchronized static XsdValidationCacheManager getInstance() {
if (instance == null) {
instance = new XsdValidationCacheManager();
instance.load();
}
return instance;
}
private void load() {
try {
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(".JETEmitters"); //$NON-NLS-1$
if (project.exists()) {
deserializeAlreadyChecked();
}
} catch (Exception e) {
IStatus status = new Status(IStatus.WARNING, CodeGeneratorActivator.PLUGIN_ID,
Messages.getString("XsdValidationCacheManager.unableLoadxsd"), e); //$NON-NLS-1$
CodeGeneratorActivator.getDefault().getLog().log(status);
}
}
public void save() {
try {
serializeAlreadyChecked();
} catch (Exception e) {
IStatus status = new Status(IStatus.WARNING, CodeGeneratorActivator.PLUGIN_ID,
Messages.getString("XsdValidationCacheManager.unableSavexsd"), e); //$NON-NLS-1$
CodeGeneratorActivator.getDefault().getLog().log(status);
}
}
public boolean needCheck(java.io.File file, String sha1) {
String name = file.getName();
String oldName = alreadyCheckedXsd.get(sha1);
if (oldName == null) {
return true;
}
boolean isChanged = !StringUtils.equals(name, oldName);
return isChanged;
}
public void setChecked(File file, String sha1) {
String name = file.getName();
alreadyCheckedXsd.put(sha1, name);
}
private File getSerializationFilePath() throws CoreException {
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(".JETEmitters"); //$NON-NLS-1$
if (!project.exists()) {
project.create(new NullProgressMonitor());
}
if (!project.isOpen()) {
project.open(new NullProgressMonitor());
}
IFile file = project.getFile("XsdValidationCache"); //$NON-NLS-1$
if (!file.exists()) {
file.create(null, true, new NullProgressMonitor());
}
return file.getLocation().toFile();
}
private void serializeAlreadyChecked() throws IOException, CoreException {
BufferedOutputStream bufferedOutputStream = null;
try {
bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(getSerializationFilePath()));
ObjectOutputStream objectOut = new ObjectOutputStream(bufferedOutputStream);
objectOut.writeObject(alreadyCheckedXsd);
} catch (IOException e) {
throw e;
} finally {
try {
bufferedOutputStream.close();
} catch (Exception e) {
// ignore me even if i'm null
}
}
}
@SuppressWarnings("unchecked")
private void deserializeAlreadyChecked() throws Exception {
alreadyCheckedXsd = new HashMap<String, String>();
File file = getSerializationFilePath();
if (!file.exists()) {
return;
}
BufferedInputStream bufferedInputStream = null;
try {
bufferedInputStream = new BufferedInputStream(new FileInputStream(file));
ObjectInputStream objectIn = new ObjectInputStream(bufferedInputStream);
Object object = objectIn.readObject();
if (object instanceof Map) {
Map<?, ?> map = (Map<?, ?>) (object);
for (Map.Entry<?, ?> entry : map.entrySet()) {
String key = entry.getKey().toString();
Object value = entry.getValue();
if (value instanceof String) {
alreadyCheckedXsd.put(key, (String) value);
}
}
}
} catch (Exception e) {
throw e;
} finally {
try {
bufferedInputStream.close();
} catch (Exception e) {
// ignore me even if i'm null
}
}
}
}

View File

@@ -261,7 +261,7 @@ public class ComponentsPreferencePage extends FieldEditorPreferencePage implemen
public void modifyText(ModifyEvent e) {
String newPath = filePathTemp.getTextControl(parent).getText();
File file = new File(newPath);
if (!file.exists()) {
if (!file.exists() && !"".equals(newPath)) {
// getPreferenceStore().setValue(IComponentPreferenceConstant.USER_COMPONENTS_FOLDER, "");
filePathTemp.showErrorMessage();
setValid(false);

View File

@@ -19,6 +19,9 @@ import org.eclipse.core.runtime.ProgressMonitorWrapper;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWTException;
import org.eclipse.swt.widgets.Display;
import org.talend.commons.exception.ExceptionHandler;
import org.talend.commons.ui.gmf.util.DisplayUtils;
import org.talend.commons.ui.runtime.CommonUIPlugin;
/**
* DOC mhirt class global comment. Detailled comment <br/>
@@ -60,6 +63,7 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
/**
* @see IProgressMonitor#beginTask
*/
@Override
public void beginTask(String name, int totalWork) {
super.beginTask(name, totalWork);
taskName = name;
@@ -71,13 +75,28 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
*
* @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#clearBlocked()
*/
@Override
public void clearBlocked() {
Dialog.getBlockedHandler().clearBlocked();
// Run the event loop.
if (CommonUIPlugin.isFullyHeadless()) {
return;
}
final Display disp = DisplayUtils.getDisplay();
disp.syncExec(new Runnable() {
@Override
public void run() {
Dialog.getBlockedHandler().clearBlocked();
}
});
}
/**
* @see IProgressMonitor#done
*/
@Override
public void done() {
super.done();
taskName = null;
@@ -87,6 +106,7 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
/**
* @see IProgressMonitor#internalWorked
*/
@Override
public void internalWorked(double work) {
super.internalWorked(work);
runEventLoop();
@@ -95,6 +115,7 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
/**
* @see IProgressMonitor#isCanceled
*/
@Override
public boolean isCanceled() {
runEventLoop();
return super.isCanceled();
@@ -106,33 +127,42 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
private void runEventLoop() {
// Only run the event loop so often, as it is expensive on some platforms
// (namely Motif).
long t = System.currentTimeMillis();
final long t = System.currentTimeMillis();
if (t - lastTime < tTHRESH) {
return;
}
lastTime = t;
// Run the event loop.
Display disp = Display.getDefault();
if (CommonUIPlugin.isFullyHeadless()) {
return;
}
final Display disp = DisplayUtils.getDisplay();
if (disp == null) {
return;
}
disp.syncExec(new Runnable() {
for (;;) {
try {
if (!disp.readAndDispatch()) {
break;
@Override
public void run() {
for (;;) {
try {
if (!disp.readAndDispatch()) {
break;
}
} catch (SWTException se) {
// do nothing;
}
// Only run the event loop for so long.
// Otherwise, this would never return if some other thread was
// constantly generating events.
if (System.currentTimeMillis() - t > tMAX) {
break;
}
}
} catch (SWTException se) {
// do nothing;
}
// Only run the event loop for so long.
// Otherwise, this would never return if some other thread was
// constantly generating events.
if (System.currentTimeMillis() - t > tMAX) {
break;
}
}
});
}
/*
@@ -140,13 +170,29 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
*
* @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#setBlocked(org.eclipse.core.runtime.IStatus)
*/
public void setBlocked(IStatus reason) {
Dialog.getBlockedHandler().showBlocked(this, reason, taskName);
@Override
public void setBlocked(final IStatus reason) {
// Run the event loop.
if (CommonUIPlugin.isFullyHeadless()) {
ExceptionHandler.process(reason.getException());
return;
}
final Display disp = DisplayUtils.getDisplay();
disp.syncExec(new Runnable() {
@Override
public void run() {
Dialog.getBlockedHandler().showBlocked(CodeGeneratorProgressMonitor.this, reason, taskName);
}
});
}
/**
* @see IProgressMonitor#setCanceled
*/
@Override
public void setCanceled(boolean b) {
super.setCanceled(b);
taskName = null;
@@ -156,6 +202,7 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
/**
* @see IProgressMonitor#setTaskName
*/
@Override
public void setTaskName(String name) {
super.setTaskName(name);
taskName = name;
@@ -165,6 +212,7 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
/**
* @see IProgressMonitor#subTask
*/
@Override
public void subTask(String name) {
// Be prepared in case the first task was null
if (taskName == null) {
@@ -177,6 +225,7 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
/**
* @see IProgressMonitor#worked
*/
@Override
public void worked(int work) {
super.worked(work);
runEventLoop();

View File

@@ -12,7 +12,6 @@
// ============================================================================
package org.talend.designer.codegen.config;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
@@ -41,8 +40,6 @@ public class JetBean {
private String className = ""; //$NON-NLS-1$
private Method method = null;
private String version = null;
private String language = null;
@@ -55,6 +52,8 @@ public class JetBean {
private long crc = 0;
private String methodName;
/**
* Getter for crc.
*
@@ -293,24 +292,6 @@ public class JetBean {
this.loader = newloader;
}
/**
* Getter for method.
*
* @return the method
*/
public Method getMethod() {
return this.method;
}
/**
* Sets the method.
*
* @param method the method to set
*/
public void setMethod(Method method) {
this.method = method;
}
/**
* Getter for className.
*
@@ -391,4 +372,26 @@ public class JetBean {
this.family = family;
}
/**
* Getter for methodName.
*
* @return the methodName
*/
public String getMethodName() {
return this.methodName;
}
/**
* Sets the methodName.
*
* @param methodName the methodName to set
*/
public void setMethodName(String methodName) {
this.methodName = methodName;
}
public String getFullTemplatePath() {
return Platform.getPlugin(getJetPluginRepository()).getDescriptor().getInstallURL().toString() + getTemplateRelativeUri();
}
}

View File

@@ -19,6 +19,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.talend.core.model.process.AbstractNode;
import org.talend.core.model.process.EConnectionType;
import org.talend.core.model.process.ElementParameterParser;
import org.talend.core.model.process.IConnection;
@@ -51,6 +52,8 @@ public class NodesSubTree {
HashMap<INode, Integer> visitedNodesEndCode;
HashMap<INode, Integer> visitedNodesFinallyCode;
private static final boolean DEBUG = false;
boolean isMergeSubTree = false;
@@ -63,6 +66,10 @@ public class NodesSubTree {
INode mergeNode;
boolean isRefSubTree = false;// for mr only
List<INode> refNodes; // for mr only
/* display size of method code in comment */
boolean methodSizeNeeded = false;
@@ -88,6 +95,7 @@ public class NodesSubTree {
this.visitedNodesMainCode = new HashMap<INode, Integer>();
this.visitedNodesBeginCode = new HashMap<INode, Integer>();
this.visitedNodesEndCode = new HashMap<INode, Integer>();
this.visitedNodesFinallyCode = new HashMap<INode, Integer>();
this.isMergeSubTree = node.isThereLinkWithMerge();
allMainSubTreeConnections = new ArrayList<IConnection>();
@@ -105,17 +113,45 @@ public class NodesSubTree {
}
}
public NodesSubTree(INode node, List<? extends INode> nodes, ETypeGen typeGen) {
this.rootNode = node;
this.name = node.getUniqueName();
this.nodes = new ArrayList<INode>();
this.visitedNodesMainCode = new HashMap<INode, Integer>();
allMainSubTreeConnections = new ArrayList<IConnection>();
buildCamelSubTree(node, false);
public NodesSubTree(INode node, List<? extends INode> nodes, ETypeGen typeGen) {
if (typeGen == ETypeGen.CAMEL) {
this.rootNode = node;
this.name = node.getUniqueName();
this.nodes = new ArrayList<INode>();
this.visitedNodesMainCode = new HashMap<INode, Integer>();
allMainSubTreeConnections = new ArrayList<IConnection>();
buildCamelSubTree(node, false);
} else if (typeGen == ETypeGen.MR) {
this.rootNode = node;
this.name = node.getUniqueName();
this.nodes = new ArrayList<INode>();
afterSubProcesses = new ArrayList<String>();
beforeSubProcesses = new ArrayList<String>();
allMainSubTreeConnections = new ArrayList<IConnection>();
buildMRSubTree(node);
if (refNodes != null) {
for (INode refNode : refNodes) {
this.nodes.add(refNode);
for (IConnection connection : refNode.getOutgoingSortedConnections()) {
if (connection.getTarget().isActivate()) {
if (connection.getLineStyle().equals(EConnectionType.RUN_AFTER)) {
afterSubProcesses.add(connection.getTarget().getUniqueName());
}
if (connection.getLineStyle().equals(EConnectionType.ON_SUBJOB_OK)) {
beforeSubProcesses.add(connection.getTarget().getUniqueName());
}
}
}
}
}
}
}
/**
* unite all the relative merge nodes to this subTree
@@ -159,6 +195,32 @@ public class NodesSubTree {
nodes.add(node);
}
private void buildMRSubTree(INode node) {
if (((AbstractNode) node).isThereLinkWithRef()) {
this.isRefSubTree = true;
this.refNodes = ((AbstractNode) node).getRefNodes();
}
for (IConnection connection : node.getOutgoingSortedConnections()) {
if (connection.getTarget().isActivate()) {
if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.MAIN)) {
if (!connection.getLineStyle().hasConnectionCategory(IConnectionCategory.USE_ITERATE)) {
allMainSubTreeConnections.add(connection);
}
buildMRSubTree(connection.getTarget());
}
if (connection.getLineStyle().equals(EConnectionType.RUN_AFTER)) {
afterSubProcesses.add(connection.getTarget().getUniqueName());
}
if (connection.getLineStyle().equals(EConnectionType.ON_SUBJOB_OK)) {
beforeSubProcesses.add(connection.getTarget().getUniqueName());
}
}
}
nodes.add(node);
}
private void buildSubTree(INode node, boolean breakWhenMerge) {
if (DEBUG) {
System.out.print(node.getUniqueName());
@@ -204,6 +266,7 @@ public class NodesSubTree {
visitedNodesMainCode.put(node, 0);
visitedNodesBeginCode.put(node, 0);
visitedNodesEndCode.put(node, 0);
visitedNodesFinallyCode.put(node, 0);
nodes.add(node);
}
@@ -237,6 +300,13 @@ public class NodesSubTree {
} else {
return false;
}
case FINALLY:
Integer countFinally = visitedNodesFinallyCode.get(node);
if (countFinally == null) {
return null;
} else {
return false;
}
default:
return result;
}
@@ -259,6 +329,8 @@ public class NodesSubTree {
case END:
visitedNodesEndCode.put(node, visitedNodesEndCode.get(node) + 1);
break;
case FINALLY:
visitedNodesFinallyCode.put(node, visitedNodesFinallyCode.get(node) + 1);
default:
// do nothing
}
@@ -368,6 +440,7 @@ public class NodesSubTree {
Collections.sort(mergeBranchStarts, new Comparator<INode>() {
@Override
public int compare(INode node1, INode node2) {
if (node1.getLinkedMergeInfo().get(mergeNode) > node2.getLinkedMergeInfo().get(mergeNode)) {
return 1;
@@ -415,4 +488,40 @@ public class NodesSubTree {
public void setSubTreeContainsParallelIterate(boolean subTreeContainsParallelIterate) {
this.subTreeContainsParallelIterate = subTreeContainsParallelIterate;
}
/**
* Getter for isRefSubTree.
*
* @return the isRefSubTree
*/
public boolean isRefSubTree() {
return this.isRefSubTree;
}
/**
* Sets the isRefSubTree.
*
* @param isRefSubTree the isRefSubTree to set
*/
public void setRefSubTree(boolean isRefSubTree) {
this.isRefSubTree = isRefSubTree;
}
/**
* Getter for refNodes.
*
* @return the refNodes
*/
public List<INode> getRefNodes() {
return this.refNodes;
}
/**
* Sets the refNodes.
*
* @param refNodes the refNodes to set
*/
public void setRefNodes(List<INode> refNodes) {
this.refNodes = refNodes;
}
}

View File

@@ -16,6 +16,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.talend.core.model.process.EConnectionType;
import org.talend.core.model.process.INode;
import org.talend.core.model.process.IProcess;
import org.talend.core.model.temp.ETypeGen;
@@ -47,12 +48,16 @@ public class NodesTree {
buildSubTrees(true);
}
}
public NodesTree(IProcess process, List<? extends INode> treeNodes, boolean init, ETypeGen typeGen) {
this.nodes = treeNodes;
buildRootNodes(process);
if (init) {
buildCamelSubTrees(true);
if (typeGen == ETypeGen.CAMEL) {
buildCamelSubTrees(true);
} else if (typeGen == ETypeGen.MR) {
buildMRSubTrees();
}
}
}
@@ -93,6 +98,21 @@ public class NodesTree {
}
}
private void buildMRSubTrees() {
subTrees = new ArrayList<NodesSubTree>();
for (INode node : nodes) {
if (((node.isSubProcessStart()) && (node.isActivate())) || (rootNodes.contains(node))) {
if (node.getOutgoingConnections(EConnectionType.FLOW_REF) != null
&& node.getOutgoingConnections(EConnectionType.FLOW_REF).size() == 1) {
// ignore the node when it output connection is flow_ref, because it has been added in
// AbstractNode.setRefNodes
continue;
}
subTrees.add(new NodesSubTree(node, nodes, ETypeGen.MR));
}
}
}
/**
* Build Root Nodes List.
*
@@ -111,7 +131,8 @@ public class NodesTree {
for (INode node : nodes) {
String componentName = node.getComponent().getName();
if ((node.isStart()) && (node.isActivate()) && (!componentName.equals("tPrejob")) //$NON-NLS-1$
if ((node.isStart()) && (node.isActivate()) && (node.isSubtreeStart() || node.isELTComponent())
&& (!componentName.equals("tPrejob"))//$NON-NLS-1$
&& (!componentName.equals("tPostjob"))) { //$NON-NLS-1$
rootNodes.add(node);
}

View File

@@ -18,6 +18,7 @@ import java.io.DataInputStream;
import java.io.File;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.HashMap;
@@ -55,7 +56,7 @@ import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
import org.talend.commons.debug.TalendDebugHandler;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.commons.exception.ExceptionHandler;
import org.talend.designer.codegen.i18n.Messages;
/**
@@ -78,6 +79,10 @@ public class TalendJetEmitter extends JETEmitter {
private static Logger log = Logger.getLogger(TalendJetEmitter.class);
private JetBean jetbean;
private boolean classAvailable = true;
/**
* DOC mhirt TalendJetEmitter constructor comment.
*
@@ -96,17 +101,16 @@ public class TalendJetEmitter extends JETEmitter {
this.talendEclipseHelper = new TalendEclipseHelper(progressMonitor, this, rebuild);
}
public TalendJetEmitter(String arg0, ClassLoader arg1, String componentFamily, String templateName, String templateLanguage,
String codePart, TalendEclipseHelper teh) {
super(arg0, arg1);
public TalendJetEmitter(JetBean jetbean, TalendEclipseHelper teh) {
super(jetbean.getFullTemplatePath(), jetbean.getClassLoader());
this.jetbean = jetbean;
this.templateName = jetbean.getClassName();
this.componentFamily = jetbean.getFamily();
this.templateLanguage = jetbean.getLanguage();
this.codePart = jetbean.getCodePart();
if (templateName.endsWith(codePart + "" + templateLanguage)) { //$NON-NLS-1$
this.templateName = templateName.substring(templateName.lastIndexOf(".") + 1, templateName.lastIndexOf(codePart)); //$NON-NLS-1$
} else {
this.templateName = templateName;
}
this.componentFamily = componentFamily;
this.templateLanguage = templateLanguage;
this.codePart = codePart;
this.talendEclipseHelper = teh;
}
@@ -182,19 +186,16 @@ public class TalendJetEmitter extends JETEmitter {
project.create(new SubProgressMonitor(progressMonitor, 1));
progressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETCreatingProject_message", //$NON-NLS-1$
new Object[] { project.getName() }));
IProjectDescription description = workspace.newProjectDescription(project.getName());
description.setNatureIds(new String[] { JavaCore.NATURE_ID });
description.setLocation(null);
project.open(new SubProgressMonitor(progressMonitor, 1));
project.setDescription(description, new SubProgressMonitor(progressMonitor, 1));
} else {
}
if (!project.isOpen()) {
project.open(new SubProgressMonitor(progressMonitor, 5));
IProjectDescription description = project.getDescription();
// only in case it's one old workspace and got no nature defined.
if (!ArrayUtils.contains(description.getNatureIds(), JavaCore.NATURE_ID)) {
description.setNatureIds(new String[] { JavaCore.NATURE_ID });
project.setDescription(description, new SubProgressMonitor(progressMonitor, 1));
}
project.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(progressMonitor, 1));
}
IProjectDescription description = project.getDescription();
// only in case it's one old workspace and got no nature defined.
if (!ArrayUtils.contains(description.getNatureIds(), JavaCore.NATURE_ID)) {
description.setNatureIds(new String[] { JavaCore.NATURE_ID });
project.setDescription(description, new SubProgressMonitor(progressMonitor, 1));
}
javaProject = JavaCore.create(project);
@@ -353,7 +354,10 @@ public class TalendJetEmitter extends JETEmitter {
// if jetEmitter.getMethod() == null, means the class file doesn't exist anymore
// it should be impossible to have only the class file deleted and the .java never modified, but still
// handle this case.
if (needRebuild || jetEmitter.getMethod() == null) {
// we could optimize the speed at this point by removing the method call here.
// but since this part is only called when there is a change detected in the jet emitters, it should be
// ok.
if (needRebuild || jetEmitter.method == null) {
subProgressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETBuilding_message", //$NON-NLS-1$
new Object[] { project.getName() }));
@@ -374,6 +378,7 @@ public class TalendJetEmitter extends JETEmitter {
marker.getAttribute(IMarker.MESSAGE),
(CodeGenPlugin.getPlugin().getString("jet.mark.file.line", new Object[] { //$NON-NLS-1$
targetFile.getLocation(), marker.getAttribute(IMarker.LINE_NUMBER) }))));
setClassAvailable(false);
}
}
@@ -425,4 +430,106 @@ public class TalendJetEmitter extends JETEmitter {
}
}
}
/*
* (non-Javadoc)
*
* @see org.eclipse.emf.codegen.jet.JETEmitter#getMethod()
*/
@Override
public Method getMethod() {
Method localMethod = super.getMethod();
if (localMethod == null) {
try {
localMethod = loadMethod();
} catch (Exception e) {
// nothing since if got exception here, the method will be reloaded bellow. (normal case)
// real error should be logged if the initialize fail.
}
// add this part in case there is any problem in the project (should never be called in normal use)
// but if there is any problem, it will force to regenerate again this component.
// This might be also called for custom components.
if (localMethod == null) {
try {
talendEclipseHelper.initialize(BasicMonitor.toMonitor(new NullProgressMonitor()), this, componentFamily,
templateName, templateLanguage, codePart);
localMethod = super.getMethod();
} catch (JETException e) {
ExceptionHandler.process(e);
}
} else {
setMethod(localMethod);
}
}
return localMethod;
}
/**
* DOC mhirt Comment method "loadMethod".
*
* @param methodName
* @return
* @throws MalformedURLException
* @throws ClassNotFoundException
*/
private Method loadMethod() throws ClassNotFoundException, MalformedURLException {
if (jetbean == null) {
return null;
}
if (currentClassLoader != jetbean.getClassLoader()) {
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
IProject project = workspace.getRoot().getProject(projectName);
URL url = new File(project.getLocation() + "/runtime").toURL(); //$NON-NLS-1$
currentClassLoader = jetbean.getClassLoader();
theClassLoader = new URLClassLoader(new URL[] { url }, jetbean.getClassLoader());
}
Class theClass;
try {
theClass = theClassLoader.loadClass(jetbean.getClassName());
} catch (Error e) {
throw new ClassNotFoundException(e.getMessage(), e);
}
// TDI-23079
try {
Method[] methods = theClass.getDeclaredMethods();
for (int i = 0; i < methods.length; ++i) {
if (methods[i].getName().equals(jetbean.getMethodName())) {
return methods[i];
}
}
} catch (Exception e) {
return null;
}
return null;
}
private static ClassLoader currentClassLoader = null;
private static URLClassLoader theClassLoader = null;
/**
* Getter for classAvailable.
*
* @return the classAvailable
*/
public boolean isClassAvailable() {
return this.classAvailable;
}
public void setClassAvailable(boolean classAvailable) {
this.classAvailable = classAvailable;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.emf.codegen.jet.JETEmitter#generate(org.eclipse.emf.common.util.Monitor, java.lang.Object[],
* java.lang.String)
*/
@Override
public String generate(Monitor progressMonitor, Object[] arguments, String lineDelimiter) throws JETException {
getMethod(); // force to load the method before generate in case it was not set before.
return super.generate(progressMonitor, arguments, lineDelimiter);
}
}

View File

@@ -15,17 +15,18 @@ package org.talend.designer.codegen.model;
import java.beans.PropertyChangeEvent;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang.ArrayUtils;
import org.apache.log4j.Logger;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectDescription;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -33,16 +34,16 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.emf.codegen.CodeGenPlugin;
import org.eclipse.emf.codegen.jet.JETEmitter;
import org.eclipse.emf.codegen.jet.JETException;
import org.eclipse.emf.common.CommonPlugin;
import org.eclipse.emf.common.util.URI;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWTError;
import org.eclipse.swt.widgets.Display;
import org.talend.commons.CommonsPlugin;
import org.talend.commons.exception.BusinessException;
@@ -97,6 +98,8 @@ public final class CodeGeneratorEmittersPoolFactory {
private static String defaultTemplate = null;
public static final String JET_PROJECT = ".JETEmitters"; //$NON-NLS-1$
/**
* Default Constructor. Must not be used.
*/
@@ -129,20 +132,11 @@ public final class CodeGeneratorEmittersPoolFactory {
TimeMeasure.measureActive = CommonsPlugin.isDebugMode();
TimeMeasure.begin("initialize Jet Emitters"); //$NON-NLS-1$
ComponentsFactoryProvider.saveComponentVisibilityStatus();
jetFilesCompileFail.clear();
IProgressMonitor monitorWrap = null;
boolean headless = CommonsPlugin.isHeadless();
if (!headless) {
try {
Display.getDefault();
} catch (SWTError e) {
headless = true;
}
}
boolean headless = CommonUIPlugin.isFullyHeadless();
if (!headless) {
monitorWrap = new CodeGeneratorProgressMonitor(delegateMonitor);
} else {
@@ -150,14 +144,14 @@ public final class CodeGeneratorEmittersPoolFactory {
}
ECodeLanguage codeLanguage = LanguageManager.getCurrentLanguage();
initializeJetEmittersProject(monitorWrap);
CodeGeneratorInternalTemplatesFactory templatesFactory = CodeGeneratorInternalTemplatesFactoryProvider
.getInstance();
templatesFactory.setCurrentLanguage(codeLanguage);
templatesFactory.init();
IComponentsFactory componentsFactory = ComponentsFactoryProvider.getInstance();
// do not call init because it may be already loaded by
// ComponentsFactoryProvider.saveComponentVisibilityStatus
componentsFactory.getComponents();
long startTime = System.currentTimeMillis();
@@ -187,11 +181,9 @@ public final class CodeGeneratorEmittersPoolFactory {
if (components != null) {
ECodePart codePart = ECodePart.MAIN;
for (IComponent component : new ArrayList<IComponent>(components)) {
// if (component.isTechnical() || component.isVisible()) {
if (component.getAvailableCodeParts().size() > 0) {
initComponent(codeLanguage, jetBeans, codePart, component);
}
// }
monitorBuffer++;
if (monitorBuffer % 100 == 0) {
monitorWrap.worked(100);
@@ -238,7 +230,7 @@ public final class CodeGeneratorEmittersPoolFactory {
} finally {
try {
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IProject project = workspace.getRoot().getProject(".JETEmitters"); //$NON-NLS-1$
IProject project = workspace.getRoot().getProject(JET_PROJECT);
project.build(IncrementalProjectBuilder.AUTO_BUILD, null);
} catch (CoreException e) {
ExceptionHandler.process(e);
@@ -265,6 +257,47 @@ public final class CodeGeneratorEmittersPoolFactory {
return Status.OK_STATUS;
}
/**
* DOC nrousseau Comment method "initializeJetEmittersProject".
*
* @throws CoreException
*/
private void initializeJetEmittersProject(IProgressMonitor progressMonitor) throws CoreException {
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
IProject project = workspace.getRoot().getProject(JET_PROJECT);
progressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETPreparingProject_message", //$NON-NLS-1$
new Object[] { project.getName() }));
File file = new File(workspace.getRoot().getLocation().append(JET_PROJECT).toPortableString());
if (file.exists() && !project.isAccessible()) {
// .metadata missing, so need to reimport project to add it in the metadata.
progressMonitor.subTask("Reinitilializing project " + project.getName()); //$NON-NLS-1$
project.create(new SubProgressMonitor(progressMonitor, 1));
progressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETCreatingProject_message", //$NON-NLS-1$
new Object[] { project.getName() }));
} else if (!project.isAccessible()) {
// project was deleted manually on the disk. The delete here will remove infos from metadata
// then we'll be able to create a new clean project.
project.delete(true, progressMonitor);
}
if (!project.exists()) {
progressMonitor.subTask("JET creating project " + project.getName()); //$NON-NLS-1$
project.create(new SubProgressMonitor(progressMonitor, 1));
progressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETCreatingProject_message", //$NON-NLS-1$
new Object[] { project.getName() }));
}
if (!project.isOpen()) {
project.open(new SubProgressMonitor(progressMonitor, 5));
project.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(progressMonitor, 1));
}
IProjectDescription description = project.getDescription();
// only in case it's one old workspace and got no nature defined.
if (!ArrayUtils.contains(description.getNatureIds(), JavaCore.NATURE_ID)) {
description.setNatureIds(new String[] { JavaCore.NATURE_ID });
project.setDescription(description, new SubProgressMonitor(progressMonitor, 1));
}
}
};
public static Job initialize() {
@@ -391,6 +424,9 @@ public final class CodeGeneratorEmittersPoolFactory {
if (component.getAvailableCodeParts().contains(ECodePart.END)) {
initComponent(codeLanguage, jetBeans, ECodePart.END, component);
}
if (component.getAvailableCodeParts().contains(ECodePart.FINALLY)) {
initComponent(codeLanguage, jetBeans, ECodePart.FINALLY, component);
}
if (component.getAvailableCodeParts().contains(ECodePart.MRCODE)) {
initComponent(codeLanguage, jetBeans, ECodePart.MRCODE, component);
}
@@ -441,10 +477,7 @@ public final class CodeGeneratorEmittersPoolFactory {
alreadyCompiledEmitters = loadEmfPersistentData(EmfEmittersPersistenceFactory.getInstance(codeLanguage)
.loadEmittersPool(), components, monitorWrap);
for (JetBean jetBean : alreadyCompiledEmitters) {
TalendJetEmitter emitter = new TalendJetEmitter(getFullTemplatePath(jetBean), jetBean.getClassLoader(),
jetBean.getFamily(), jetBean.getClassName(), jetBean.getLanguage(), jetBean.getCodePart(),
dummyEmitter.getTalendEclipseHelper());
emitter.setMethod(jetBean.getMethod());
TalendJetEmitter emitter = new TalendJetEmitter(jetBean, dummyEmitter.getTalendEclipseHelper());
emitterPool.put(jetBean, emitter);
monitorBuffer++;
if (monitorBuffer % 100 == 0) {
@@ -471,11 +504,6 @@ public final class CodeGeneratorEmittersPoolFactory {
}
}
private static String getFullTemplatePath(JetBean jetBean) {
return Platform.getPlugin(jetBean.getJetPluginRepository()).getDescriptor().getInstallURL().toString()
+ jetBean.getTemplateRelativeUri();
}
private static void synchronizedComponent(List<JetBean> components, IProgressMonitor sub,
List<JetBean> alreadyCompiledEmitters, TalendJetEmitter dummyEmitter, int monitorBuffer, IProgressMonitor monitorWrap) {
for (JetBean jetBean : components) {
@@ -483,9 +511,7 @@ public final class CodeGeneratorEmittersPoolFactory {
ComponentCompilations.deleteMarkers();
// System.out.println("The new file is not in JetPersistence* cache:" + getFullTemplatePath(jetBean));
TalendJetEmitter emitter = new TalendJetEmitter(getFullTemplatePath(jetBean), jetBean.getClassLoader(),
jetBean.getFamily(), jetBean.getClassName(), jetBean.getLanguage(), jetBean.getCodePart(),
dummyEmitter.getTalendEclipseHelper());
TalendJetEmitter emitter = new TalendJetEmitter(jetBean, dummyEmitter.getTalendEclipseHelper());
// wzhang modified to fix bug 11439
if (monitorWrap.isCanceled()) {
if (!CommonUIPlugin.isFullyHeadless()) {
@@ -511,9 +537,7 @@ public final class CodeGeneratorEmittersPoolFactory {
continue;
}
if (emitter.getMethod() != null) {
jetBean.setMethod(emitter.getMethod());
jetBean.setClassName(emitter.getMethod().getDeclaringClass().getName());
if (emitter.isClassAvailable()) {
alreadyCompiledEmitters.add(jetBean);
} else {
jetFilesCompileFail.add(jetBean);
@@ -539,7 +563,7 @@ public final class CodeGeneratorEmittersPoolFactory {
for (JetBean unit : alreadyCompiledEmitters) {
// long unitCRC = extractTemplateHashCode(unit);
long unitCRC = unit.getCrc();
toReturn.add(new LightJetBean(unit.getTemplateRelativeUri(), unit.getClassName(), unit.getMethod().getName(), unit
toReturn.add(new LightJetBean(unit.getTemplateRelativeUri(), unit.getClassName(), unit.getMethodName(), unit
.getVersion(), unit.getLanguage(), unitCRC));
}
return toReturn;
@@ -561,7 +585,7 @@ public final class CodeGeneratorEmittersPoolFactory {
URL url;
try {
url = new URL(uri.toString());
unitCRC = IOUtils.computeCRConTextFile(url.openStream());
unitCRC = IOUtils.computeCRC(url.openStream());
} catch (Exception e) {
// ignore me even if i'm null
}
@@ -611,15 +635,8 @@ public final class CodeGeneratorEmittersPoolFactory {
}
if (lightBean != null && lightBean.getCrc() == unit.getCrc()) {
unit.setClassName(lightBean.getClassName());
try {
Method method = loadMethod(url, lightBean.getMethodName(), unit);
if (method != null) {
unit.setMethod(method);
toReturn.add(unit);
}
} catch (ClassNotFoundException e) {
log.info(Messages.getString("CodeGeneratorEmittersPoolFactory.Class.NotFound", unit.getClassName())); //$NON-NLS-1$
}
unit.setMethodName(lightBean.getMethodName());
toReturn.add(unit);
}
}
}
@@ -631,50 +648,13 @@ public final class CodeGeneratorEmittersPoolFactory {
return toReturn;
}
/**
* DOC mhirt Comment method "loadMethod".
*
* @param methodName
* @return
* @throws MalformedURLException
* @throws ClassNotFoundException
*/
private static Method loadMethod(URL url, String methodName, JetBean unit) throws ClassNotFoundException {
if (currentClassLoader != unit.getClassLoader()) {
currentClassLoader = unit.getClassLoader();
theClassLoader = new URLClassLoader(new URL[] { url }, unit.getClassLoader());
}
Class theClass;
try {
theClass = theClassLoader.loadClass(unit.getClassName());
} catch (Error e) {
throw new ClassNotFoundException(e.getMessage(), e);
}
// TDI-23079
try {
Method[] methods = theClass.getDeclaredMethods();
for (int i = 0; i < methods.length; ++i) {
if (methods[i].getName().equals(methodName)) {
return methods[i];
}
}
} catch (Exception e) {
return null;
}
return null;
}
private static ClassLoader currentClassLoader = null;
private static URLClassLoader theClassLoader = null;
/**
* Getter for emitterPool.
*
* @return the emitterPool
*/
public static HashMap<JetBean, JETEmitter> getEmitterPool() {
if (!isInitialized() && !isInitializeStart()) {
if (emitterPool == null || (!isInitialized() && !isInitializeStart())) {
initialize();
}
return emitterPool;
@@ -687,7 +667,7 @@ public final class CodeGeneratorEmittersPoolFactory {
* @return
*/
public static JETEmitter getJETEmitter(JetBean jetBean) {
if (!isInitialized() && !isInitializeStart()) {
if (emitterPool == null || (!isInitialized() && !isInitializeStart())) {
initialize();
}

View File

@@ -106,7 +106,7 @@ public final class JetSkeletonManager {
String path = file.getAbsolutePath();
long currentCRC = 0;
try {
currentCRC = IOUtils.computeCRConTextFile(new FileInputStream(file));
currentCRC = IOUtils.computeCRC(new FileInputStream(file));
} catch (FileNotFoundException e) {
// ignore here, only print
// e.printStackTrace();

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -1,4 +1,16 @@
source.. = src/main/java/
output.. = class/
bin.includes = META-INF/,\
.
.\
,plugin_zh_CN.properties\
,plugin_ru.properties\
,plugin_en.properties\
,plugin_hr.properties\
,plugin_fr.properties\
,plugin_pt_BR.properties\
,plugin_nl.properties\
,plugin_el.properties\
,plugin_ja.properties\
,plugin_it.properties\
,plugin_de.properties\
,plugin_swtbot.properties

View File

@@ -0,0 +1,5 @@
Exchange=Exchange
DownloadComponenentsAction.Label=Download Selected Components
RefreshComponenentsAction.Label=Refresh Componenents List
providerName=www.example.org
pluginName = Exchange Model

View File

@@ -4,5 +4,6 @@ MyExtensionsComposite.Version=Verzija
MyExtensionsComposite.UpdateOperateStatus=A\u017Euriraj
MyExtensionsComposite.DeleteOperateStatus=Obri\u0161i
MyExtensionsComposite.Form.Compatibility.Version=Verzija
MyExtensionsComposite.Form.Description=Opis
ImportExchangeDialog.WARNING=Upozorenje
ImportExchangeDialog.REFRESH_BUTTON=Osvje\u017Ei

View File

@@ -0,0 +1,103 @@
ExchangeView.Exchange=Exchange
AvailableExtensionsComposite.ExtensionName=Extension Name
AvailableExtensionsComposite.Version=Version
AvailableExtensionsComposite.Rating=Rating
AvailableExtensionsComposite.Author=Author
AvailableExtensionsComposite.FilterTitle=Filter
AvailableExtensionsComposite.ViewDetail.installOperateStatus=Install
AvailableExtensionsComposite.ViewDetail.WriteReview=Write a review
AvailableExtensionsComposite.ViewDetail.InsertionReviewFailure=Insertion Review failure.
AvailableExtensionsComposite.ViewDetail.InsertionReviewFailureTip=You should check it.
DownloadedExtensionsComposite.ExtensionName=Extension Name
DownloadedExtensionsComposite.DownloadedVersion=Downloaded Version
DownloadedExtensionsComposite.DownloadDate=Download Date
DownloadedExtensionsComposite.OperateStatus=Operate Status
DownloadedExtensionsComposite.installOperateStatus=Install
DownloadedExtensionsComposite.installedOperateStatus=Installed
DownloadedExtensionsComposite.updateOperateStatus=Update
MyExtensionsComposite.ExtensionName=Extension Name
MyExtensionsComposite.Version=Version
MyExtensionsComposite.UploadDate=Upload Date
MyExtensionsComposite.AddNewExtensionTitle=Add New Extension
MyExtensionsComposite.UpLoadNewVersionOperateStatus=UpLoad New Version
MyExtensionsComposite.UpdateOperateStatus=Update
MyExtensionsComposite.ModifyOperateStatus=Modify
MyExtensionsComposite.DeleteOperateStatus=Delete
MyExtensionsComposite.Form.Return=Return
MyExtensionsComposite.Form.ExtensionTitle=Extension Title
MyExtensionsComposite.Form.InitialVersion=Initial Version
MyExtensionsComposite.Form.Compatibility=Compatibility
MyExtensionsComposite.Form.Compatibility.AllVersions=All versions
MyExtensionsComposite.Form.Compatibility.Version=Version
MyExtensionsComposite.Form.Compatibility.AndOlder=and older
MyExtensionsComposite.Form.Compatibility.AndNewer=and newer
MyExtensionsComposite.Form.Compatibility.AllVersionsExcept=All versions except:
MyExtensionsComposite.Form.Compatibility.OnlyTheseVersions=Only these versions:
MyExtensionsComposite.Form.Description=Description
MyExtensionsComposite.Form.Visibility=Visibility
MyExtensionsComposite.Form.Visibility.Public=Public(visible by all)
MyExtensionsComposite.Form.Visibility.Private=Private(visible by me)
MyExtensionsComposite.Form.Upload=Upload
MyExtensionsComposite.Form.Upload.SelectAnItem=Select an item from the currently open project
MyExtensionsComposite.Form.Upload.File=File:
MyExtensionsComposite.Form.Upload.Browse=Browse
MyExtensionsComposite.Form.Upload.Browse.SelectFile=Select a File of the extension to upload
MyExtensionsComposite.Form.DeleteExtensionTile=Delete Extension
MyExtensionsComposite.Form.DeleteExtensionMessage=You sure delete this Extension
MyExtensionsComposite.Form.UploadExtension=Upload Extension
MyExtensionsComposite.Form.UpdateExtension=Update Extension
MyExtensionsComposite.Form.ModifyExtension=Modify Extension
Exchange.logon.error=Exchange user have not been registered, please register using the preferences .
RefreshJob.FindExtensions.Title=Finding available extensions
RefreshJob.FindExtensions.Message=Finding extensions from exchange...
ShowContributedExtensionsJob.ShowContributedExtensions.Title=Finding contributed extensions
ShowContributedExtensionsJob.ShowContributedExtensions.Message=Finding contributed extensions from exchange...
ShowInstalledExtensionsJob.ShowInstalledExtensions.Title=Finding installed extensions
ShowInstalledExtensionsJob.ShowInstalledExtensions.Message=Finding installed extensions from exchange...
DeleteExtensionJob.DeleteExtensionJob.Title=Delete an extension...
DeleteExtensionJob.DeleteExtensionJob.Message=Delete an extension...
DeleteExtensionJob.DeleteFailure=Delete failure.
DeleteExtensionJob.DeleteFailureTip=You should check it.
ModifyExtensionJob.Title=Modify an extension...
ModifyExtensionJob.Message=Modify an extension...
ModifyExtensionJob.ModifyFailure=Modify failure.
ModifyExtensionJob.ModifyFailureTip=You should check it.
InstalledExtensionJob.Title=Installed an extension...
InstalledExtensionJob.Message=Installed an extension...
InsertionExtensionAction.InstalledFailure=Installed failure.
InsertionExtensionAction.InstalledFailureTip=You should check it.
UploadRevisionJob.Title=Upload Revision...
UploadRevisionJob.Message=Upload Revision...
UploadRevisionAction.InstalledFailure=Upload Revision failure.
UploadRevisionAction.InstalledFailureTip=You should check it.
DownloadComponenentsAction.installExchange=Installed Exchange Components
DownloadComponenentsAction.DownloadTaskTitle=Downloading files from Exchange
DownloadComponenentsAction.DownloadTaskName=Downloading file from url:
DownloadComponenentsAction.ReloadPalette=Reloading palette...
DownloadComponenentsAction.DownloadFailure=Download failure.
DownloadComponenentsAction.DownloadFailureTip=You must change the Download Settings.
ExchangeWebService.insertionExtensionSuccessful=Insertion Extension successful.
ExchangeWebService.downloadingExtensionSuccessful=Downloaded Extension successful.
ExchangeWebService.deleteExtensionSuccessful=Deleted Extension successful.
ExchangeWebService.insertReviewSuccessful=Insertion Review successful.
ExchangeWebService.updateRevisionSuccessful=Update Revision successful.
ExchangeWebService.insertionRevisionSuccessful=Insertion Revision successful.
ImportExchangeDialog.dialogTitle=Select an item from Talend Exchange
ImportExchangeDialog.WARNING=WARNING
ImportExchangeDialog.NOTSELECTWARNING=Please select one item from table.....
ImportExchangeDialog.downloadProgressBar=Download Item,Please Wait\!
ImportExchangeDialog.EXTENSION_NAME=Extension Name
ImportExchangeDialog.AUTHOR_NAME=Author Name
ImportExchangeDialog.LATEST_REVISION=Latest Revision
ImportExchangeDialog.EXTENSION_DESCRIPTION=Extension Description
ImportExchangeDialog.download.components=Download Components Please Wait\!
ImportExchangeDialog.JOB_BUTTON=Job Designs
ImportExchangeDialog.DOWNLOAD_JOB=Download Some Job Designs...
ImportExchangeDialog.ROUTINES_BUTTON=Routines
ImportExchangeDialog.ROUTINES_PROGRESSBAR=Download Some Routines...
ImportExchangeDialog.TEMPLATES_BUTTON=SQL Templates
ImportExchangeDialog.TEMPLATES_PROGRESSBAR=Download Some SQL Templates...
ImportExchangeDialog.REFRESH_BUTTON=Refresh
ImportExchangeDialog.REFRESHING_PROGRESSBAR=Refreshing\! Please Wait.....
ImportExchangeDialog.NOT_SELECT_BUTTON=Please select a choice first
ImportExchangeDialog.OPERATION_CANCELLED=Operation was cancelled

View File

@@ -2,3 +2,4 @@ AvailableExtensionsComposite.Version=Versiyon
MyExtensionsComposite.Version=Versiyon
MyExtensionsComposite.DeleteOperateStatus=Sil
MyExtensionsComposite.Form.Compatibility.Version=Versiyon
MyExtensionsComposite.Form.Description=Aç\u0131klama

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -80,15 +80,43 @@
checkedType = "only"
filtervalue = document.getElementById(checkedType).value;
}
var listVersionCompatibles = "listVersionCompatibles:" + "'" + checkedType + "'";
var filter = "filter:" + "'" + filtervalue + "'";
var filename = "filename:" + "'" + document.getElementById("filename").value + "'";
filename = filename.replaceAll2Excep("\\", "/");
var jsonObj = "{" + label + "," + lastVersionAvailable + "," + description + "," + listVersionCompatibles + "," + filter + "," + filename + "}"
var url = prefix + "&amp;extensionValues=" + jsonObj;
document.getElementById('commit').href = url;
<!-- validate the createNewExtension text start-->
var labelValidate = document.getElementById("extension_label").value;
var lastVersionAvailableValidate = document.getElementById("lastVersionAvailable").value;
var filename = document.getElementById("filename").value;
var isSkipPage = true;
if(labelValidate==0){
alert("Extension Title is empty");
isSkipPage = false;
}else if(labelValidate=="null"){
alert("Extension Title can not be null");
isSkipPage = false;
}else if(lastVersionAvailableValidate==0){
alert("Initial Version is empty");
isSkipPage = false;
}else if(lastVersionAvailableValidate=="null"){
alert("Initial Version can not be null");
isSkipPage = false;
}else if(filename==0){
alert("Please input a vaild File path");
isSkipPage = false;
}
<!-- validate the createNewExtension text end-->
if (isSkipPage == true) {
var listVersionCompatibles = "listVersionCompatibles:" + "'" + checkedType + "'";
var filter = "filter:" + "'" + filtervalue + "'";
var filename = "filename:" + "'" + document.getElementById("filename").value + "'";
filename = filename.replaceAll2Excep("\\", "/");
var jsonObj = "{" + label + "," + lastVersionAvailable + "," + description + "," + listVersionCompatibles + "," + filter + "," + filename + "}"
var url = prefix + "&amp;extensionValues=" + jsonObj;
document.getElementById('commit').href = url;
window.location.href=document.getElementById('commit').href;
}
}
function updateReWriteUrl() {
@@ -116,16 +144,31 @@
checkedType = "only"
filtervalue = document.getElementById(checkedType + "_update").value;
}
var listVersionCompatibles = "listVersionCompatibles:" + "'" + checkedType + "'";
var filter = "filter:" + "'" + filtervalue + "'";
var filename = "filename:" + "'" + document.getElementById("filename_update").value + "'";
filename = filename.replaceAll2Excep("\\", "/");
var jsonObj = "{" + lastVersionAvailable + "," + listVersionCompatibles + "," + filter + "," + filename + "}"
var url = prefix + "&amp;extensionValues=" + jsonObj;
document.getElementById('commit_update').href = url;
<!-- validate the updateExtension text start-->
var lastVersionAvailable_updateValidate = document.getElementById("lastVersionAvailable_update").value;
var isSkipPage = true;
if(lastVersionAvailable_updateValidate==0){
alert("New Version is empty");
var isSkipPage = false;
}else if(lastVersionAvailable_updateValidate=="null"){
alert("New Version can not be null");
var isSkipPage = false;
}
<!-- validate the updateExtension text end-->
if (isSkipPage == true) {
var listVersionCompatibles = "listVersionCompatibles:" + "'" + checkedType + "'";
var filter = "filter:" + "'" + filtervalue + "'";
var filename = "filename:" + "'" + document.getElementById("filename_update").value + "'";
filename = filename.replaceAll2Excep("\\", "/");
var jsonObj = "{" + lastVersionAvailable + "," + listVersionCompatibles + "," + filter + "," + filename + "}"
var url = prefix + "&amp;extensionValues=" + jsonObj;
document.getElementById('commit_update').href = url;
window.location.href=document.getElementById('commit_update').href;
}
}
function modifyReWriteUrl() {
@@ -437,7 +480,7 @@
<td ></td>
<td>
<a class="xh" href="" id="commit" style="margin-left:5px;">
<button onclick="window.location.href=document.getElementById('commit').href" onmouseover="createNewExtensionWriteUrl()" style="width: 176px">
<button onclick="createNewExtensionWriteUrl()" style="width: 176px">
Add Extension
</button>
</a>
@@ -496,7 +539,7 @@
<td ></td>
<td>
<a class="xh" href="" id="commit_update" style="margin-left:5px;">
<button onclick="window.location.href=document.getElementById('commit_update').href" onmouseover="updateReWriteUrl()" style="width: 176px">
<button onclick="updateReWriteUrl()" style="width: 176px">
Upload Extension
</button>
</a>

View File

@@ -115,7 +115,6 @@ ImportExchangeDialog.TEMPLATES_BUTTON=SQL Templates
ImportExchangeDialog.TEMPLATES_PROGRESSBAR=Download Some SQL Templates...
ImportExchangeDialog.REFRESH_BUTTON=Refresh
ImportExchangeDialog.REFRESHING_PROGRESSBAR=Refreshing\! Please Wait.....
ImportExchangeDialog.WARNING=WARNING
ImportExchangeDialog.NOT_SELECT_BUTTON=Please select a choice first
ImportExchangeDialog.OPERATION_CANCELLED=Operation was cancelled

View File

@@ -25,7 +25,6 @@ import org.talend.core.model.general.IExchangeService;
import org.talend.core.model.general.Project;
import org.talend.designer.components.exchange.i18n.Messages;
import org.talend.designer.components.exchange.ui.views.ExchangeEditorInput;
import org.talend.designer.components.exchange.util.ExchangeUtils;
import org.talend.designer.components.exchange.util.ExchangeWebService;
import org.talend.repository.ProjectManager;
@@ -82,7 +81,7 @@ public class ExchangeService implements IExchangeService {
JSONObject tokenMessage = new JSONObject();
try {
tokenMessage.put("username", username);
tokenMessage.put("passwordHash", ExchangeUtils.getPasswordHash(password));
tokenMessage.put("passwordHash", password);
JSONObject token = new us.monoid.json.JSONObject();
token.put("contributedExtension", tokenMessage);

View File

@@ -162,6 +162,14 @@ public class AvailableCompositeProvider implements IIntroXHTMLContentProvider {
if (fAvailableExtensions != null) {
for (int i = 0; i < fAvailableExtensions.size(); i++) {
ComponentExtension extension = fAvailableExtensions.get(i);
// hide null entries directly
if (extension.getLabel().equals("null")) {
continue;
}
// set 0.1 as a default version
if (extension.getVersionExtension().equals("") || extension.getVersionExtension().equals("null")) {
extension.setVersionExtension("0.1");
}
Element trExtension = dom.createElement("tr");
Element tdExtension = dom.createElement("td");

View File

@@ -165,7 +165,14 @@ public class DownloadExtensionProvider implements IIntroXHTMLContentProvider {
while (ite.hasNext()) {
count++;
ComponentExtension object = (ComponentExtension) ite.next();
// hide null entries directly
if (object.getLabel().equals("null")) {
continue;
}
// set 0.1 as a default version
if (object.getDownloadedVersion().equals("") || object.getDownloadedVersion().equals("null")) {
object.setDownloadedVersion("0.1");
}
Element trExtension = dom.createElement("tr");
Element tdExtension = dom.createElement("td");
@@ -189,6 +196,7 @@ public class DownloadExtensionProvider implements IIntroXHTMLContentProvider {
style = style + ";background:#F7F7F7";
}
tdExtension.setAttribute("style", style);
// set 0.1 as a default version
tdExtension.appendChild(dom.createTextNode(object.getDownloadedVersion()));
trExtension.appendChild(tdExtension);

View File

@@ -49,7 +49,6 @@ import org.talend.commons.emf.EmfHelper;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.commons.utils.StringUtils;
import org.talend.commons.utils.VersionUtils;
import org.talend.commons.utils.io.SHA1Util;
import org.talend.core.language.ECodeLanguage;
import org.talend.core.language.LanguageManager;
import org.talend.core.model.components.ComponentUtilities;
@@ -328,22 +327,7 @@ public class ExchangeUtils {
public static String getPasswordHash() {
Project proj = ProjectManager.getInstance().getCurrentProject();
String passwordTemp = proj.getExchangeUser().getPassword();
try {
passwordTemp = SHA1Util.hex_sha1(passwordTemp);
} catch (Exception e) {
ExceptionHandler.process(e);
}
return passwordTemp;
}
public static String getPasswordHash(String passwordTemp) {
try {
return SHA1Util.hex_sha1(passwordTemp);
} catch (Exception e) {
ExceptionHandler.process(e);
}
return passwordTemp;
return proj.getExchangeUser().getPassword();
}
public static String getUserName() {

View File

@@ -527,7 +527,7 @@ public class ExchangeWebService {
tokenMessage.put("versionCompatibles", listVersionCompatibles);
tokenMessage.put("filename", new Path(filename).lastSegment());
tokenMessage.put("content", asHex(fileBytes));
tokenMessage.put("description", description);
tokenMessage.put("description", description.replace(" ", "%20"));
tokenMessage.put("agreement", agreement);
JSONObject token = new us.monoid.json.JSONObject();
token.put("newRevision", tokenMessage);
@@ -576,7 +576,7 @@ public class ExchangeWebService {
tokenMessage.put("typeExtension", typeExtension);
tokenMessage.put("version", version);
tokenMessage.put("listVersionCompatibles", listVersionCompatibles);
tokenMessage.put("description", description);
tokenMessage.put("description", description.replace(" ", "%20"));
tokenMessage.put("agreement", agreement);
JSONObject token = new us.monoid.json.JSONObject();
token.put("revision", tokenMessage);

View File

@@ -0,0 +1 @@
jarprocessor.exclude.children=true

View File

@@ -71,15 +71,15 @@ public class SAXLooper {
}
private void judgeIsSimple() {
if (this.loopPath.indexOf("..") >= 0 || this.loopPath.indexOf("*") >= 0) {
this.isSimpleParse = false;
}
for (int i = 0; i < nodePaths.length; i++) {
if (nodePaths[i].indexOf("..") >= 0 || nodePaths[i].indexOf("*") >= 0) {
this.isSimpleParse = false;
isSimpleParse = isSimplePath(loopPath);
for(String path : nodePaths) {
if(!isSimpleParse) {
break;
}
isSimpleParse = isSimplePath(path);
}
if (this.isSimpleParse) {
looper = new SimpleSAXLooper(loopPath, nodePaths, asXMLs);
} else {
@@ -88,30 +88,61 @@ public class SAXLooper {
}
private void judegeMultiIsSimple() {
if (this.rootPath.indexOf("..") >= 0 || this.rootPath.indexOf("*") >= 0) {
this.isSimpleParse = false;
isSimpleParse = isSimplePath(rootPath);
for(String path : arrOrigLoopPath) {
if(!isSimpleParse) {
break;
}
isSimpleParse = isSimplePath(path);
}
for (int i = 0; isSimpleParse && i < arrOrigLoopPath.length; i++) {
if (arrOrigLoopPath[i].indexOf("..") >= 0 || arrOrigLoopPath[i].indexOf("*") >= 0) {
this.isSimpleParse = false;
for(String[] arrNodePath : arrNodePaths) {
for(String path : arrNodePath) {
if(!isSimpleParse) {
break;
}
isSimpleParse = isSimplePath(path);
}
if(!isSimpleParse) {
break;
}
}
for (int i = 0; isSimpleParse && i < arrNodePaths.length; i++) {
for (int j = 0; j < arrNodePaths[i].length; j++) {
if (arrNodePaths[i][j].indexOf("..") >= 0 || arrNodePaths[i][j].indexOf("*") >= 0) {
this.isSimpleParse = false;
break;
}
}
}
this.isSimpleParse = false;
if (this.isSimpleParse) {
looper = new SimpleSAXLooper(rootPath, arrOrigLoopPath, arrNodePaths);
} else {
looper = new ComplexSAXLooper(rootPath, arrOrigLoopPath, arrNodePaths);
}
}
/**
* ../../../@attr also can read like a stream(now only consider the case)
* @param path
* @return
*/
private boolean isSimplePath(String path) {
if(path == null || !path.contains("..") && !path.contains("*")) {
return true;
}
boolean isSimplePath = true;
String[] nodes = path.split("/");
for(int i = 0;i<nodes.length;i++) {
String node = nodes[i];
if(i < (nodes.length - 1)) {
isSimplePath = isSimplePath && "..".equals(node);
} else {
isSimplePath = isSimplePath && node.startsWith("@");
}
}
return isSimplePath;
}
private String charset = "UTF-8";

View File

@@ -0,0 +1,179 @@
// ============================================================================
//
// Copyright (C) 2006-2013 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.xml.sax.simpleparser;
import java.util.LinkedList;
import java.util.Map;
/**
* DOC Administrator class global comment. Detailled comment
*/
public class DataBufferCache2 {
// private static DataBufferCache instance = new DataBufferCache();
private long bufferSize = 5000;
private boolean isEnd = false;
private int bufferNum = 10;
private LinkedList<Buffer> buffers = new LinkedList<Buffer>();
private Buffer currentReadBuff = null;
private Buffer currentWriteBuff = null;
private DataBufferCache2() {
}
public static DataBufferCache2 getInstance() {
return new DataBufferCache2();
}
public void setIsEnd() {
synchronized (buffers) {
try {
if (!isEnd && currentWriteBuff != null) {
buffers.add(currentWriteBuff);
}
this.isEnd = true;
} finally {
this.buffers.notifyAll();
}
}
}
public void setBufferNum(int num) {
if (num <= 0)
return;
this.bufferNum = num;
}
public void setBufferSize(long size) {
if (size <= 0)
return;
this.bufferSize = size;
}
public boolean hasData() {
getCurrReadBuffer();
if (currentReadBuff == null) {
return false;
}
return this.currentReadBuff.hasNext();
}
public Map<String,Map<String,String>> readData() {
return this.currentReadBuff.Next();
}
private void getCurrReadBuffer() {
if (currentReadBuff != null && currentReadBuff.hasNext())
return;
synchronized (this.buffers) {
try {
while (!this.isEnd && buffers.size() < 1) {
try {
buffers.wait();
} catch (InterruptedException ex) {
System.err.println(ex.getMessage());
}
}
if (buffers.size() > 0) {
currentReadBuff = buffers.remove();
}
} finally {
this.buffers.notifyAll();
}
}
}
public void writeData(Map<String,Map<String,String>> map) {
if (currentWriteBuff == null) {
currentWriteBuff = new Buffer();
}
if (currentWriteBuff.size() < this.bufferSize) {
currentWriteBuff.add(map);
} else {
currentWriteBuff.add(map);
synchronized (buffers) {
try {
while (buffers.size() > bufferNum) {
try {
buffers.wait();
} catch (InterruptedException ex) {
System.err.println(ex.getMessage());
}
}
if (currentWriteBuff.size() > 0) {
this.buffers.add(currentWriteBuff);
}
currentWriteBuff = null;
} finally {
this.buffers.notifyAll();
}
}
}
}
public void notifyErrorOccurred() {
setIsEnd();
}
class Buffer {
private LinkedList<Map<String,Map<String,String>>> buffer = null;
private boolean isForRead = false; // false for write, true for read
public Buffer() {
buffer = createNewBuffer();
}
public void setIsForRead(boolean isForRead) {
this.isForRead = isForRead;
}
public boolean isForRead() {
return this.isForRead;
}
public boolean hasNext() {
return buffer.size() > 0;
}
public Map<String,Map<String,String>> Next() {
return buffer.remove();
}
public void add(Map<String,Map<String,String>> o) {
this.buffer.add(o);
}
public int size() {
return this.buffer.size();
}
public void clear() {
this.buffer.clear();
buffer = null;
}
private LinkedList<Map<String,Map<String,String>>> createNewBuffer() {
return new LinkedList<Map<String,Map<String,String>>>();
}
}
}

View File

@@ -1,144 +0,0 @@
// ============================================================================
//
// Copyright (C) 2006-2013 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.xml.sax.simpleparser;
import java.util.LinkedList;
import java.util.Map;
/**
* DOC Administrator class global comment. Detailled comment
*/
public class DataCache {
private LinkedList<Map<String, String>> cache = new LinkedList<Map<String, String>>();
private boolean isReadEnd = false;
private static DataCache instance = new DataCache();
private long bufferSize = 10000;
int startIndex = 0;
private DataCache() {
}
public static DataCache getInstance() {
if (instance == null)
instance = new DataCache();
return instance;
}
public void setBufferSize(long size) {
this.bufferSize = size;
}
public boolean isReadEnd() {
return isReadEnd;
}
public boolean hasData() {
return !(this.isReadEnd && this.cache.size() <= 0);
}
public void setReadEnd(boolean isEnd) {
synchronized (this.cache) {
this.isReadEnd = isEnd;
this.cache.notifyAll();
}
}
public Map<String, String> readData() {
Map<String, String> result = null;
synchronized (this.cache) {
if (!isReadEnd && this.cache.size() <= 0) {
try {
this.cache.wait();
} catch (InterruptedException ex) {
System.err.println(ex.getMessage());
}
}
if (cache.size() > 0)
result = this.cache.remove();
this.cache.notifyAll();
// System.out.println(result.get("@swid") + "#" + result.get("@login_date") + "#");
return result;
}
// if (cache.size() > 0) {
// result = cache.remove();
// if (this.isWriteWait) {
// synchronized (this) {
// this.notifyAll();
// }
// }
// return result;
// }
//
// while (!isReadEnd && cache.isEmpty()) {
// synchronized (this) {
// try {
// this.isReadWait = true;
// this.wait();
// result = cache.remove();
// this.isReadWait = false;
// this.notifyAll();
// return result;
// } catch (Exception ex) {
// System.err.println(ex.getMessage());
// }
// }
// }
// return result;
}
public void writeData(Map<String, String> map) {
synchronized (this.cache) {
if (this.cache.size() >= bufferSize) {
try {
this.cache.wait();
} catch (InterruptedException ex) {
System.err.println(ex.getMessage());
}
}
this.cache.add(map);
this.cache.notifyAll();
}
// if (this.cache.size() < this.bufferSize) {
// cache.add(map);
// if (this.isReadWait) {
// synchronized (this) {
// this.notifyAll();
// }
// }
// return;
// }
// while (this.cache.size() >= this.bufferSize) {
// synchronized (this) {
// try {
// this.isReadWait = true;
// this.wait();
// } catch (Exception ex) {
// System.err.println(ex.getMessage());
// }
// cache.add(map);
//
// isWriteWait = false;
//
// this.notifyAll();
// }
// }
}
}

View File

@@ -37,12 +37,20 @@ public class SimpleSAXLoopHandler extends DefaultHandler2 {
private boolean stop = false;
private DataBufferCache2 multiCache;
public SimpleSAXLoopHandler(XMLNodes nodes, DataBufferCache bcache) {
super();
this.nodes = nodes;
this.bufferCache = bcache;
}
public SimpleSAXLoopHandler(XMLNodes nodes, DataBufferCache2 multiCache) {
super();
this.nodes = nodes;
this.multiCache = multiCache;
}
/*
* (non-Javadoc)
*
@@ -58,8 +66,11 @@ public class SimpleSAXLoopHandler extends DefaultHandler2 {
* @see org.xml.sax.helpers.DefaultHandler#endDocument()
*/
public void endDocument() throws SAXException {
// DataCache.getInstance().setReadEnd(true);
bufferCache.setIsEnd();
if(multiCache!=null) {
multiCache.setIsEnd();
} else {
bufferCache.setIsEnd();
}
}
/*
@@ -113,6 +124,18 @@ public class SimpleSAXLoopHandler extends DefaultHandler2 {
}
}
} else {//process the attribute out of the loop
int index = node.nodePath.lastIndexOf("@");
if (index > 0) {
if (currentPath.equals(node.nodePath.substring(0, index - 1))) {
String attribute = attributes.getValue(node.nodePath.substring(index + 1));
if (attribute != null) {
node.addTextValue(attribute);
} else {
node.addTextValue("");
}
}
}
}
}
}
@@ -173,12 +196,14 @@ public class SimpleSAXLoopHandler extends DefaultHandler2 {
Map<String, String> map = new HashMap<String, String>();
for (XMLNode node : nodes.getNodesCollection()) {
map.put(node.originPath, node.getTextValue());
// ---------------------------------------------
// System.out.print("" + node.getTextValue() + "#");
// ---------------------------------------------
}
bufferCache.writeData(map);
if(multiCache!=null) {
HashMap<String, Map<String, String>> row = new HashMap<String, Map<String, String>>(1);
row.put(nodes.getOriginalLoopPath(), map);
multiCache.writeData(row);
} else {
bufferCache.writeData(map);
}
if (stop) {
throw new EnoughDataException("Get enough data,now stop the xml parse action");

View File

@@ -13,7 +13,9 @@
package org.talend.xml.sax.simpleparser;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;
@@ -21,6 +23,7 @@ import java.util.concurrent.FutureTask;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.talend.xml.sax.SAXLoopCompositeHandler;
import org.talend.xml.sax.commons.ISAXLooper;
import org.talend.xml.sax.io.UnicodeReader;
import org.talend.xml.sax.simpleparser.model.XMLNode;
@@ -35,6 +38,8 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
private XMLNodes nodes = new XMLNodes();
private DataBufferCache bcache;
private DataBufferCache2 multiCache;
private Thread task;
@@ -44,6 +49,14 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
SimpleSAXLoopHandler hd = null;
private String[] arrOrigLoopPath;
private String rootPath;
private String[] arrLoopPath;
private List<XMLNodes> nodesList = new ArrayList<XMLNodes>();
public SimpleSAXLooper(String loopPath, String[] nodePaths, boolean[] asXMLs) {
futureTask = new FutureTask(this);
task = new Thread(futureTask);
@@ -54,7 +67,53 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
}
public SimpleSAXLooper(String rootPath, String[] arrLoopPath, String[][] arrNodePaths) {
futureTask = new FutureTask(this);
task = new Thread(futureTask);
this.arrOrigLoopPath = arrLoopPath;
String tmpRootPath = rootPath;
if (tmpRootPath.endsWith("/")) {
tmpRootPath = tmpRootPath.substring(0, tmpRootPath.length() - 1);
}
this.rootPath = tmpRootPath;
this.arrLoopPath = getLoopPaths(arrLoopPath);
for(int j = 0;j<arrNodePaths.length;j++) {
String[] nodePaths = arrNodePaths[j];
XMLNodes ns = new XMLNodes();
for (int i = 0; i < nodePaths.length; i++) {
ns.addNode(new XMLNode(this.arrOrigLoopPath[j], this.arrLoopPath[j],nodePaths[i], null));
}
nodesList.add(ns);
}
initLoopEntries();
}
private String[] getLoopPaths(String[] arrLoops) {
String[] loopPaths = new String[arrLoops.length];
for (int i = 0; i < arrLoops.length; i++) {
String column = arrLoops[i];
String resultCol = this.rootPath;
String[] splits = column.split("/");
for (String tmp : splits) {
if (tmp.equals("..")) {
resultCol = resultCol.substring(0, resultCol.lastIndexOf("/"));
} else if (tmp.equals(".")) {
} else if (!("").equals(tmp)) {
resultCol += "/" + tmp;
}
}
loopPaths[i] = resultCol;
}
return loopPaths;
}
/**
@@ -76,7 +135,10 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
String resultCol = node.loopPath;
String[] splits = column.split("/");
for (String tmp : splits) {
if (tmp.equals(".")) {
if (tmp.equals("..")) {
resultCol = resultCol.substring(0, resultCol.lastIndexOf("/"));
node.setAttrOutOfLoop(true);
} else if (tmp.equals(".")) {
node.isDot = true;
} else {
resultCol += "/" + tmp;
@@ -87,7 +149,30 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
}
private void initLoopEntries() {
multiCache = DataBufferCache2.getInstance();
for(XMLNodes ns : nodesList) {
for (XMLNode node : ns.getNodes().values()) {
String column = node.originPath;
String resultCol = node.loopPath;
String[] splits = column.split("/");
for (String tmp : splits) {
if (tmp.equals("..")) {
resultCol = resultCol.substring(0, resultCol.lastIndexOf("/"));
node.setAttrOutOfLoop(true);
} else if (tmp.equals(".")) {
node.isDot = true;
} else {
resultCol += "/" + tmp;
}
}
node.nodePath = resultCol;
}
}
}
/**
@@ -118,7 +203,19 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
public Object call() throws Exception {
Reader reader = null;
try {
hd = new SimpleSAXLoopHandler(nodes, bcache);
DefaultHandler handler = null;
if(nodesList.size() > 0) {
SAXLoopCompositeHandler chd = new SAXLoopCompositeHandler();
for(int i=0;i<nodesList.size();i++) {
XMLNodes ns = nodesList.get(i);
chd.register(new SimpleSAXLoopHandler(ns, multiCache));
}
handler = chd;
} else {
hd = new SimpleSAXLoopHandler(nodes, bcache);
handler = hd;
}
SAXParser saxParser = null;
if(!ignoreDTD) { //orginal code
saxParser = SAXParserFactory.newInstance().newSAXParser();
@@ -127,16 +224,16 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
spf.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
saxParser = spf.newSAXParser();
}
saxParser.setProperty("http://xml.org/sax/properties/lexical-handler", hd);
saxParser.setProperty("http://xml.org/sax/properties/lexical-handler", handler);
if (fileURL != null) {
// routines.system.UnicodeReader.java is used to ignore the BOM of the source file.
reader = new UnicodeReader(new java.io.FileInputStream(fileURL),this.charset);
org.xml.sax.InputSource inSource = new org.xml.sax.InputSource(reader);
saxParser.parse(inSource, hd);
saxParser.parse(inSource, handler);
} else {
reader = new UnicodeReader(is,this.charset);
org.xml.sax.InputSource inSource = new org.xml.sax.InputSource(reader);
saxParser.parse(inSource, hd);
saxParser.parse(inSource, handler);
}
} finally {
try {
@@ -144,7 +241,13 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
reader.close();
}
} finally {
bcache.notifyErrorOccurred();
if(multiCache!=null) {
multiCache.notifyErrorOccurred();
}
if(bcache!=null) {
bcache.notifyErrorOccurred();
}
}
}
return null;
@@ -204,8 +307,7 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
* @see org.talend.xml.sax.commons.ISAXLooper#multiIterator()
*/
public Iterator<Map<String, Map<String, String>>> multiIterator() {
// TODO Auto-generated method stub
return null;
return new SimpleSAXMultiLoopIterator(multiCache);
}
public void setIgnoreDTD(boolean ignoreDTD) {

View File

@@ -0,0 +1,26 @@
package org.talend.xml.sax.simpleparser;
import java.util.Iterator;
import java.util.Map;
public class SimpleSAXMultiLoopIterator implements Iterator<Map<String, Map<String, String>>> {
private DataBufferCache2 cache;
public SimpleSAXMultiLoopIterator(DataBufferCache2 bcache) {
this.cache = bcache;
}
public boolean hasNext() {
return cache.hasData();
}
public Map<String,Map<String, String>> next() {
return cache.readData();
}
public void remove() {
throw new UnsupportedOperationException();
}
}

View File

@@ -23,6 +23,8 @@ public class XMLNode {
public boolean outputText = false;
public String originLoopPath;
public String loopPath;
public String nodePath;
@@ -32,6 +34,14 @@ public class XMLNode {
public boolean isAsXML = false;
public boolean isDot = false;
private boolean isAttrOutOfLoop = false;
private String attrValueOutOfLoop = "";
public void setAttrOutOfLoop(boolean isAttrOutOfLoop) {
this.isAttrOutOfLoop = isAttrOutOfLoop;
}
private StringBuffer value = new StringBuffer();
private boolean isNullValue = true;
@@ -51,8 +61,18 @@ public class XMLNode {
public XMLNode(String loopPath, String originPath, String nodePath) {
this(loopPath, originPath, nodePath, false, false);
}
public XMLNode(String originLoopPath,String loopPath, String originPath, String nodePath) {
this(loopPath, originPath, nodePath, false, false);
this.originLoopPath = originLoopPath;
}
public void addTextValue(String appendValue) {
if(isAttrOutOfLoop) {
attrValueOutOfLoop = appendValue;
return;
}
isNullValue = false;
if (appendValue != null) {
@@ -61,11 +81,19 @@ public class XMLNode {
}
public String getTextValue() {
if(isAttrOutOfLoop) {
return attrValueOutOfLoop;
}
if(isNullValue) return null;
return value.toString();
}
public void resetValue() {
if(isAttrOutOfLoop) {
return;
}
isNullValue = true;
value.setLength(0);
}

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