Compare commits

...

680 Commits

Author SHA1 Message Date
wwang
2fd076a7b4 Fix Bug TDI-24364 : Add the fullname like: routines.system.Document for the Document Type in the generated code
https://jira.talendforge.org/browse/TDI-24364

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96527 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-08 09:58:09 +00:00
ilazebny
ba4d7d1088 Update version to 5.1.3 in poms
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96515 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-08 09:23:27 +00:00
wwang
e178ad8057 Fix Bug TDI-24364 : Add the fullname like: routines.system.Document for the Document Type in the generated code
https://jira.talendforge.org/browse/TDI-24364

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96511 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-08 08:49:17 +00:00
scorreia
f94343fd97 TDI-22247 *zh.properties deleted
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96462 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-07 16:46:12 +00:00
scorreia
5d2e6d09b3 i18n: synchronize Babili strings exported on 2013-01-07-16-38-27
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96457 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-07 16:12:18 +00:00
plv
1b100a644e bug TDI-24325 fixed:revert
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96385 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-07 04:26:06 +00:00
plv
a2842e53d3 merge r96360 from trunk to branch 5.1
bug TDI-24325 fixed:Deactivate joblet in job and expand it


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96379 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-07 03:57:55 +00:00
wchen
e195bd8d8f merge r96373 from trunk to branch 5.1
bug TDI-24256 fixed: Update Manager: There is an error operation for update


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96376 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-07 03:53:22 +00:00
wchen
c11d2d3f6c bug TDI-24362 fixed: tXmlMap cannot import output rows from repository
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96330 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-06 07:20:10 +00:00
wwang
edcd7ebbea Fix Bug TDI-24326 : Two documents in flow cause compilation error
https://jira.talendforge.org/browse/TDI-24326

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96317 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-06 06:02:25 +00:00
wchen
dcde0657dd bug TDI-24236 fixed: Project settings: when the property type in stats&logs is repository, select the db version, the property type will switch to build-in automatically.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96310 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-06 03:07:36 +00:00
plv
12ed39416c merge r96272 from trunk to branch 5.1
bug TDI-24233 fixed:Business Module cannot "save as" successfully after updating the version, and an error message popup.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96290 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 07:24:42 +00:00
wwang
f07d3808b6 Fix Bug TMDM-5181 : Can't create a job with tMDMTriggerInput connected to anything
https://jira.talendforge.org/browse/TMDM-5181

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96285 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 07:01:22 +00:00
wchen
9b740dadd5 bug TDI-24236 fixed: Project settings: when the property type in stats&logs is repository, select the db version, the property type will switch to build-in automatically.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96278 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 06:00:35 +00:00
wchen
8aaa5a5eb8 bug TDI-24236 fixed: Project settings: when the property type in stats&logs is repository, select the db version, the property type will switch to build-in automatically.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96277 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 03:51:01 +00:00
ldong
0b00197aff bug TDI-24346 fixed:Exception in thread "main" java.lang.Error happens when use copybook in job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96275 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 03:44:14 +00:00
nrousseau
b600a3409a merge r96259 from trunk to branch 5.1
TDI-7013 : review original commit, but avoid to use the parameter name directly.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96261 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 01:45:38 +00:00
mwang
a0f21c1b6c For bug: TDI-24301 Update detect:uchecked the change items, property type can not be change to "build-in"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96219 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-04 06:06:53 +00:00
jyhu
7c577c71c3 Fix Bug TDI-7809 :tCreateTable with HSQLDB create table use double quote,different activity from tHSQLDBOutput/Input
https://jira.talendforge.org/browse/TDI-7809 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96200 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 11:13:42 +00:00
bchen
69b73b5555 Fixed Bug TDI-24218: 64k limit on mssql SCD
https://jira.talendforge.org/browse/TDI-24218
merge r96103 & r96132 & r96195 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96197 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 10:04:20 +00:00
bchen
e4f4d8240c Fix Backlog Task TDI-24080 : tRest & tSOAP & tWebService & tWebServiceInput & tESBConsumer
https://jira.talendforge.org/browse/TDI-24080 
add dependency with jaxp-ri to make saaj work on IBM jvm 
merge r95103 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96188 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 09:01:42 +00:00
nrousseau
c86c86c7ba merge r96160 from trunk to branch 5.1
TDI-23319 : change the method used to get the font data.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96163 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 06:05:20 +00:00
nrousseau
285a6748c6 merge r96155 from trunk to branch 5.1
TDI-23319 : link again the preference page to the control used for memo. (used in tJava for ex.)


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96159 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 05:51:59 +00:00
zwzhao
68481a7389 bug TDI-24313 fixed : Stats & Logs_ can't update project settings through tab job->stats & logs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96158 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 05:35:23 +00:00
nrousseau
5ff7d7d4b5 merge r96150 from trunk to branch 5.1
TDI-7013 : fix remaining problem about the combo box, set as yellow and disabled when use dynamic settings


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96153 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 04:22:30 +00:00
zwzhao
faf9b26f6f bug TDI-24313 fixed : Stats & Logs_ can't update project settings through tab job->stats & logs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96141 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 02:28:51 +00:00
mwang
9bd1e879ec For bug TDI-24312 and TDI-24314
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96137 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-28 10:43:25 +00:00
wwang
b578fb4e16 Fix Bug TDI-24274 : tMap can't work with tJavaFlex as main input
https://jira.talendforge.org/browse/TDI-24274

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96099 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-28 05:47:43 +00:00
xqliu
0cd553b4b1 TDI-24309 modify the path in extension in org.talend.repository
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96097 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-28 04:52:22 +00:00
wchen
12079f552e bug TDI-24268 fixed : Could not get the correct sql from "Generated SQL Select query" on tELTPostgresql/MSSql/Sybase/GreenplumMap
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96076 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-28 02:48:10 +00:00
plv
1043465117 bug TDI-24254:Use tMysqlinput in a job ,not support set schema type as "Dynamic"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96033 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-27 09:36:02 +00:00
jyhu
cdf20c5a32 Fix Bug TDI-7809 :tCreateTable with HSQLDB create table use double quote,different activity from tHSQLDBOutput/Input
https://jira.talendforge.org/browse/TDI-7809 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96023 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-27 08:16:02 +00:00
jyhu
e83fc5e879 Fix Bug TDI-24212 :Need modification from component team to enhance ELT.
https://jira.talendforge.org/browse/TDI-24212 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@96006 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-27 07:34:07 +00:00
wwang
498912f1ac Fix Bug TDI-24299 : fix the tuj bug5774_tFileInputXML
https://jira.talendforge.org/browse/TDI-24299

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95993 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-27 06:28:15 +00:00
hcyi
54ad690ee7 bug TDI-20184 fixed : oracle connection export as context,use elt componment create a job,when run there is error.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95986 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-27 05:34:10 +00:00
wchen
cef7e37e0d bug TDI-23987 fixed: H2 JDBC connection "guess schema" report exception error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95950 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-26 07:09:17 +00:00
zwzhao
3c0cfbc044 bug TDI-23520 fixed : Fix retrieve WSDL from GUI side
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95946 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-26 06:23:35 +00:00
hcyi
4d41049e26 bug TDI-20184 fixed : oracle connection export as context,use elt componment create a job,when run there is error.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95940 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-26 02:55:21 +00:00
wwang
6d774474a3 Fix Bug TDI-24078 : Search all the components which contains com.sun.*, then try to find a solution to make them support both oracle jvm & ibm jvm.
https://jira.talendforge.org/browse/TDI-24078

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95906 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-25 04:00:33 +00:00
wwang
d64e6b0a20 Fix Bug TDI-20774 : Exception class that has been generated in the routines from the WSDL reports compilation error
https://jira.talendforge.org/browse/TDI-20774

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95898 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-25 03:29:10 +00:00
wchen
2603cf019a bug TDI-24168 fixed: Too Many refresh of the component properties view leading to memory leak
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95897 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-25 03:28:13 +00:00
wchen
90ceaa6f77 bug TDI-24185 fixed: tXMLMap_there are some deletion issue for "Configure source loops"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95869 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-24 10:18:33 +00:00
hcyi
24deb81fab bug TDI-24260 fixed : JobSetting View "Extra" ,"Stats&Logs" tab have some problems of the db parameter .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95855 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-24 09:05:13 +00:00
zwzhao
1c76483f22 bug TDI-23126 fixed : Don't disable Connection after changed to another workspace
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95845 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-24 06:31:48 +00:00
ilazebny
a1321df5e6 Update poms version to 5.1.3-SNAPSHOT
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95828 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-21 12:11:47 +00:00
hwang
883ad76f79 merge r95791 from trunk to branch 5.1
TDI-24238:When drag a db connection component into job and link it by main row, it will report error in error log


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95792 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-21 07:07:56 +00:00
wliu
886023cdac Fix Bug TDI-23514 : Run job with tloop component, no statics flow
https://jira.talendforge.org/browse/TDI-23514

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95784 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-21 05:52:16 +00:00
hcyi
a69dd16af5 bug TDI-24260 fixed : JobSetting? View "Extra" ,"Stats&Logs" tab have some problems of the db parameter .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95782 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-21 05:35:40 +00:00
ycbai
26025ce996 bug TDI-24253 fixed : Export Axis War file produces inconsistent size
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95769 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-21 02:19:44 +00:00
hcyi
704cf2a919 merge r95740 from trunk to branch 5.1
bug TDI-23535 modified : switching implicit context variables from Oracle to Mysql genereate incorrect select statement . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95743 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-20 09:59:54 +00:00
fwang
dae881ce44 bug TDI-24200 fixed:Problems related with tDBSCD components after the modification of 23146
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95724 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-20 08:47:48 +00:00
hwang
2f86f3d303 merge r95648 from trunk to branch 5.1
TDI-7013:Shared connection of DB components,after delete component list in 'dynamic setting', job still run successfully


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95651 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-19 10:46:56 +00:00
plv
9ef5b0efdc merge r95618 from trunk to branch 5.1
bug TDI-23917:serveral links between tmap and tlogrow cause a NPE error


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95622 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-19 07:32:48 +00:00
ycbai
b7d6838a1c bug TDI-22836 fixed : Small warning if use tSalesforceConnection with tsetProxy with authentication
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95616 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-19 06:50:01 +00:00
mwang
cd51ba97f4 for bug TDI-24038 Cannot Save the job with huge screen in studio
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95576 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 09:47:07 +00:00
wchen
3e250a5931 bug TDI-21419 fixed: The feature where dragging a component over a link, puts it in between the link is not working as expected
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95562 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 08:58:08 +00:00
zwzhao
77a9d3fdee bug TDI-23520 fixed : Fix retrieve WSDL from GUI side
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95556 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 08:40:23 +00:00
jzhao
7f853c00c2 Fixed Work Item TDI-22865: Fix the 65535 problem in tExtractXMLField
https://jira.talendforge.org/browse/TDI-22865
Node:Fixed  reject data problem

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95552 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 08:16:40 +00:00
ldong
7d066f6a24 bug TDI-21900 fixed:EBCDIC copybook wizard should support other copypage( in *.x2cj file is "ConversionTable") not only.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95548 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 08:11:09 +00:00
hwang
1921e40cf9 merge r95528 from trunk to branch 5.1
TDI-24187:get NPE when retarget a joblet output to another component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95531 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 06:49:28 +00:00
wwang
a494e51e35 Fix Bug TDI-24161 : I can use reject line when checked Die On Error on some components
https://jira.talendforge.org/browse/TDI-24161

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95530 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 06:41:25 +00:00
hwang
7853eb5fb4 TDI-23023:Move to joblet issues
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95525 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 06:14:40 +00:00
hwang
2171059708 merge r95464 from trunk to branch 5.1
TDI-23023:Move to joblet issues


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95523 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 06:01:19 +00:00
jjzhou
4d930b709b fix Bug TDI-23810:when the checkbox:"Binary" in table: "Multi-Values" is ticked while "Base64" is not ticked, give a comiple error for tLDAPOutput
https://jira.talendforge.org/browse/TDI-23810

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95490 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 01:37:33 +00:00
wchen
98df843aed bug TDI-21419 fixed: The feature where dragging a component over a link, puts it in between the link is not working as expected
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95476 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 10:43:12 +00:00
jyhu
f6f33caf7e Fix Bug TDI-20609 : Created Tables are always uppercased with tOracleOutput, even though the option "CONVERT_COLUMN_TABLE_TO_UPPERCASE" is not checked.
https://jira.talendforge.org/browse/TDI-20609 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95443 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 08:44:52 +00:00
zwzhao
46b6386763 bug TDI-24180 fixed : Login and pwd are in clear in \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.prefs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95438 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 08:34:12 +00:00
jyhu
c5798ae0fb Fix Bug TDI-24158 : NB_LINE_INSERTED, NB_LINE_UPDATED,NB_LINE_DELETED are incorrect when check use batch size on tInformixOutput component.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95427 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 07:51:15 +00:00
wchen
bd04e45aa7 merge r95414 from trunk to branch 5.1
bug  TDI-TDI-20703 fixed: Problems of tXmlMap multiloop


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95419 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 06:50:06 +00:00
jyhu
f7556e2270 Fix Bug TDI-24066 : Components tPOP/tFileInputMail AND french charset encoding ISO8859-1 to UTF8.
https://jira.talendforge.org/browse/TDI-24066

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95416 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 06:42:33 +00:00
hcyi
ab7da9a391 bug TDI-23997 fixed : Sharing components not working in 5.1.1 .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95343 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 08:44:59 +00:00
nrousseau
9c15943557 merge r95016 from trunk to branch 5.1
TDI-23253 : modify first commit to avoid add quotes if already have quotes, or if the value doesn't contain any space character.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95276 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 04:25:55 +00:00
jjzhou
32282aa8bb fix Backlog Task TDI-24175: tLDAPInput - Recovery of DN when use existing connection enabled
https://jira.talendforge.org/browse/TDI-24175 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95271 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 04:03:10 +00:00
mwang
8a25180bbc For bug TDI-7559
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95211 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-13 10:24:59 +00:00
jyhu
d54a11a6fe Fix Bug TDI-23950 : tJDBCOuput NB_LINE inconsistent when 'use batch size' = true
https://jira.talendforge.org/browse/TDI-23950 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95206 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-13 09:59:53 +00:00
plv
f11dbe8e6e merge r95200 from trunk to branch 5.1
bug TDI-7809:tHSQLDBInput - In in process persistent mode "guess schema" doesn't work


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95205 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-13 09:52:37 +00:00
wchen
bcec5b8924 bug TDI-24117 fixed: Problem of tXmlMap multiloops
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95204 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-13 09:16:28 +00:00
fwang
c6ebdd26af bug TDI-23877 fixed:The paremeters of Implicit tContextLoad or Stats & Log are wrong.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95190 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-13 08:35:36 +00:00
ycbai
23b81a676f bug TDI-23825 fixed : Can not save job again after tac restarted
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95171 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-13 03:42:52 +00:00
ycbai
0daa7ef9b5 merge r95168 from trunk to branch 5.1
bug TDI-23825 fixed : Can not save job again after tac restarted


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95169 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-13 02:47:44 +00:00
fwang
ba1c0a36ae bug TDI-24096 fixed:tFileInputMSDelimited_exception thrown if same letters with lowercase and uppercase exist in the schema
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95134 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-12 08:06:53 +00:00
wchen
e5f899d481 bug TDI-24143 fixed: tXmlMap import xml from repository, can select folder and finish ,but will show an error .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95131 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-12 07:23:43 +00:00
jzhao
3183c74ca4 Fixed Work Item TDI-23984: When input components don't have data output connectors but onComponentOK/onSubJobOK connectors, fix the possible compile errors
https://jira.talendforge.org/browse/TDI-23984 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95112 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-12 02:45:28 +00:00
fwang
991b62ee61 bug TDI-23331 fixed:the problem ofversion management check-box
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95056 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-11 03:06:46 +00:00
wchen
71886ac5a2 bug TDI-24071 fixed: export a rows into xml file then import it(if type = document) will miss loop
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95019 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-10 06:16:36 +00:00
wwang
12b181fa4a Fix Bug TDI-24009 : Change the default type from String to Int for Id in tMarketoInput
https://jira.talendforge.org/browse/TDI-24009

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95012 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-10 02:17:58 +00:00
plv
065d708b82 bug TDI-23507:SQLserver JDBC: the sql of Guess Schema is wrong
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@95009 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-10 02:04:52 +00:00
ldong
5d4c38d602 bug TDI-21862 fixed:fix a small pb about NPE.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94977 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-07 09:03:11 +00:00
hcyi
eead5d3f46 bug TDI-23535 fixed : switching implicit context variables from Oracle to Mysql genereate incorrect select statement .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94966 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-07 07:55:04 +00:00
nrousseau
2346987768 merge r94958 from trunk to branch 5.1
TDI-23640 : change the original fix, since it disabled the CTRL+SHIFT+F3


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94960 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-07 06:39:38 +00:00
jjzhou
f58aaa767c fix Bug TDI-24088:Fix the issue TDI - 23949 in 5.1 and 5.0
https://jira.talendforge.org/browse/TDI-24088

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94954 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-07 03:56:26 +00:00
hwang
ae008a1a01 TDI-24070:add a flag(*) for unopened jobs when update jobs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94897 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-06 07:17:14 +00:00
hwang
b88525643b merge r94886 from trunk to branch 5.1
TDI-24070:add a flag(*) for unopened jobs when update jobs 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94889 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-06 06:35:11 +00:00
ldong
561bfd9511 bug TDI-21862 fixed:The DDL generated is not correct.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94884 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-06 06:24:18 +00:00
nrousseau
7d462c3f0d merge r94879 from trunk to branch 5.1
TDI-24053 fixed: avoid to set several times the same metadata for nothing, which can reset the current metadata setup before. fix one problem as well for the size of shell, each time reopen the tRowGenerator, the dialog becomes smaller and smaller...


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94881 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-06 04:31:05 +00:00
hwang
7051675b60 merge r94857 from trunk to branch 5.1
TDI-23028:Changes to expanded joblets


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94858 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-05 10:14:35 +00:00
hwang
2692670263 TDI-22770:Joblet changes that do not affect input/output should not trigger job update detection
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94851 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-05 07:11:48 +00:00
hwang
a4f418c53e merge r94846 from trunk to branch 5.1
TDI-22770:Joblet changes that do not affect input/output should not trigger job update detection


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94849 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-05 06:59:30 +00:00
wchen
3b570afc95 bug TDI-23987 fixed :H2 JDBC connection "guess schema" report exception error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94826 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-05 01:49:38 +00:00
jjzhou
1f9ae113eb fix Bug TDI-24024:merge the modification into 5.1
https://jira.talendforge.org/browse/TDI-24024

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94786 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-04 09:38:57 +00:00
wchen
77d8972876 bug TDI-21419 fixed: The feature where dragging a component over a link, puts it in between the link is not working as expected
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94776 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-04 08:31:41 +00:00
nrousseau
023049beae merge r94754 from trunk to branch 5.1
bug TDI-23650 fixed: allow to see / use db columns directly from ELT components.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94762 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-04 03:47:52 +00:00
ycbai
bd7f5ed8e1 bug TDI-23972 fixed : Deleting components in job pops-up error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94686 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-30 10:18:20 +00:00
jzhao
478881b6bb Fixed issue TDI-23740: Find all these components with EConnectionType.FLOW_MAIN to check if they could work together with tUnite
https://jira.talendforge.org/browse/TDI-23740
Note:Modify tLDAPAttributesInput link tjava with OnComponentOK generate code compile code error

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94664 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-30 07:03:39 +00:00
nrousseau
0b583569ed merge r94656 from trunk to branch 5.1
TDI-23640 : improve the speed of generation, avoid to build for nothing for some javajet if it's already generated with same content


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94660 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-30 06:37:45 +00:00
jyhu
1378aa9d3f Fix Bug TDI-23974 : NPE in the code generation part when using a tEXAOutput component
https://jira.talendforge.org/browse/TDI-23974 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94653 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-30 04:03:51 +00:00
hwang
be1ee39c88 TDI-23724 :If add a new input to joblet component, the old job using joblet is on error when update.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94651 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-30 03:59:02 +00:00
jyhu
978e95da2e Fix Bug TDI-23858 : tRunJob/IndependantProcess/JobServerCache - tRunJob part.
https://jira.talendforge.org/browse/TDI-23858 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94617 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 10:10:38 +00:00
hwang
fb51dd2b92 TDI-22839:Other joblets used in job locked when joblet saved
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94615 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 09:43:01 +00:00
hwang
2bd571132b TDI-22839:Other joblets used in job locked when joblet saved
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94614 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 09:35:03 +00:00
hwang
d2888dcdfb TDI-22839:Other joblets used in job locked when joblet saved
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94608 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 09:04:40 +00:00
zwzhao
41b001b8ca bug TDI-5815 fixed : tELTAggregate: source and target table name are not set
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94586 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 06:51:05 +00:00
jzhao
34b5bc246f Fixed Work Item TDI-22865: Fix the 65535 problem in tExtractXMLField
https://jira.talendforge.org/browse/TDI-22865

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94580 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 06:26:55 +00:00
xqliu
e17d77a142 TDQ-6185 TDQ-6420 backport to branch 5.1 (refactoring of RenameFolderAction)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94570 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 03:11:33 +00:00
wwang
3e2448e96a Fix Bug TDI-23676 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-23676

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94520 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 08:19:29 +00:00
xqliu
bb69db44e3 TDQ-6185 TDQ-6420 backport to branch 5.1 (refactoring of RenameFolderAction)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94503 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 06:47:12 +00:00
jzhao
6130d0c79c Fixed issue TDI-23740: Find all these components with EConnectionType.FLOW_MAIN to check if they could work together with tUnite
https://jira.talendforge.org/browse/TDI-23740
Note:This modify for tLDAPAttributesInput

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94497 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 05:56:11 +00:00
fwang
5c686d0721 bug TDI-21813 fixed:FTP_fail to update repository for ftp connection
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94483 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 02:44:50 +00:00
xqliu
de7554db94 TDQ-6185 TDQ-6420 backport to branch 5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94459 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 10:57:46 +00:00
hwang
f0b26c5451 TDI-23690:when modify the joblet context,can not use tool bar(datect and update all jobs) to updaye all the jobs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94444 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 08:49:56 +00:00
wchen
2331854978 merge r94430 from trunk to branch 5.1
bug TDI-23745 fixed: select context group list box only appear once when checking connection 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94431 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 07:23:21 +00:00
hwang
140f63f938 TDI-23690:when modify the joblet context,can not use tool bar(datect and update all jobs) to updaye all the jobs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94423 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 06:50:16 +00:00
bchen
eb68d4c33d Fix Bug TDI-22640 : Problem with combination of tWebservice and tXSLT
https://jira.talendforge.org/browse/TDI-22640
add xalan as implement of javax.xml.transform.TransformerFactory
merge r94413 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94414 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 06:06:31 +00:00
jzhao
cd31118b19 Fixed Backlog Task TDQ-6500: Migration task for the rename of property's name.
https://jira.talendforge.org/browse/TDQ-6500
Note:RenametStandardizePhoneNumberColumnName.java

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94406 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 05:09:51 +00:00
jzhao
b27f63235b Fixed Bug TDI-23513: Method exceeding 65535 bytes limit while using tAdvancedFileOutputXML
https://jira.talendforge.org/browse/TDI-23513

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94381 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 10:33:20 +00:00
jyhu
46ba18c4ac Fix Bug TDI-23271: Memory leak - usage of child job and how they release reference
https://jira.talendforge.org/browse/TDI-23271 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94368 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 09:44:54 +00:00
fwang
5a9d97b850 bug TDI-23872 fixed:When logon remote project,there is an log in configuration and didn't have register page.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94364 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 09:20:28 +00:00
jjzhou
5a1b0aaf25 Fix Bug TDI-23184 : trunjob: BufferOutput + tAggregateRow with List returns wrong List parent job
https://jira.talendforge.org/browse/TDI-23184 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94340 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 06:57:17 +00:00
ycbai
f79fb5e344 bug TDI-23851 fixed : specific items in TIS should not be detected for TOS
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94338 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 06:52:05 +00:00
jjzhou
cda8340e2b Fix Bug TDI-23885 : make tFileOutputEBCDIC support different schema under custom mode
https://jira.talendforge.org/browse/TDI-23885

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94334 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 06:12:47 +00:00
wchen
2375034f61 bug TDI-23745 fixed: select context group list box only appear once when checking connection
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94331 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 05:46:06 +00:00
cli
69b9bdf499 TUP-264: check the cache for lib and components
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94318 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 03:19:50 +00:00
jzhao
d4ffcc83a9 Fixed Bug TDI-21558: tConvertType reject flow should have same structure as input not output
https://jira.talendforge.org/browse/TDI-21558
Note:Add line number for error message

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94289 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 10:45:20 +00:00
fwang
1459e16cfa bug TDI-23146 fixed:Slowly Changing Dimensions (SCDs) Field Updating
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94286 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 10:15:59 +00:00
plv
f58ab2ee8a merge r94281 from trunk to branch 5.1
bug TDI-8569:Exporting a job should not prompt to save unrelated jobs


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94283 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 10:03:38 +00:00
plv
7bc40acf9c merge r94276 from trunk to branch 5.1
bug TDI-8569:Exporting a job should not prompt to save unrelated jobs


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94277 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 09:37:12 +00:00
plv
5893699ec1 merge r94256 from trunk to branch 5.1
bug TDI-8569:Exporting a job should not prompt to save unrelated jobs


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94272 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 08:50:44 +00:00
jjzhou
c3f5782654 fix Bug TDI-23885:tFileOutputEBCDIC / "<COLUMN> cannot be resolved or is not a field"
https://jira.talendforge.org/browse/TDI-23885 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94266 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 07:49:02 +00:00
nrousseau
bef0801897 merge r94263 from trunk to branch 5.1
TDI-23899 : fix problem of missing validation rules on db output component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94264 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 07:41:53 +00:00
plv
d69704497f merge r94247 from trunk to branch 5.1
bug TDI-8569:Exporting a job should not prompt to save unrelated jobs


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94248 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 05:35:58 +00:00
plv
786b7bccc7 merge r94231 from trunk to branch 5.1
bug TDI-23781:double click the tELTxxxMap components, the title of the window is "Talend Open Studio ..."


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94232 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 02:18:12 +00:00
wchen
5880b3af13 bug TDI-23708 fixed: problem with tXMLMap and multi-level loop
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94199 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 08:13:47 +00:00
plv
af8cc5f32b merge r94186 from trunk to branch 5.1
bug TDI-23781:double click the tELTxxxMap components, the title of the window is "Talend Open Studio ..."


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94187 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 07:13:10 +00:00
hwang
e57305f6b1 merge r94182 from trunk to branch 5.1
TDI-23724:Can't not have more than one input linked to the same connection


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94184 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 07:00:10 +00:00
plv
e5451d895e merge r94171 from trunk to branch 5.1
bug TDI-23764:Wrong product name when start Jasper Express (community or not)


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94174 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 05:54:31 +00:00
jzhao
fa288c3d71 Fixed TDI-23866: Some SCD components like tOracleSCD when check "use memory saving mode" generate SQL error
https://jira.talendforge.org/browse/TDI-23866

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94159 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 03:01:46 +00:00
jjzhou
3e92008e21 Fix Bug TDI-23184 : trunjob: BufferOutput + tAggregateRow with List returns wrong List parent job
https://jira.talendforge.org/browse/TDI-23184 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94156 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 02:48:44 +00:00
wwang
89eb0ff82e Fix Bug TDI-12563 : fix the migratask
https://jira.talendforge.org/browse/TDI-12563

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94155 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 02:32:30 +00:00
nrousseau
07f41deb76 TDI-23811 : fix compilation error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94134 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 11:02:20 +00:00
plv
09404a12e9 bug TDI-8569:revert code
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94122 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 09:36:07 +00:00
nrousseau
93e53e6cfa merge r94108 from trunk to branch 5.1
TDI-23811 : fix problem when a job was opened in editor and locked by another user. (there should be no update)


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94113 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 08:54:59 +00:00
jyhu
9e18fb03cf Fix Bug TDI-23762 : SQL syntax error when use tCombinedSQLInput for GreenPlum.
https://jira.talendforge.org/browse/TDI-23762

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94089 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 06:21:56 +00:00
wwang
6d13776639 Fix Bug TDI-23680 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-23680

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94081 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 05:36:10 +00:00
nrousseau
b07bc2b399 merge r94011 from trunk to branch 5.1
TDI-23811 : enhance the system of job update, to avoid to call the update several times for nothing, and lose informations


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94070 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 04:09:59 +00:00
jzhao
50ffd6e2cd Fixed issue TDI-23740: Find all these components with EConnectionType.FLOW_MAIN to check if they could work together with tUnite
https://jira.talendforge.org/browse/TDI-23740 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94058 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 03:53:38 +00:00
jjzhou
4792307ff1 fix Bug TDI-23778: BUG tFileOutputLDIF if you check the Base64
https://jira.talendforge.org/browse/TDI-23778

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@94010 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-20 09:17:40 +00:00
jjzhou
c3f258cc1b fix Bug TDI-23647: add REPOSITORY_VALUE in xml file
https://jira.talendforge.org/browse/TDI-23647

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93994 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-20 04:43:09 +00:00
plv
e7c68772e6 TDI-23805: fix problem of update schema
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93977 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-20 02:26:45 +00:00
rdubois
2c9da622fa TDI-12563: Fix the plugin.xml for the migration task.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93975 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-19 16:22:48 +00:00
hcyi
3030eaf9ff bug TDI-23426 fixed : upgrade the jar from mysql-connector-JAVA-5.1.0-bin.jar to mysql-connector-JAVA-5.1.22-bin.jar for studio part .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93928 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-19 06:15:41 +00:00
wwang
54ee8a6aba Fix Bug TDI-12563 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-12563

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93919 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-19 05:17:23 +00:00
hcyi
6ff396973a bug TDI-23426 fixed : upgrade the jar from mysql-connector-JAVA-5.1.0-bin.jar to mysql-connector-JAVA-5.1.22-bin.jar for studio part .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93912 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-19 03:32:55 +00:00
plv
9602003950 bug TDI-8569:Exporting a job should not prompt to save unrelated jobs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93891 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-16 09:09:14 +00:00
ldong
30cc16d75f bug TDI-22977 fixed:Lookup settings lost if drop component onto lookup flow.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93887 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-16 09:04:56 +00:00
hwang
258c15580c merge r93865 from trunk to branch 5.1
TDI-23690:when modify the joblet context,can not use tool bar(detect and update all jobs) to update all the jobs


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93867 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-16 06:41:21 +00:00
hwang
74636a44f3 merge r93859 from trunk to branch 5.1
TDI-23724:If add a new input to joblet component, the old job using joblet is on error when update.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93866 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-16 06:36:58 +00:00
plv
0fff9449a9 merge r93849 from trunk to branch 5.1
bug TDI-23736:Error when i open a stored query


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93852 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-16 02:33:01 +00:00
plv
eb506e4600 merge r93817 from trunk to branch 5.1
bug TDI-21022:Project setting_the setting will be saved after import the setting xml file even you click cancel


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93820 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-15 08:23:52 +00:00
plv
2fcb208c99 merge r93816 from trunk to branch 5.1
bug TDI-21022:Project setting_the setting will be saved after import the setting xml file even you click cancel


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93819 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-15 08:15:22 +00:00
plv
e1d3cc293a merge r93814 from trunk to branch 5.1
bug TDI-21022:Project setting_the setting will be saved after import the setting xml file even you click cancel


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93818 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-15 08:05:08 +00:00
wliu
97d58df997 Fix Bug TDI-23735 : tWriteXMLField, tWriteJSONField, tMDMOutput can't connect to component with merge connector
https://jira.talendforge.org/browse/TDI-23735

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93809 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-15 05:27:22 +00:00
wliu
3ffa90de14 Fix Bug TDI-23735 : tWriteXMLField, tWriteJSONField, tMDMOutput can't connect to component with merge connector
https://jira.talendforge.org/browse/TDI-23735

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93808 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-15 04:36:45 +00:00
jyhu
ad8b6992cf Fix Bug TDI-22868: tFileList should sort all matched files together not within each mask
https://jira.talendforge.org/browse/TDI-22868 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93802 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-15 03:49:54 +00:00
sizhaoliu
1c80877772 merge r93790 from trunk to branch 5.1
TDQ-6149 centralize the generated jibx binding into "Drools/<user project name>" in the Studio root directory
+ fixed an deploy issue when the new binding jar has the same name than the chosen module in the component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93791 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 17:44:59 +00:00
zwzhao
f6708d1aaa bug TDI-23520 fixed : Fix retrieve WSDL from GUI side
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93760 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 07:02:10 +00:00
jyhu
d683f8e8e9 Fix Bug TDI-22200 : SQL syntax error when use tCombinedSQLAggregate for Teradata
https://jira.talendforge.org/browse/TDI-22200

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93758 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 06:27:51 +00:00
hwang
113875abbe merge r93752 from trunk to branch 5.1
TDI-23700:revert code


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93753 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 05:58:51 +00:00
wwang
5ba49ea698 Fix Bug TDI-22589 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-22589

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93745 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 04:05:02 +00:00
wchen
9cf9ab3c4e bug TDI-23546 fixed: Wrong routines settings after assigned job for services to create new Talend job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93740 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 03:18:30 +00:00
wwang
b53bbe048f Fix Bug TDI-19284 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-19284

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93738 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 03:11:20 +00:00
jyhu
c2cf299c0a Fix Bug TDI-23395 : tWaitforfile couldn't monitor files added if there are too many folder in the subdirectories
https://jira.talendforge.org/browse/TDI-23395

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93710 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 10:41:06 +00:00
nrousseau
25a4c3e3dc merge r93610 from trunk to branch 5.1
TDI-23691 fixed: avoid some compilation check for nothing


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93709 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 10:40:06 +00:00
hwang
93b3c57bbc merge r93689 from trunk to branch 5.1
TDI-23700:two subjob become one subjob when connect them with onsubjobok


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93693 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 10:06:11 +00:00
hcyi
ecb52ef885 bug TDI-22465 fixed : Throw compilation error if tRunJob output flow has no schema .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93685 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 09:30:08 +00:00
hwang
c512ee56f2 merge r93681 from trunk to branch 5.1
TDI-23648 :Only can use one Trigger Input(OnSubjobXXX) in Joblet, should support multi Trigger Input. 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93684 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 09:28:14 +00:00
hwang
009e516a6f TDI-23007:Joblet output schema changes not propagated to jobs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93677 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 08:38:48 +00:00
mwang
efecfad2ab For bug TDI-23253
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93671 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 07:22:48 +00:00
wliu
e053a5b1fe Fix Bug TDI-22552 : tLoop---> tIterateToFlow --- > tUnite ---> tOutput has compile error
https://jira.talendforge.org/browse/TDI-22552

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93639 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 02:19:30 +00:00
plv
88388a3541 merge r93587 from trunk to branch 5.1
bug TDI-23174:Impact analysis:Imported joblet can not detect impact analysis


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93636 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 02:09:39 +00:00
wwang
a95a981883 Fix Bug TDI-23541 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-23541

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93634 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 01:51:40 +00:00
hwang
b0dccb1df3 merge r93604 from trunk to branch 5.1
TDI-23690:when modify the joblet context,can not use tool bar(datect and update all jobs) to updaye all the jobs


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93609 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 10:14:10 +00:00
hwang
705943f1d3 merge r93297 from trunk to branch 5.1
TDI-23007:Joblet output schema changes not propagated to jobs


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93605 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 10:06:10 +00:00
jjzhou
067f105900 fix Bug TDI-23386:tMDMOutput IndexOutOfBoundsException with Fields not existing
https://jira.talendforge.org/browse/TDI-23386

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93564 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 02:17:52 +00:00
jjzhou
1339e80baa fix Bug TDI-23647:Unable to create a tSalesforceConnection from the metadata
https://jira.talendforge.org/browse/TDI-23647

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93523 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 08:15:00 +00:00
jzhao
2c207d2865 Fix Work Item TDI-22783 : Optimize the code automatically according to the columns number
https://jira.talendforge.org/browse/TDI-22783
Note:
optimize code of tFileOutputMSXML and remove unused code

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93514 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 06:57:27 +00:00
hwang
a7dbf7d5c4 merge r93496 from trunk to branch 5.1
TDI-22770:revert what yihongchun did for 20096


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93503 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 04:59:33 +00:00
jzhao
89fc176bac Fixed Bug TDI-22783: Optimize the code automatically according to the columns number
https://jira.talendforge.org/browse/TDI-22783
Note: tFileOutputMSXML/tFileInputEBCDIC

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93502 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 04:31:58 +00:00
jzhao
e0466bfe49 Fixed Bug TDI-22783: Optimize the code automatically according to the columns number
https://jira.talendforge.org/browse/TDI-22783
Note: tFileOutputMSXML/tFileInputEBCDIC

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93500 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 04:29:46 +00:00
bchen
89dce11a17 Fix Backlog Task TDI-23521 : Review the use of the component (before or after GUI change)
https://jira.talendforge.org/browse/TDI-23521
1. fixed the bug when the schema don't have targetNamespace.
2. support abstract type.
3. modified jaxb-XJC-2.2.5.jar to generate get mothed instead of is method for boolean type.
merge r93350 into branch 5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93498 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 04:01:27 +00:00
wchen
0f854ac287 bug TDI-21740 fixed: Unable to use "tFileOuputMSXML" with "tUnite"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93493 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 03:26:51 +00:00
bchen
bc8e31d68b Fix Bug TDI-15391 : tMap output flows incorrectly populated if no lookup fields directly specified
https://jira.talendforge.org/browse/TDI-15391
revert this modification r93169

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93455 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 10:38:51 +00:00
jjzhou
cdfcdb7628 fix Bug TDI-23590:tSplitRow lose the values of output mapping
https://jira.talendforge.org/browse/TDI-23590

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93451 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 10:18:23 +00:00
wchen
dff5fb3e02 bug TDI-22552 fixed: Error "Duplicate nested type" for some main-connections after adding tUnite
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93434 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 08:35:29 +00:00
mwang
7eea9faed2 For bug TDI-23415
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93433 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 08:27:41 +00:00
plv
363ceee848 merge r93416 from trunk to branch 5.1
bug TDI-22916:Remove the full outer join for tELTMysqlMap


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93429 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 08:07:41 +00:00
plv
593b5545b5 merge r93372 from trunk to branch 5.1
bug TDI-4742:Little glitch in tMap Map editor


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93373 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 09:32:10 +00:00
fwang
857e68c791 bug TDI-23433 fixed:SybaceJDBC:use it in a job, get error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93370 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 09:17:53 +00:00
jjzhou
b7b273eab6 fix Bug TDI-22465:revert the change
https://jira.talendforge.org/browse/TDI-22465

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93365 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 08:58:08 +00:00
wchen
9ddd8ab268 bug TDI-23585 fixed: Select the checkbox in table controller in component view does not dirty the job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93342 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 06:19:06 +00:00
wchen
c7ebf94246 bug TDI-23285 fixed: tXmlMap variable name overwrites any existing expression when creating a 'Var'
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93341 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 06:06:27 +00:00
mwang
4a12876a4f For bug TUP-221
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93332 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 04:21:28 +00:00
jyhu
8e3bd0ead1 Fix Bug TDI-23444: Setting to Drop Table created by toraclebulkexec component
https://jira.talendforge.org/browse/TDI-23444 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93323 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 02:50:51 +00:00
ycbai
54ee999214 bug TDI-23414 fixed : Show error when export job as Petals ESB on TOSDI and TOSBD
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93272 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-06 06:51:50 +00:00
ycbai
81e3e8820d bug TDI-23503 fixed : ctrl + s in doesn't work anymore
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93229 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-05 07:39:26 +00:00
wchen
8af6eb9f0f bug TDI-23298 fixed: The tXMLMap component should filter the illeagl character "tns:" when WSDL file using namespace.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93224 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-05 07:12:33 +00:00
hwang
2079a17ecf TDI-20219:The data should be not transfered to the joblet in a job
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93211 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-05 02:54:45 +00:00
wchen
52ed7388e2 bug TDI-22830 fixed: the jar file can't be imported when import routines
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93210 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-05 02:40:11 +00:00
jzhao
dfd1e5d75f Fixed Bug TDI-23297: New problems from TDI-8528 regarding file path parsing
https://jira.talendforge.org/browse/TDI-23297

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93188 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-02 09:25:04 +00:00
ycbai
046b2b02a0 bug TDI-23226 fixed : When click the 'Detect Dependencies' button after some modifications for service, no correct pop-up information.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93187 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-02 09:21:37 +00:00
nrousseau
4aac1654a1 merge r93179 from trunk to branch 5.1
TDI-23475 fixed: just enhanced, in case no display found


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93180 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-02 09:13:04 +00:00
bchen
cecc02466d Fix Bug TDI-15391 : tMap output flows incorrectly populated if no lookup fields directly specified
https://jira.talendforge.org/browse/TDI-15391
when the lookup without rows and the Match type is All Rows, none of the data should be populated.
merge r93162 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93169 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-02 07:14:04 +00:00
jzhao
88e3333dff Fix Bug TDI-23502 : Oracle SCD
https://jira.talendforge.org/browse/TDI-23502 
Note: 
1. modify SCD component which has "DB Sequence" function ("SK_DB_SEQUENCE" default value remove "") 
2. Some SCD component which has no "DB Sequence" function ,remove "SK_DB_SEQUENCE"

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93146 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-01 11:07:42 +00:00
jjzhou
c6c9a22051 fix Bug TDI-22465:update "compilation error" message
https://jira.talendforge.org/browse/TDI-22465

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93109 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-01 02:16:50 +00:00
hwang
f233f25d52 merge r93062 from trunk to branch 5.1
TDI-23195:Deactivate component in joblet will be reactivated automatically after saving the job


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93106 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-01 01:57:22 +00:00
hwang
ee466fb837 merge r93038 from trunk to branch 5.1
TDI-23195:Deactivate component in joblet will be reactivated automatically after saving the job


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93105 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-01 01:51:37 +00:00
jjzhou
8af83a80d8 fix Bug TDI-22465:Throw compilation error if tRunJob output flow has no schema
https://jira.talendforge.org/browse/TDI-22465 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93103 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-01 01:12:03 +00:00
bchen
b54eeb5ba6 Fix Bug TDI-13950 : Error with temporary TIS filed and link names
https://jira.talendforge.org/browse/TDI-13950
change the name of variables for store temp data function.
merge r93059 into branch 5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93080 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-31 10:21:41 +00:00
wchen
e22c724a2f merge r93012 from trunk to branch 5.1
bug TDI-23383  fixed : Merge reference project can not work


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93016 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-30 10:22:55 +00:00
jjzhou
8aea433dd0 fix WorkItem TDI-23452: add DB_TYPE for tAmazonIn/Out component
https://jira.talendforge.org/browse/TDI-23452

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93007 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-30 09:31:14 +00:00
plv
016b2cc439 merge r92981 from trunk to branch 5.1
bug TDI-23252:Joblet ui problem


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@93005 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-30 09:28:17 +00:00
bchen
6465da652c Fix Bug TDI-22640 : Problem with combination of tWebservice and tXSLT
https://jira.talendforge.org/browse/TDI-22640
as tXSLT component use saxon as JAXP factory, but it can't work with tWebservice component, so set the default JAXP factory for tWebservice
merge r92952 into branch 5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92954 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 10:00:29 +00:00
wchen
353a23b532 merge r92947 from trunk to branch 5.1
bug  TDI-23218 fixed: Unable to associate a fixed value with an XML element (duplicate to 0011723 which is NOT FIXED) 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92950 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 09:36:59 +00:00
zshen
c8e46e8d13 TDQ-5330 TDQ-6341 revert code for EMFComponent
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92949 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 07:44:22 +00:00
fwang
21a3504bd7 bug TDI-21740 fixed:Unable to use "tFileOuputMSXML" with "tUnite"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92938 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 06:59:06 +00:00
nrousseau
0c0dda947a merge r92932 from trunk to branch 5.1
TDI-23475: avoid dialog to appear in commandline mode.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92935 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 06:34:45 +00:00
wwang
a6aa616f4e Fix Bug TDI-22965 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-22965

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92929 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 05:04:08 +00:00
zshen
e1d75e1950 TDQ-5330 TDQ-6341 fix a compile Error for import MetadataToolHelper
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92926 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 04:14:59 +00:00
zshen
3e370230fa TDQ-5330 TDQ-6341 backport on branch5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92924 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 04:10:06 +00:00
hwang
8400d6b37d TDI-23027:Don't make dirty joblet read-only when expanded in job
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92907 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 02:10:28 +00:00
jyhu
998d877647 Fix Bug TDI-23312 : tCreateTable throw error with drop table if exists and create when using SQLite database
https://jira.talendforge.org/browse/TDI-23312

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92867 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-26 09:30:45 +00:00
jjzhou
443e300c45 fix WorkItem TDI-23452:Resolve the same problem in TDI-23103 for tAmazonOracleInput/Output
https://jira.talendforge.org/browse/TDI-23452

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92840 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-26 05:56:18 +00:00
hwang
fcd37034e5 merge r92764 from trunk to branch 5.1
TDI-23027:Don't make dirty joblet read-only when expanded in job 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92790 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 10:15:10 +00:00
jzhao
ab80328389 Fixed Bug TDI-23411: NodeUtil.getPrivateConnClassName(final IConnection conn) return value is not correct
https://jira.talendforge.org/browse/TDI-23411
Note:
Another problem about tExtractEBCDICFields special circumstances lead code generate error.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92755 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 06:12:22 +00:00
jyhu
183bda3110 Fix Bug TDI-22793 : tMSSQLInput of small numbers
https://jira.talendforge.org/browse/TDI-22793

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92743 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 03:32:22 +00:00
fwang
5c57e865b7 bug TDI-23257 fixed:When drag&drop more a context or a metadata with a context linked, it should ask to copy all context group.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92737 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 03:02:50 +00:00
hwang
d9717e2136 merge r92702 from trunk to branch 5.1
TDI-23413: fix update schema


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92728 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 01:53:59 +00:00
hwang
9de358a440 merge r92703 from trunk to branch 5.1
TDI-23413: fix rename table name


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92725 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 01:29:39 +00:00
hwang
f765eca5df merge r92697 from trunk to branch 5.1
TDI-23190:Job and Joblet still can be edit in read mode


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92714 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 13:45:45 +00:00
hwang
63a85e6eb1 merge r92699 from trunk to branch 5.1
TDI-20219:The data should be not transfered to the joblet in a job


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92712 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 13:32:43 +00:00
jzhao
e0535556ee Fixed Bug TDI-23411: NodeUtil.getPrivateConnClassName(final IConnection conn) return value is not correct
https://jira.talendforge.org/browse/TDI-23411
Note:
Another problem about tExtractEBCDICFields special circumstances lead code generate error.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92691 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 11:10:56 +00:00
jjzhou
c5ee553fac fix WorkItem TDI-23381:Update tMDMBulkload library
https://jira.talendforge.org/browse/TDI-23381

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92678 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 09:44:27 +00:00
wwang
995b1e30b9 Fix Bug TDI-22915 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-22915 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92633 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 01:49:34 +00:00
jzhao
95d8a8529a Fixed Bug TDI-23278: There are conflict between the final result and the checkbox (Get rid of duplicate row from output) when use tNomalize component
https://jira.talendforge.org/browse/TDI-23278
Note:
Modify to reuse existing code 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92560 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 07:47:09 +00:00
ycbai
24d3f447c6 bug TDI-23368 fixed : Error when try export to spagic
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92538 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 06:01:42 +00:00
jzhao
569f80f78e Fixed Bug TDI-23278: There are conflict between the final result and the checkbox (Get rid of duplicate row from output) when use tNomalize component
https://jira.talendforge.org/browse/TDI-23278

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92533 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 05:29:24 +00:00
rdubois
b39249f80f merge r92411 from trunk to branch 5.1
TDI-23320 fixed: correctly throw the exception for the tMDMOutput, tWriteXMLField, tBRMS and tWriteJSONField components.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92509 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 11:58:26 +00:00
bchen
13dd24d407 Fix Bug TDI-22867 : Job doesn't end with OutOfMemoryError? when 'Multithread execution' is checked
https://jira.talendforge.org/browse/TDI-22867 
merge r92478 into branch 5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92506 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 11:51:44 +00:00
plv
a0ff899500 merge r92488 from trunk to branch 5.1
bug TDI-23335:tHL7Output component could not modify the node name


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92490 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 09:40:24 +00:00
jzhao
13a42e93fc Fix Bug TDI-21714: When use "drop table if exists and create /create table if not exists" ,
will get create table error even table not exsists .(DB2,Postgres components).
http://jira.talendforge.org/browse/TDI-21714

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92479 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 08:19:00 +00:00
fwang
cbd88abcde bug TDI-23330 fixed:Exception throw up when import version 4.2.3 or 5.1.2 items to 5.2.0 if the items contain generated documentation
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92470 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 07:42:21 +00:00
zwzhao
bea62d9074 bug TDI-22975 fixed : Cancelling Expression Builder
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92468 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 07:38:02 +00:00
wliu
897f5ed206 Fix Bug TDI-22892 : If lookup in parallel fails, job continues
https://jira.talendforge.org/browse/TDI-22892

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92432 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 01:57:04 +00:00
wliu
90efeafff2 Fix workitem TDI-23342 : remove both declaration of partnerBulk.jar and sqljdbc.jar
https://jira.talendforge.org/browse/TDI-23342

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92383 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 10:23:48 +00:00
jyhu
1113f0a38e Fix Bug TDI-23339 : When installing Talend V5.1.2 I got a virus message (JAVA/Agent.FB)
https://jira.talendforge.org/browse/TDI-23339 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92375 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 10:06:19 +00:00
fwang
54e30f8fd7 bug TDI-23012 fixed:Missing error message when deleting links with expanded joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92348 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 07:25:20 +00:00
fwang
5ff7880bc5 bug TDI-22734 fixed:Joblet icon:Revert not worked for it
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92344 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 07:07:27 +00:00
wwang
87df07d530 Fix Bug TDI-23238 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-23238 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92330 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 04:10:42 +00:00
jjzhou
8e65a369ab fix Bug TDI-23209: The hint tags are wrong for all tSQLTemplate components
https://jira.talendforge.org/browse/TDI-23209 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92313 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 02:51:34 +00:00
wwang
836919e4f5 Fix Bug TDI-23284 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-23284

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92308 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 01:53:36 +00:00
plv
6f32d286a6 bug TDI-22953:Update detection:Copybook :Duplicated items detected
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92277 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 09:05:15 +00:00
jjzhou
b4596e8645 Fix workitem TDI-23262 : replace SHOW_IF="false" with SHOW="false" in the element:PARAMETER of the components
https://jira.talendforge.org/browse/TDI-23262

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92253 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 07:45:14 +00:00
wwang
080b4f89a2 Fix Bug TDI-23149 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-23149

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92236 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 06:27:35 +00:00
wchen
8a7cc0f7ad merge r92232 from trunk to branch 5.1
bug  TDI-23275 fixed: BD build:Project setting->Palette Setting->Transfer components under "Technical" folder from Hide part to Show part, get error message


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92233 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 05:51:45 +00:00
nrousseau
1f648bc469 merge r92226 from trunk to branch 5.1
TDI-23162 modified: update to allow SHOW_IF="false" and SHOW_IF="true" in the components


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92227 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 04:26:42 +00:00
zwzhao
efd202bbd0 bug TDI-23269 fixed: fix preview of file wizards
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92188 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-16 09:06:50 +00:00
jzhao
1bdd0afc1b Fixed Bug TDI-22933: The code of method tFixedFlowInput_1Process(Map<String,Object>) is exceeding the 65535 bytes limit
https://jira.talendforge.org/browse/TDI-22933
Note : modify tExtractEBCDIC/tFileOutputDelimited

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92184 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-16 07:50:51 +00:00
jjzhou
4f8f201dc5 Fix workitem TDI-23262 : replace SHOW_IF="false" with SHOW="false" in the element:PARAMETER of the components
https://jira.talendforge.org/browse/TDI-23262

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92181 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-16 07:22:16 +00:00
hcyi
4e516eea74 bug TDI-23079 fixed : Generation pops up error , still get NPE when hide all components and restart the studio .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92174 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-16 03:11:34 +00:00
bchen
6ce04dd0d4 Fix Bug TDI-21609 : Unexpected result when tOracleInput load data with time zone
https://jira.talendforge.org/browse/TDI-21609 
merge r92160 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92172 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-16 02:28:06 +00:00
jyhu
9970137588 Fix Bug TDI-23249 : remove the unnecessary code in tExaInput/Output/Row
https://jira.talendforge.org/browse/TDI-23249 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92118 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 08:28:05 +00:00
wliu
11ff92d4e0 fix workitem TDI-22767: add a new checkbox:"trim result value" for tNormalize
https://jira.talendforge.org/browse/TDI-22767

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92097 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 04:20:17 +00:00
hwang
8c8d3e30f9 merge r92089 from trunk to branch 5.1
TDI-20515:when you edit the configuration of tWebService component, the new column will cover the old column for Output mapping


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92091 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 03:46:24 +00:00
wliu
ac57d12d38 Fix workitem TDI-23248 : replace SHOW_IF="false" with SHOW="false" in tFileInputDelimited
https://jira.talendforge.org/browse/TDI-23248

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92087 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 02:44:20 +00:00
plv
94a391caa9 merge r92073 from trunk to branch 5.1
bug TDI-23106:improvement in mapping view of tFileInputXML


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92074 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-12 10:27:26 +00:00
jyhu
498475ecbb Fix Bug TDI-23222 : Compile error when set a uppercase conext on tCreateTable
https://jira.talendforge.org/browse/TDI-23222 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@92008 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-12 02:36:33 +00:00
rdubois
808b62640b merge r91981 from trunk to branch 5.1
TDI-23209: The hint tags are wrong for all tSQLTemplate components 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91982 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 12:48:53 +00:00
jyhu
8de08b6eb0 Fix Bug TDI-22374 : Refactor the tCreateTable UI
https://jira.talendforge.org/browse/TDI-22374 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91951 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 07:37:23 +00:00
hcyi
9488c99536 merge r91941 from trunk to branch 5.1
bug TDI-23079 fixed : Generation pops up error .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91945 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 06:43:14 +00:00
jjzhou
052847f9fd fix Bug TDI-22646:ELTOutput component "Action on data" has no "UPDATEORINSERT" and "INSERTORUPDATE" ,but in javajet code there has ,It should be remove .
https://jira.talendforge.org/browse/TDI-22646

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91936 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 06:02:27 +00:00
fwang
6c51f3a079 bug TDI-22981 fixed:Ctrl+C no longer works at all for flow or if names
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91927 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 03:48:43 +00:00
plv
a3a1f65f62 merge r91918 from trunk to branch 5.1
bug TDI-20732:tRowGenerate isses when using getRandomDate in conjunction with context variables


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91922 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 03:17:35 +00:00
wliu
fcc85474a5 Fix Bug TDI-23103: import the xmlparserv2.jar and xdb.jar in tOracleInput/Output components when needed
https://jira.talendforge.org/browse/TDI-23103

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91868 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 08:44:49 +00:00
plv
888834c352 merge r91850 from trunk to branch 5.1
bug TDI-22296:tMap_duplicate error message display when there is no output schema for tMap component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91853 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 07:20:46 +00:00
nrousseau
2188bc23d4 merge r91835 from trunk to branch 5.1
TDI-23162 fixed: add the possibility to set new kind of expression


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91840 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 06:50:51 +00:00
fwang
7090e7a557 bug TDI-22981 fixed:Ctrl+C no longer works at all for flow or if names
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91812 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 02:06:43 +00:00
fwang
357faf492f bug TDI-22981 fixed:Ctrl+C no longer works at all for flow or if names
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91810 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 02:00:36 +00:00
hcyi
b3fd073769 merge r91778 from trunk to branch 5.1
bug TDI-23163 fixed : Need to review the REQUIRED_IF support in the wizards .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91780 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 10:05:00 +00:00
bchen
35e15b5200 Fix Work Item TDI-23035 : Problems after supporting Timestamp with Timezone type in the Oracle
https://jira.talendforge.org/browse/TDI-23035 
1. define "TIMESTAMP WITH TIME ZONE" type instead of "TIMESTAMP(6) WITH TIME ZONE" type, 0~9 permitted for length. 
2. modified TalendDate?.format method for timezone pattern. 
3. modified tCreateTable and tOracleOutput to create table with Timestamp with time zone type. 
merge r91750 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91779 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 10:02:03 +00:00
hwang
bca6636e17 merge r91774 from trunk to branch 5.1
TDI-23066:TIS 5.1.1 Cannot load Webservice metadata 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91777 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 09:56:30 +00:00
hwang
774e8eff12 merge r91769 from trunk to branch 5.1
TDI-23066:TIS 5.1.1 Cannot load Webservice metadata 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91771 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 09:39:45 +00:00
plv
a607712212 bug TDI-23106:improvement in mapping view of tFileInputXML
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91768 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 09:33:14 +00:00
hwang
a7bfc013e0 merge r91760 from trunk to branch 5.1
TDI-23070:when deactivate node,the outgoingconnection have been deactivated.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91763 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 09:19:44 +00:00
hwang
db4693b1d7 merge r91739 from trunk to branch 5.1
TDI-23066:TIS 5.1.1 Cannot load Webservice metadata 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91745 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 07:04:48 +00:00
jyhu
46d65e1e1d Fix Bug TDI-23170 : Unable to insert data with tVerticaOutput after TDI-21875 / TDI-22107
https://jira.talendforge.org/browse/TDI-23170 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91720 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 10:39:54 +00:00
bchen
2bcc2fb72e Fix Bug TDI-21779 : tOracleSCD type 2 does not work as expected with fields containing timestamps
https://jira.talendforge.org/browse/TDI-21779
merge r91717 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91718 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 10:18:34 +00:00
jyhu
5ecea19e20 Fix Bug TDI-22782 : remove the unnecessary return values from all these tELT*** components
https://jira.talendforge.org/browse/TDI-22782 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91709 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 08:38:20 +00:00
bchen
816eda9beb Fix Bug TDI-21779 : tOracleSCD type 2 does not work as expected with fields containing timestamps
https://jira.talendforge.org/browse/TDI-21779
merge r91697 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91700 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 07:26:31 +00:00
plv
088e071646 bug TDI-15128:Invalid OnSubjob links
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91688 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 05:38:59 +00:00
fwang
a4d5633354 bug TDI-22981 fixed:Ctrl+C no longer works at all for flow or if names
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91673 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 02:38:40 +00:00
rdubois
26e09318a6 merge r91598 from trunk to branch 5.1
TDI-23070: FIXME. Revert r91525 to fix some tujs.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91600 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-01 16:08:42 +00:00
jyhu
5446cbbbf0 Fix Bug TDI-22956 : Can't use a Greenplum connection in the SQLTemplate components
https://jira.talendforge.org/browse/TDI-22956

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91558 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-29 09:20:28 +00:00
hwang
77c4f4e952 merge r91524 from trunk to branch 5.1
TDI-16902 :Row links not activated 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91548 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-29 07:07:04 +00:00
hwang
16cadd9a3e merge r91525 from trunk to branch 5.1
TDI-23070 :when deactivate node,the outgoingconnection have been deactivated. 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91547 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-29 07:03:00 +00:00
wliu
13c4f5145f fix workitem TDI-22767: change the label from "Trim result values" to "Trim source String"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91502 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-28 09:02:39 +00:00
fwang
e24dd937f7 bug TDI-22937 fixed:Problem when use tPrejob and Stats&Logs at the same time
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91492 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-27 09:39:04 +00:00
jzhao
7c09077efa Fix Work Item TDI-22767 : the new checkbox:"Discard the trailing empty strings" should be invisible when "Use CSV parameters" is ticked for tNormalize
https://jira.talendforge.org/browse/TDI-22767
Note:
Add  checkbox "Trim" trim the input data 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91430 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 10:20:25 +00:00
wliu
e985e8e8b2 Fix Bug TDI-21609 : avoid nullpointerException for DB type: timestamp with time zone
https://jira.talendforge.org/browse/TDI-21609

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91412 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 09:54:18 +00:00
jyhu
c057c3ba67 Fix Bug TDI-22512 : tEXAOutput insert data error
https://jira.talendforge.org/browse/TDI-22512

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91405 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 09:33:42 +00:00
plv
c724267712 bug TDI-22729:no error or warning message shown when there is no output schema for tMap component
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91379 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 06:58:14 +00:00
wwang
6d623fcfaf Fix Bug TDI-22864 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-22864

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91370 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 04:33:17 +00:00
fwang
1d32de3f7c bug TDI-20755 fixed: Got the same column name in tRowGenerator component
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91319 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 10:10:34 +00:00
bchen
a820ffb522 Fix Bug TDI-21779 : tOracleSCD type 2 does not work as expected with fields containing timestamps
https://jira.talendforge.org/browse/TDI-21779
1.make TalendDate.parseDate method support to store timezone
2.make tOracleSCD component support "Timestamp With Time Zone" type
merge r91187 & r91295 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91300 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 09:36:44 +00:00
hcyi
f23d1e8c95 bug TDI-22816 fixed : Open ESBDEMOS project,use an existing account can't connect to talendforge .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91247 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 02:24:26 +00:00
plv
1f5eb6019e merge r91220 from trunk to branch 5.1
bug TDI-22900:when create onsubjobok/onsubjoberror connection from one subjob to another subjob, the 2 subjobs become one subjob


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91222 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-24 10:12:19 +00:00
jyhu
dc957e8c8c Fix Bug TDI-21748 : Display of String truncation option in tSchemaComplianceCheck for all these 3 modes::"check all columns from schema", "Custom defined", "Use another Schema for compliance check"
https://jira.talendforge.org/browse/TDI-21748

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91217 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-24 10:00:03 +00:00
bchen
1b6ecbef26 Fix Bug TDI-22898 : tSalesforceBulkExec issue with tSetProxy
https://jira.talendforge.org/browse/TDI-22898 
merge r91189 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91203 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-24 09:03:21 +00:00
plv
696beaf6c3 merge r91194 from trunk to branch 5.1
bug TDI-22900:when create onsubjobok/onsubjoberror connection from one subjob to another subjob, the 2 subjobs become one subjob


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91202 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-24 08:59:34 +00:00
plv
d3db048063 merge r91190 from trunk to branch 5.1
bug TDI-22899:the source and target of onsubjobok/onsubjoberror connection should be start node


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91197 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-24 08:53:29 +00:00
jyhu
a0f5547f7e Fix Bug TDI-22544 : tCreateTable:Change to different db connection, port canot changed to correspond db
https://jira.talendforge.org/browse/TDI-22544

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91178 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-24 02:25:14 +00:00
plv
aa6f9f9dbb merge r91115 from trunk to branch 5.1
bug TDI-22729:no error or warning message shown when there is no output schema for tMap component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91117 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-21 08:01:57 +00:00
plv
a4e6abc452 bug TDI-22600:error happened when Guess schema whith query on several rows in tMysqlInput
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91087 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-21 03:22:34 +00:00
plv
657acb63b3 bug TDI-22600:error happened when Guess schema whith query on several rows in tMysqlInput
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91084 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-21 03:11:13 +00:00
plv
c112e98d43 merge r91076 from trunk to branch 5.1
bug TDI-22600:error happened when Guess schema whith query on several rows in tMysqlInput


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91079 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-21 02:38:31 +00:00
hwang
fbcfdd7d19 merge r91045 from trunk to branch 5.1
TDI-22878:missing the name of refactor joblet in job after update joblet


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91046 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-20 09:14:06 +00:00
wchen
9ce1d18b0f bug TDI-22548 fixed:<Repository Mode>:"Edit parameter using repository" window cannot pop up when you want to change the parameter
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91042 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-20 06:44:01 +00:00
rdubois
60db33fe92 TDI-22879: Add commons-lang in the classpath for Apache 1.0
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@91006 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 11:39:41 +00:00
jyhu
22a6f6ee90 Fix Bug TDI-22820 : tIterateToFlow NPE
https://jira.talendforge.org/browse/TDI-22820 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90990 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 08:55:21 +00:00
jyhu
d0ae916e83 Fix Bug TDI-21748 : Display of String truncation option in tSchemaComplianceCheck for all these 3 modes::"check all columns from schema", "Custom defined", "Use another Schema for compliance check"
https://jira.talendforge.org/browse/TDI-21748

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90964 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 06:35:49 +00:00
plv
35f5dd0fe1 merge r90497 from trunk to branch 5.1
bug TDI-15128:Invalid OnSubjob links


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90949 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 03:30:19 +00:00
plv
bae95fb0ea merge r90345 from trunk to branch 5.1
bug TDI-18208:Restoring the default logo in Documentation settings should take effect immediately for the next HTML generation without the user having to restart the studio


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90948 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 03:23:13 +00:00
plv
2f50aa00c4 bug TDI-22382:Copy Book:rename schema which used in a job , error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90943 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 02:26:45 +00:00
fwang
0377d683e4 bug TDI-20755 fixed: Got the same column name in tRowGenerator component
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90942 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 01:54:43 +00:00
fwang
2306c1b230 bug TDI-20219 fixed:The data should be not transfered to the joblet in a job
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90941 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 01:51:11 +00:00
fwang
581bdd61ac bug TDI-20666 fixed:copybook_after run the job, the button is disabled
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90938 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 01:42:59 +00:00
fwang
4731887c4e bug TDI-8046 fixed:tMap in jobs opened as read-only
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90935 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 01:29:23 +00:00
mwang
abbfb669c2 For bug TDI-20702
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90902 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 08:30:16 +00:00
hcyi
a75c6bde56 merge r90366 from trunk to branch 5.1
bug TDI-20232 fixed : Documentation_if export a documentation, delete the documentation in studio, then you can not import it .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90869 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 06:16:45 +00:00
jjzhou
01c9df359d fix Bug TDI-22604: tPostgresqlOutputBulkExec: COPY escape must be a single one-byte character(make the code the same with trunk) https://jira.talendforge.org/browse/TDI-22604
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90868 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 06:09:21 +00:00
hcyi
64c065ea32 merge r90437 from branch 5.0 to branch 5.1
bug TDI-22688 fixed : Problem in elt component when create connection . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90867 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 06:08:54 +00:00
jjzhou
becd73b665 fix Bug TDI-22675:After using tFileCopy, the source file sometime remains open
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90850 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 04:01:06 +00:00
hwang
579da304f3 merge r90602 from trunk to branch 5.1
TDI-16902:Row links not activated


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90847 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 03:45:21 +00:00
hwang
85b4ed1969 merge r90690 from trunk to branch 5.1
TDI-21427 :tMap:Unexept var under var list 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90842 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 03:24:09 +00:00
hwang
2c2589a5b9 merge r90467 from trunk to branch 5.1
TDI-22153 :Deactivated components not moved when joblet expanded 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90840 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 03:15:08 +00:00
hwang
1baa358150 merge r89921 from trunk to branch 5.1
TDI-22153:Deactivated components not moved when joblet expanded


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90838 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 03:08:30 +00:00
bchen
9094673d5e Fix Bug TDI-21609 : Unexpected result when tOracleInput load data with time zone
https://jira.talendforge.org/browse/TDI-21609 
support oracle type "TIMESTAMP WITH TIME ZONE" 
merge r89107 & r90785 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90835 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 03:02:19 +00:00
jjzhou
507b423d51 fix Bug TDI-22604: tPostgresqlOutputBulkExec: COPY escape must be a single one-byte character
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90827 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 02:29:06 +00:00
jzhao
917c35a8bc Fix Work Item TDI-22767 : the new checkbox:"Discard the trailing empty strings" should be invisible when "Use CSV parameters" is ticked for tNormalize
https://jira.talendforge.org/browse/TDI-22767 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90825 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 02:25:26 +00:00
jjzhou
f553c2d51d fix Bug TDI-22420:remove the "Encoding" in tHiveConnection
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90823 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 02:23:52 +00:00
jjzhou
a7305dd33e fix Bug TDI-22800:when schema type is boolean ,tPostgresqlOutputBulkExec ,tPostgresqlOutputBulk make the out file is "1" or "o"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90821 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 02:16:44 +00:00
jyhu
0c142b54b8 Fix Bug TDI-22351 : Execption occured while genereting sample data using tRowGenerator into existing Teradata table.
http://jira.talendforge.org/browse/TDI-22351 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90817 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 01:45:07 +00:00
rdubois
db149b87a2 TDI-22790 fixed: Backport TDI-22503 in 5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90807 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 19:23:16 +00:00
rdubois
a8a691e249 merge r90804 from trunk to branch-5_1: Fix the tMysqlOutputBulk import issue.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90805 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 19:16:40 +00:00
rdubois
318b2e55cd TDI-22354 fixed: replace the poi-3.8-20120326.jar by poi-3.8-20120913_modified_talend.jar
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90673 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-13 11:11:13 +00:00
wliu
6952d67b63 Fix Bug TDI-21748 : revert the code to the previous version before the modification by jyhu
https://jira.talendforge.org/browse/TDI-21748

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90661 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-13 10:21:18 +00:00
rdubois
fe7d5fb1b2 TDI-22738 & TDI-22805 fixed
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90612 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-12 13:06:44 +00:00
ycbai
67b8734846 bug TDI-22766 fixed : Job cannot run again after update the rule which used in job
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90583 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-12 07:29:04 +00:00
rdubois
24d9dc57d9 TDI-22738 fixed: Upgrade from Hive 0.8.1 to 0.9
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90337 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 15:08:53 +00:00
rdubois
8973fe3d80 TDI-22738 fixed: Upgrade from Hive 0.8.1 to 0.9
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90336 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 15:07:16 +00:00
rdubois
3382845dea merge r84645 from trunk to branch 5.1
TDI-21332 fixed: set a hive property in the code to fix the UGI context issue


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90333 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 13:46:31 +00:00
jzhao
34780e383a Fix Bug TDI-22583: Unexpect result of tNormalize
https://jira.talendforge.org/browse/TDI-22583

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90329 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 11:21:45 +00:00
wwang
56ccdc3a1d fix Bug TDI-22354 : add the cid
https://jira.talendforge.org/browse/TDI-22354

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90328 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 10:23:53 +00:00
wwang
771b22c5ea fix Bug TDI-22354 : tFileInputExcel is not able to handle Date format "yyyy-MM-ddTHH:mm:ss" in Talend v5.1.1
https://jira.talendforge.org/browse/TDI-22354

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90326 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 10:13:46 +00:00
jjzhou
8c2c8378c7 fix Bug TDI-22555:tPostgresqlOutputBuk and tPostgresqlOutputBukExec don't handle TEXT_ENCLOSURE
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90317 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 07:25:25 +00:00
jzhao
0b16e773b0 Fix Bug TDI-22285 : Slowly Changing Dimensions (SCDs) & Source Keys that are NULL
https://jira.talendforge.org/browse/TDI-22285
Note: Remove unused code

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90314 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 06:27:17 +00:00
bchen
909ee24e6a Fix Bug TDI-22088 : tMap NPE using multiple lookup with the "All rows" option
https://jira.talendforge.org/browse/TDI-22088

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90311 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 03:44:10 +00:00
jzhao
d492dc9019 Fix Bug TDI-22285: Slowly Changing Dimensions (SCDs) & Source Keys that are NULL
https://jira.talendforge.org/browse/TDI-22285

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90310 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 02:58:38 +00:00
scorreia
3a6a2134c3 i18n: synchronize Babili strings exported on 2012-09-06-14-23-32
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90304 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 12:33:03 +00:00
wwang
2b9fa412a8 fix Bug TDI-22361 : Locked file throws NPE if using CSV options
https://jira.talendforge.org/browse/TDI-22361

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90292 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 09:24:26 +00:00
wwang
7f63c512a0 fix Bug TDI-22150 : tMysqlOutputBulk treats backslashes in data wrong
https://jira.talendforge.org/browse/TDI-22150

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90282 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 07:16:45 +00:00
wchen
1858912816 bug TDI-21950 fixed: Lots of columns crashes Studio
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90278 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 06:39:07 +00:00
hwang
d994a62da3 merge r90270 from trunk to branch 5.1
TDI-22709:Could not save job after export items


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90271 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 06:11:27 +00:00
cli
91d5f5dd10 USV-29: add the property for exchange.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90268 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 05:19:32 +00:00
nrousseau
6026d4693f merge r90266 from trunk to branch 5.1
USV-40 : Changed to make most of the actions more general and not only for jobs / joblets.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90267 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 04:33:45 +00:00
hwang
ca74b8305a merge r90264 from trunk to branch 5.1
TDI-22709:Could not save job after export items


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90265 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 03:46:18 +00:00
wwang
072ab2d624 fix Bug TDI-22503 : merge to branch5.1
https://jira.talendforge.org/browse/TDI-22503

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90262 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 03:03:12 +00:00
hcyi
60941241c1 bug TDI-20594 fixed : Everytime drag&drop File positional to a job, it will pop up a Confirm dialog .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90260 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 02:06:56 +00:00
sgandon
e63e207d0e merge r90257 from trunk to branch 5.1
Fix New Feature USV-32 : Remove context-menu for top level nodes 
https://jira.talendforge.org/browse/USV-32
updated all tis action provider so that they have an id.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90259 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-05 16:07:33 +00:00
ycbai
a8f6e80b77 bug TDI-22661 fixed : Undo the action which you did, NPE error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90225 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-05 09:46:38 +00:00
hcyi
162a04721e bug TDI-22665 fixed : the output link of tELTGreenPlumInput doesn't work anymore .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90199 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-05 03:37:50 +00:00
hcyi
96e72e81dd bug TDI-22671 fixed : Sandbox project creation allow to select "perl" in generation language .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90117 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 09:15:03 +00:00
hwang
f84b11f054 merge r90009 from trunk to branch 5.1
TDI-22620:Compare joblet_exception thrown when compare same name joblet between main and reference project or between trunk and branch project


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90094 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 08:47:55 +00:00
hcyi
cbcada0dd4 bug TDI-22649 fixed : When joblet changed,"Update Detection",there is an error .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90079 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 07:34:54 +00:00
fwang
e88d0bef06 bug TDI-21747 fixed:Business model:assignment:r-click the service in assignment list, many function lost
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90072 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 07:24:40 +00:00
ycbai
b9b33711c4 bug TDI-22661 fixed : Undo the action which you did, NPE error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90067 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 06:45:39 +00:00
ilazebny
a541b3867e Update version in poms to 5.1.2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90038 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 11:46:02 +00:00
ilazebny
f51ab4a86c Update version in poms to 5.1.2-SNAPSHOT
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90030 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 11:14:13 +00:00
plv
fb3bb857af bug TDI-22296:tMap_duplicate error message display when there is no output schema for tMap component
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@90025 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 10:11:39 +00:00
hcyi
bc66ed653b merge r89975 from trunk to branch 5.1
bug TDI-22550 fixed : Remain compile error in old job which has been delete . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89986 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 06:43:27 +00:00
jyhu
ba469d89aa Fix Bug TDI-22498 : error when executing sybase IQ store proc whith 4.2.3 +patch 17.07.20(revert to last version)
https://jira.talendforge.org/browse/TDI-22498 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89932 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-31 09:45:00 +00:00
jyhu
0c9b357307 Fix Bug TDI-22498 : error when executing sybase IQ store proc whith 4.2.3 +patch 17.07.20
https://jira.talendforge.org/browse/TDI-22498 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89912 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-31 06:11:44 +00:00
fwang
b8ad95763f bug TDI-22516 fixed:Can't save the order when I change the element order in tFileOutputMSXML
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89893 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-31 01:50:21 +00:00
jjzhou
c9d2c70b29 fix Bug TDI-22211:org.courtine can't be resolved
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89879 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 10:32:47 +00:00
wchen
b5be75e74d merge r88848 from trunk to branch 5.1
bug  TDI-21871 fixed : tXMLMap doesn't allow to set multiple nodes with the same name = unable to use xsi derived complex types


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89861 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 08:18:31 +00:00
nrousseau
f67dc9439c merge r89835 from trunk to branch 5.1
Fix Bug TDI-22608 : Create a job should not ask for logs 
https://jira.talendforge.org/browse/TDI-22608


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89838 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 05:45:05 +00:00
wchen
1340a5149f merge r89828 from trunk to branch 5.1
bug TDI-21950 fixed :Lots of columns crashes Studio


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89831 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 04:59:21 +00:00
jyhu
966e665563 Fix Bug TDI-22498 : error when executing sybase IQ store proc whith 4.2.3 +patch 17.07.20
https://jira.talendforge.org/browse/TDI-22498 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89821 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 03:20:29 +00:00
plv
d069fb6d48 bug TDI-20511:when compare jobs with tParallelize component, it will show difference even if the jobs are same
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89819 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 03:17:43 +00:00
nrousseau
d117428729 merge r89803 from trunk to branch 5.1
TDI-22602 : fix problem when no selection done when create another version


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89805 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-29 10:51:27 +00:00
hcyi
7d3cf48ee0 merge r89765 from trunk to branch 5.1
bug TDI-22550 fixed : Remain compile error in old job which has been delete .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89766 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-29 01:44:17 +00:00
jjzhou
37644bd3a7 fix Bug TDI-22281:Related to Bug http://www.talendforge.org/bugs/view.php?id=18916
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89744 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-28 05:26:05 +00:00
hcyi
61eb0a6e24 merge r89737 from trunk to branch 5.1
bug TDI-22098 fixed : Incorrect compilation error mark on job .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89738 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-28 03:33:01 +00:00
zwzhao
a7797b6a56 bug TDI-21814 fixed : the exported job file doesn't contain *.screenshot file
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89708 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-27 09:45:40 +00:00
fwang
44d4ff2836 bug TDI-22516 fixed:Can't save the order when I change the element order in tFileOutputMSXML
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89701 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-27 08:59:04 +00:00
hwang
6abe61d003 merge r89692 from trunk to branch 5.1
TDI-22350:For 503 file transfer from one svn to another, reopen the new project ,anaysis lose items.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89694 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-27 08:34:17 +00:00
jyhu
f3ba4b9e1f fix Bug TDI-21875 : When using the Vertica Output component with the copy method and the batch option turned on, the component always fails as soon as the second batch begins
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89687 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-27 07:50:31 +00:00
fwang
55d0c8cf7a bug TDI-22493 fixed:Business model:assignment:update the name of assignment items, switch to BM component, cannt detect the update
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89638 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-24 07:20:46 +00:00
wchen
5d6a9da6c1 merge r89621 from trunk to branch 5.1
bug   TDI-22335 fixed Deactivating subjob stops at already deactivated component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89628 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-24 05:58:28 +00:00
hwang
27e4d6887a merge r89626 from trunk to branch 5.1
TDI-22496:Error show in error log when move the components of the joblet in job


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89627 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-24 05:54:52 +00:00
jjzhou
8baae08e1a fix Bug TDI-22445:tMDMBulkLoad throws NPE when has empty input
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89600 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 10:25:17 +00:00
nrousseau
025ae75cfe TDI-22369: fix family for Data_Quality
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89575 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 08:21:33 +00:00
plv
96372ee9c8 bug TDI-20511:when compare jobs with tParallelize component, it will show difference even if the jobs are same
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89574 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 08:20:22 +00:00
hwang
adf63b4581 merge r89560 from trunk to branch 5.1
TDI-22079:Need to review the display of the background of joblets


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89564 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 07:10:03 +00:00
wchen
7d16e466ca bug TDI-22430 fixed: Duplicate the name of "Column"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89552 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 06:27:23 +00:00
nrousseau
0b0e47f90e merge r89545 from trunk to branch 5.1
bug TDI-22196: re-enable the import to specified folder.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89546 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 04:48:41 +00:00
zwzhao
3fa1b64557 bug TDI-6568 fixed : tSetGlovarVar and tFlowToIterate : the outline view doesnt refresh when a variable is added into those components
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89515 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 10:39:38 +00:00
hwang
4ff9121327 merge r89510 from trunk to branch 5.1
TDI-21879:Collapse joblets before saving job


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89511 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 10:11:12 +00:00
hwang
8b22997e89 merge r89488 from trunk to branch 5.1
TDI-22295:DI and ESB :Function menu mixed 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89494 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 07:16:45 +00:00
wchen
27f079de90 bug TDI-22383 TDI-22407 fixed : tRowGenerator function select and display problems
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89493 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 07:12:53 +00:00
nrousseau
dff41d0ca1 merge r89424 from trunk to branch 5.1
Fix Bug TDI-19255 : Opening old version of job and create new version opens latest version instead 
https://jira.talendforge.org/browse/TDI-19255


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89438 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 09:45:39 +00:00
ldong
3bf6c024a9 bug TDI-20584 fixed:backport this issue on 511.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89422 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 09:01:50 +00:00
zwzhao
dda51a6c4d bug TDI-22114 fixed : Error message should be displayed if the tns file is not valid
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89416 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 08:11:56 +00:00
hwang
ba700675dc TDI-21917:Expanding/collapsing non-linear joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89382 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 01:59:09 +00:00
hwang
ac24c606b2 TDI-21879:Collapse joblets before saving job
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89381 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 01:48:57 +00:00
wchen
92f0d904e0 merge r89350 from trunk to branch 5.1
bug  TDI-20155 fixed :Fail to use tRules in a job


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89351 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 06:51:58 +00:00
wchen
5580c4f746 merge r89319 from trunk to branch 5.1
bug   TDI-22335 fixed Deactivating subjob stops at already deactivated component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89321 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 02:02:44 +00:00
nrousseau
5dc9434446 merge r89308 from trunk to branch 5.1
Fix Bug TDI-22435 : preview file connection get error 
https://jira.talendforge.org/browse/TDI-22435


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89309 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 00:58:49 +00:00
plv
d327510dbb bug TDI-22305:Function name of schema changed after import from xml file to tRowGenerator
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89281 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-17 07:53:09 +00:00
hcyi
8b1f10b6f0 bug TDI-22413 fixed : Running job fail after export a job which has compile error .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89277 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-17 05:59:31 +00:00
hwang
1d43d196fa TDI-21939:Make joblet in job red if locked or dirty
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89276 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-17 05:57:07 +00:00
wliu
79f959f6ba Fix Bug TDI-22318 : tHashInput/tHashOutput don't have its own resource
https://jira.talendforge.org/browse/TDI-22318

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89273 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-17 04:29:22 +00:00
wchen
671552768d merge r89241 from trunk to branch 5.1
bug TDI-8282 fixed: Connection properties should not be editable


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89243 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-16 10:19:03 +00:00
plv
6b3db7d520 bug TDI-22305:Function name of schema changed after import from xml file to tRowGenerator
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89233 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-16 08:29:01 +00:00
nrousseau
48d823e701 merge r89218 from trunk to branch 5.1
bug TDI-22250: fix problem of classpath, will reinitialize the classpath when needed, and avoid to rebuild the code if no change required.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89219 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-16 06:36:22 +00:00
jjzhou
4e331b6435 fix Bug TDI-22398:Can not create context with type "int | Integer" in talend studio during create route in Mediation perspective
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89204 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 10:45:33 +00:00
wliu
1c48f80336 fix Bug TDI-21875 : When using the Vertica Output component with the copy method and the batch option turned on, the component always fails as soon as the second batch begins
https://jira.talendforge.org/browse/TDI-21875

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89198 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 10:19:22 +00:00
plv
f9a2fec665 bug TDI-21402:Database connection in job will failed if use the connection in joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89185 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 09:13:34 +00:00
bchen
b307495787 Fix Bug TDI-22104 : SAP connection still use sapjco2.jar when sapjco3.jar configured in joblet that causes compile error
http://jira.talendforge.org/browse/TDI-22104
merge r89168 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89169 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 07:39:01 +00:00
nrousseau
fc18cd9826 merge r89159 from trunk to branch 5.1
bug TDI-22340: if value was null, there was no error message.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89162 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 06:53:40 +00:00
wchen
bfa79a2c7d merge r89154 from trunk to branch 5.1
bug TDI-22389 fixed:Get wrong export file when export job to type 'Petals ESB' with a new name


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89156 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 06:44:34 +00:00
fwang
3fe6b7072f bug TDI-22379 fixed:Version management:Business model:Assign a job to BM,can not detect the dependencies
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89150 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 06:26:14 +00:00
zwzhao
3fc8772d98 bug TDI-22198 fixed : Read-only job:Change Property Type:Job turn to dirty
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89137 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 02:22:51 +00:00
wliu
4b4fe8254c fix Bug TDI-21875 : When using the Vertica Output component with the copy method and the batch option turned on, the component always fails as soon as the second batch begins
https://jira.talendforge.org/browse/TDI-21875

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89134 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 02:13:59 +00:00
rdubois
4a274ce551 merge r89118 from trunk to branch 5.1
TDI-22368 fixed: Get the correct metadata table in the tUnite


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89122 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 12:07:41 +00:00
wliu
67e7c1e360 fix Bug TDI-21875 : When using the Vertica Output component with the copy method and the batch option turned on, the component always fails as soon as the second batch begins
https://jira.talendforge.org/browse/TDI-21875

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89120 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 11:52:12 +00:00
jjzhou
11c0b50642 fix Bug TDI-22283:revert code to last vestion.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89101 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 09:16:32 +00:00
hcyi
dc7f98170f bug TDI-22087 fixed : in txmlmap editor main connector had setting and expression icon ,but when click it,it no use .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89099 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 08:54:09 +00:00
jjzhou
c2e19faf31 fix Bug TDI-22367:investigate to replace "slf4j-api-1.5.8.jar" with "slf4j-api-1.6.1.jar" with Bonita 5.6.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89093 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 08:00:38 +00:00
nrousseau
14fa9b9ab4 merge r89082 from trunk to branch 5.1
bug TDI-22372: fix problem with previous commit


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89088 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 07:21:08 +00:00
mzhao
20ade70c18 merge r89069 from trunk to branch 5.1
TDQ-4275 Reoganize TDQ component family.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89081 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 06:33:14 +00:00
nrousseau
8f47ca06bf merge r89064 from trunk to branch 5.1
bug TDI-22262: fix problem of display of error mark


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89066 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 04:10:20 +00:00
nrousseau
89af574ae3 merge r89059 from trunk to branch 5.1
bug TDI-22369: fix wrong family name


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89060 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 03:11:03 +00:00
nrousseau
04868f33dd merge r89055 from trunk to branch 5.1
bug TDI-22372: avoid any warning if the module name is not with any extension.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89056 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 02:04:35 +00:00
plv
476a47f6d7 bug TDI-21402:Database connection in job will failed if use the connection in joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@89021 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-13 09:17:38 +00:00
wchen
12d5738edb merge r88996 from trunk to branch 5.1
bug TDI-8282 fixed: Connection properties should not be editable


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88998 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-13 08:08:21 +00:00
jjzhou
b37dcdad6d fix Bug TDI-22283:Path having backslash not handled, escaping not handled
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88989 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-13 05:35:49 +00:00
fwang
791bb97f68 bug TDI-21904 fixed:Context: Add to repository context doesn't show existing context group
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88974 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-13 02:01:31 +00:00
plv
837e018058 bug TDI-8512 fixed:Job description does not word wrap in Job tab
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88952 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-10 09:18:52 +00:00
rdubois
5477fb511b merge r88939 from trunk to branch 5.1
Add a missing message in the tSystem properies


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88940 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-10 09:02:42 +00:00
fwang
a1676262b1 bug TDI-22292 fixed:D-click the blank area of a component, NPE error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88918 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-10 05:58:50 +00:00
wchen
1e97bfebd7 merge r88909 from trunk to branch 5.1
bug  TDI-20705 fixed :Filter link in txmlmap is not correct 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88910 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-10 03:35:56 +00:00
fwang
6cdca170c1 bug TDI-22052 fixed:Wrong confirmation after import as local
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88895 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-10 01:23:31 +00:00
hwang
ce7ea8f587 TDI-21917:Expanding/collapsing non-linear joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88869 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-09 08:52:37 +00:00
hcyi
998a94ef86 merge r88865 from trunk to branch 5.1
bug TDI-22179 fixed : Apply button do not work in tMap for many cases .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88866 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-09 08:24:43 +00:00
jjzhou
57133af940 fix Bug TDI-15344: Duplicate and unnecessary code generated by tReplace
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88840 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-09 03:31:51 +00:00
fwang
346699c965 bug TDI-21904 fixed:Context: Add to repository context doesn't show existing context group
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88833 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-09 03:19:56 +00:00
jjzhou
179bc4ca41 fix Bug TDI-15344: Duplicate and unnecessary code generated by tReplace
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88805 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-08 09:10:48 +00:00
hwang
51a7845fe4 TDI-21940:Do not allow joblet to be edited in job if joblet is dirty
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88796 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-08 07:41:06 +00:00
hwang
c2c9f9c0c1 TDI-22001:Exanded joblets not read-only
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88793 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-08 07:24:31 +00:00
wwang
ba32f5ba0f fix Bug TDI-22266: merge to branch5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88787 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-08 06:31:27 +00:00
jjzhou
c9e6815ea0 fix Bug TDI-15344: Duplicate and unnecessary code generated by tReplace
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88783 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-08 05:50:35 +00:00
zwzhao
481ee969fc bug TDI-19103 fixed : When importing job and canceling in the middle the created workspace dir is not deleted.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88780 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-08 05:42:29 +00:00
hcyi
62ff41ca2c merge r88770 from trunk to branch 5.1
bug TDI-22146 fixed : Warning/error icon popups still empty .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88772 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-08 04:02:34 +00:00
ldong
5db0dddacf bug TDI-22055 fixed:Copybook wizard - rename schema doesn't refresh to job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88751 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 09:45:40 +00:00
plv
f406122851 bug TDI-6754 fixed:Moving of flow names not undone properly
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88744 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 09:23:36 +00:00
zwzhao
d70fddc07d bug TDI-22256 fixed : Switch from designer->code->jobscript, name of component disappear
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88735 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 09:07:38 +00:00
fwang
1bd12dde38 bug TDI-22052 fixed:Wrong confirmation after import as local
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88732 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 08:53:06 +00:00
hwang
9390a6f16e TDI-22216:joblet nodeFigure hide CollapseFigure
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88730 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 08:04:58 +00:00
jjzhou
c3e59b7662 fix Bug TDI-22156: Job does not compile with backslash in tFilterRow conditions
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88716 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 06:15:34 +00:00
wchen
0dc20c334f merge r88701 from trunk to branch 5.1
bug TDI-20155 fixed:Fail to use tRules in a job


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88709 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 05:52:07 +00:00
zwzhao
a41fbfbe58 bug TDI-6977 fixed : progress bar is full when import is not finished during import of project from login dialog box
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88670 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-06 09:17:44 +00:00
fwang
d141c1f29c bug TDI-8476 fixed:Dynamic settings view displays in Camel components
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88666 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-06 08:51:52 +00:00
plv
54e632c861 bug TDI-21402:Database connection in job will failed if use the connection in joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88663 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-06 08:49:33 +00:00
zwzhao
af7043807b bug TDI-21154 fixed : Export Job:Export job with folder , drop down list of "Context scripts" is empty
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88657 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-06 07:51:43 +00:00
bchen
8ef5277bfb Fix Bug TDI-22104 : SAP connection still use sapjco2.jar when sapjco3.jar configured in joblet that causes compile error
http://jira.talendforge.org/browse/TDI-22104
merge r88632 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88639 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-06 05:41:01 +00:00
zwzhao
a76cb33d21 bug TDI-22198 fixed : Read-only job:Change Property Type:Job turn to dirty
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88637 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-06 05:38:54 +00:00
fwang
04a2084555 bug TDI-20206 fixed:Can't copy all the components and the links when expand the joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88635 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-06 05:20:16 +00:00
sgandon
b277e6dd13 merge r88554 from trunk to branch 5.1
Repo View Action items now have the Id set in the extension points.
This help remove them if necessary.
Example use for repo has been updated.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88616 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-03 14:58:18 +00:00
wchen
9aa7d8d28f merge r88596 from trunk to branch 5.1
bug  TDI-8507 fixed: Setting element status via project settings -> status management does not affect filters


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88597 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-03 09:42:32 +00:00
hwang
629f23b5ef TDI-22216:joblet nodeFigure hide CollapseFigure
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88591 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-03 09:12:12 +00:00
wliu
cc5c5bbd22 Fix Bug TDI-19575 : Problems related with escape character in the component tMysqlOutputBulkExec
http://jira.talendforge.org/browse/TDI-19575

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88562 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-03 02:29:44 +00:00
plv
956cb457be bug TDI-8512 fixed:Job description does not word wrap in Job tab
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88538 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 10:05:22 +00:00
zwzhao
cbf14e35a0 bug TDI-7993 fixed : "Modification" label not fully displayed on Job tab
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88531 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 09:52:50 +00:00
zwzhao
2f7d35f24c bug TDI-5510 fixed : Missing translations
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88518 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 09:15:41 +00:00
plv
0731a48ecb bug TDI-21880 fixed:Auto Generated doc of job/joblet:if import a new job/joblet, this function not work
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88515 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 09:06:15 +00:00
zwzhao
a57259815e bug TDI-7161 fixed : Variable in component view not update after update the corresponding metedata
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88498 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 07:45:50 +00:00
fwang
2d32eef25f bug TDI-8443 fixed:Can not create techincal status with more than three letters..
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88476 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 03:06:19 +00:00
plv
3f534c2ece bug TDI-21880 fixed:Auto Generated doc of job/joblet:if import a new job/joblet, this function not work
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88472 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 02:20:41 +00:00
zwzhao
4eda2aef8e bug TDI-7993 fixed : "Modification" label not fully displayed on Job tab
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88469 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 02:09:53 +00:00
wchen
c6d4fdb890 merge r88436 from trunk to branch 5.1
bug  TDI-8338 fixed: Changing lookup globalMap Keys does not dirty tMap


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88439 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 10:09:01 +00:00
plv
6b254e23ad bug TDI-21880 fixed:Auto Generated doc of job/joblet:if import a new job/joblet, this function not work
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88437 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 10:05:42 +00:00
fwang
13b418de87 bug TDI-8601 fixed:Clear button does not delete job execution information
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88433 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 09:54:29 +00:00
jzhao
fba08078fe Fix Backlog Task TDI-22173: tOleDbRow with reject but can't catch reject.
http://jira.talendforge.org/browse/TDI-22173

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88415 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 07:59:37 +00:00
fwang
7f9b93f650 bug TDI-18078 fixed:The action "Manage Dependencies"/"Detecte Dependencies" shouldn't display on Job, SQL template, Business Model, Routines, etc.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88410 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 07:42:55 +00:00
zwzhao
86729d7ea6 bug TDI-22115 fixed : if want to a guess schema and some jars are missing, a dialog should tell the user directly
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88405 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 07:33:25 +00:00
jzhao
27169ab3e3 Fix Bug TDI-21822: Catch rejects from tJDBCRow without inputRow
http://jira.talendforge.org/browse/TDI-21822

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88397 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 06:29:28 +00:00
jjzhou
de6f004ab7 fix Bug TDI-21775: bug by naming a column "commonByteArray" in schemas
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88379 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 01:52:19 +00:00
jzhao
cdfda37cc4 TDI-21809: tFileInputXML doesn't handle UNC path correctly
http://jira.talendforge.org/browse/TDI-21809

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88360 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-31 10:35:57 +00:00
ycbai
55896a35bc bug TDI-22125 fixed : Unable to edit routine dependencies : NPE in error log
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88352 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-31 09:21:52 +00:00
zwzhao
1aeda8fd97 bug TDI-22114 fixed : Error message should be displayed if the tns file is not valid
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88334 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-31 06:56:58 +00:00
mwang
477ce66633 For bug TDI-21898
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88327 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-31 06:29:10 +00:00
zwzhao
69b410a73c bug TDI-22121 fixed : need backport on 5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88320 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-31 03:16:54 +00:00
jyhu
b46fffad4b fix bug TDI-21946 : Unable to get RecordSet of MySQL database with tDBSQLRow
http://jira.talendforge.org/browse/TDI-21946 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88293 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 10:46:03 +00:00
hwang
a1a0b8c53c TDI-22058:Could not get the parameter value when we add an new row on the table for the first time
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88289 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 10:18:02 +00:00
fwang
84e8d16f61 bug TDI-8265 fixed:Unable to view test schema in read-only mode
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88267 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 09:12:33 +00:00
wwang
131a060979 fix Bug TDI-21876: merge to branch5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88261 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 08:58:10 +00:00
plv
d49fc79aff bug TDI-21880 fixed:Auto Generated doc of job/joblet:if import a new job/joblet, this function not work
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88259 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 08:54:32 +00:00
wchen
93c45f90fc merge r88237 from trunk to branch 5.1
bug     TDI-8325 fixed:Disable right-click options


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88242 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 07:39:05 +00:00
jzhao
a8f0e499d2 Fix Bug TDI-22059:The code of method tFileInputEBCDIC_1Process(Map<String,Object>) is exceeding the 65535 bytes limit
http://jira.talendforge.org/browse/TDI-22059

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88231 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 06:11:50 +00:00
ycbai
a9b59e25bf bug TDQ-5900 fixed : When Get Patterns ETL job ,the job can't run after right click the menu "Run job"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88227 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 03:42:56 +00:00
jyhu
824ee2144d fix bug TDI-21730 : Ingers data bulk loading, concurrency issue. (Component:tIngresOutputBulkExec)
http://jira.talendforge.org/browse/TDI-21730 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88164 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-27 05:54:51 +00:00
hwang
ef1a9bc0c9 TDI-21808 :Could not save as a new version of joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88154 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-27 03:24:08 +00:00
hwang
71fc8e661b TDI-22079:Need to review the display of the background of joblets
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88103 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-26 04:15:45 +00:00
plv
0527978183 TDI-22086:Import item into tis V5.2NB-88009,but I can't find the job in the workspace
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88089 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-26 01:42:09 +00:00
fwang
ecb6131c67 bug TDI-22040 fixed:Check box table column in read-only mode can still be edited
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88056 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-25 07:07:45 +00:00
rdubois
b790f27629 Update dome hadoop components documentation
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88052 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-25 06:25:51 +00:00
fwang
ac46e57615 bug TDI-21604 fixed:tAggregareRow_the layout is not good of set Column Default Value.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88027 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-25 02:35:24 +00:00
fwang
1e52d915a6 bug TDI-21027 fixed:Component Creation: Missing a scrollbar in the creation Wizzard
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@88018 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-25 01:53:01 +00:00
mwang
d0be52e8f3 For bug TDI-21244.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87991 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-24 10:01:31 +00:00
plv
dcdc6f9de1 bug TDI-21880 fixed:Auto Generated doc of job/joblet:if import a new job/joblet, this function not work
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87969 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-24 08:03:44 +00:00
jyhu
ae58ffb1db fix bug TDI-21975 : tCombinedSQLAggregate - Input/Output Column in Group By
http://jira.talendforge.org/browse/TDI-21975 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87960 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-24 06:27:28 +00:00
fwang
3c9597ef56 bug TDI-21027 fixed:Component Creation: Missing a scrollbar in the creation Wizzard
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87927 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 10:00:49 +00:00
fwang
4fbd95a69e bug TDI-21835 fixed:Prompt to lock subjob in a reference project after opening in read only
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87919 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 08:54:50 +00:00
zwzhao
a667abd7d3 bug TDI-21701 fixed : Unable to use repository XML schema populated from customer WSDL. Error "Import from repository fail, please check your repository connection" returned.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87916 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 08:51:30 +00:00
jjzhou
124ccf6d08 fix Bug TDI-21877: NullPointerException when selecting NTEXT fields from MSSql database connection
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87901 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 07:39:58 +00:00
nrousseau
cb8e9dc1c5 merge r87821 from trunk to branch 5.1
[TDI-21993] Fixed: [cMessagingEndpoint]The code can not be generated when using amqp Camel component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87847 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-20 10:38:33 +00:00
jyhu
a7d84f6631 fix bug TDI-21875 : When using the Vertica Output component with the copy method and the batch option turned on, the component always fails as soon as the second batch begins
http://jira.talendforge.org/browse/TDI-21875 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87829 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-20 06:58:53 +00:00
jzhao
9c2cc27fed Fix Bug TDI-21606:Method exceeding 65535 bytes limit while using tFileInputDelimited and tFileOutputMSXML
http://jira.talendforge.org/browse/TDI-21606

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87812 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-20 03:44:08 +00:00
jjzhou
de68301f94 fix Bug TDI-21765: EBCDIC component ecoding for Cp1141
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87786 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 10:23:17 +00:00
jzhao
f6265f728c Fix Bug TDI-21606:Method exceeding 65535 bytes limit while using tFileInputDelimited and tFileOutputMSXML
http://jira.talendforge.org/browse/TDI-21606

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87779 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 09:16:30 +00:00
plv
c05245c97d bug TDI-21926:When 'Generate Doc as HTML' the path is exist,it should give a dialog to show if overwrite it.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87775 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 08:46:41 +00:00
plv
c4ab265d5e bug TDI-21815:When 'Generate Doc as HTML' the path is not the present job path ,and dropdown list is empty .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87774 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 08:42:57 +00:00
plv
8d1fb2b5e9 bug TDI-21402:Database connection in job will failed if use the connection in joblet
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87768 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 08:24:30 +00:00
ldong
f487848efa bug TDI-21997 fixed:ESB SE Studio failed to started on version 87721.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87761 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 08:12:26 +00:00
rdubois
7dfd9eb5f2 merge r87719 from trunk to branch 5.1
TDI-21974 fixed: format hexadecimal md5 code


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87721 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 16:12:11 +00:00
rdubois
8bc6cb3514 merge r87713 from branch 5.0 to branch 5.1
TDI-21912: The detail of the error is interesting even if the job doesn't die.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87714 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 13:09:48 +00:00
rdubois
88bb955b12 merge r87710 from branch 5.0 to branch 5.1
TDI-21912: The detail of the error is interesting even if the job doesn't die.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87711 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 12:55:37 +00:00
jyhu
88bb63dbec fix bug TDI-21912 : The tTeradataOutput component doesn't detect errors
http://jira.talendforge.org/browse/TDI-21912 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87703 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 10:21:04 +00:00
jyhu
9451097465 fix bug TDI-21912 : The tTeradataOutput component doesn't detect errors
http://jira.talendforge.org/browse/TDI-21912 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87679 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 07:54:24 +00:00
ldong
85203d3488 bug TDI-12901 fixed:Increase size of project drop-down in login dialog.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87656 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 05:38:46 +00:00
wliu
33ca3cd4c6 Fix Bug TDI-21912 : The tTeradataOutput component doesn't detect errors
http://jira.talendforge.org/browse/TDI-21912

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87635 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 02:16:07 +00:00
mwang
b042706b78 For bug TDI-21918
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87575 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 06:08:13 +00:00
nrousseau
d5023ee2d0 merge r87363 from trunk to branch 5.1
Fix Backlog Task TDI-21869 : transfer value of PARALLELIZE_KEEP_EMPTY to tAsyncIn/Out components 
http://jira.talendforge.org/browse/TDI-21869


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87558 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 04:10:22 +00:00
wliu
425f8c74e3 fix Bug TDI-21571 : Exception handling
http://jira.talendforge.org/browse/TDI-21571

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87551 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 03:13:36 +00:00
bchen
eed50f4acc Fix Bug TDI-21708 : tDb2Output with parallel exceution enable cannot insert null value in db
http://jira.talendforge.org/browse/TDI-21708
modify migration task to set "PARALLELIZE_KEEP_EMPTY" with true for old job.
merge r87527 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87528 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 10:22:15 +00:00
jyhu
8070f0337c Fix Bug TDI-21816 : missing a not(!) for all the tELT***Output components.
http://jira.talendforge.org/browse/TDI-21816 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87488 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 06:17:24 +00:00
jyhu
be7cc36fe1 Fix Bug TDI-21782 : Null Pointer Exception with dynamic data type and empty table of Oracle component.
http://jira.talendforge.org/browse/TDI-21782 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87471 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 03:29:51 +00:00
fwang
091b43aa8c bug TDI-17359 fixed:tRowGenerator might remove some parenthesis
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87463 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 02:42:50 +00:00
mwang
b2be8f45e1 for bug TDI-21546
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87385 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 06:48:30 +00:00
fwang
67084b33f1 bug TDI-21027 fixed:Component Creation: Missing a scrollbar in the creation Wizzard
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87358 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 02:39:54 +00:00
bchen
431d2295f1 Fix Bug TDI-21708 : tDb2Output with parallel exceution enable cannot insert null value in db
http://jira.talendforge.org/browse/TDI-21708
add migration task to set "PARALLELIZE_KEEP_EMPTY" with true for old job.
merge r87305 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87322 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 09:55:09 +00:00
nrousseau
664cbda6f5 merge r87286 from trunk to branch 5.1
Bug TDI-20521 : enhance previous fix, fix in fact the point 1 of the bug TDI-8308


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87291 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 07:58:17 +00:00
jjzhou
946d99935b fix Bug TDI-21765: EBCDIC component ecoding for Cp1141
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87260 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 03:33:58 +00:00
hcyi
c3f231717c merge r87253 from trunk to branch 5.1
bug TDI-21601 fixed :  The wizard of tFileOutputMSXML can't display the columns of schema .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87256 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 03:17:56 +00:00
nrousseau
984496b2cd merge r87240 from trunk to branch 5.1
Fix Bug TDI-21776 : Wrong accents 
http://jira.talendforge.org/browse/TDI-21776


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87242 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 02:22:29 +00:00
fwang
23a374ee96 bug TDI-21719 fixed:Create routine from top menu, NPE error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87237 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 01:58:08 +00:00
jyhu
f7ca748efc Fix Bug TDI-21748 : Display of String truncation option in tSchemaComplianceCheck.
http://jira.talendforge.org/browse/TDI-21748

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87209 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 10:56:40 +00:00
ldong
6c28e8797d bug TDI-21733 fixed:Joblet:swith from designer to code tab, NPE error.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87195 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 09:13:45 +00:00
hcyi
e391ce6f04 merge r87178 from trunk to branch 5.1
bug TDI-21313 fixed : Job will be modified just when select a tFileOutputDelimited with CSV mode .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87181 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 08:30:57 +00:00
nrousseau
88e2fd5f88 merge r87149 from trunk to branch 5.1
bug TDI-20521: change the size of the NodeContainer, this avoids to have a too big invisible figure which hide the button from expand/collapse.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87150 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 06:18:37 +00:00
fwang
720a0a9166 bug TDI-20207 fixed:user should be not able to copy joblet to itself
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87093 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 07:02:25 +00:00
wwang
ebd07a17bf fix Bug TDI-7865: merge to branch5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87038 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 09:05:18 +00:00
nrousseau
2bc92157ec bug TDI-21754: simply force a reload of the item if this one is unloaded when export
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87027 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 08:05:29 +00:00
wwang
654a2165cf fix Bug TDI-21715: merge to branch5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@87010 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 05:26:01 +00:00
jyhu
9e830d4a4c Fix Bug TDI-21748 : Display of String truncation option in tSchemaComplianceCheck.
http://jira.talendforge.org/browse/TDI-21748

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86952 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-06 09:46:28 +00:00
wchen
2f506a8564 merge r86899 from trunk to branch 5.1
bug TDI-21668 fixed:Remove User Routine Dependency from Job not working 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86905 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-06 05:57:35 +00:00
wliu
016f4d3162 fix Bug TDI-21606:Method exceeding 65535 bytes limit while using tFileInputDelimited and tFileOutputMSXML
http://jira.talendforge.org/browse/TDI-21606

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86844 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 10:37:58 +00:00
zwzhao
438209d786 bug TDI-20110 fixed : Studio shreddered my Rest DataService and persistently prevents repairs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86836 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 09:51:35 +00:00
ycbai
06b65fa196 bug TDQ-4974 fixed : When Get Patterns ETL job ,the job can't run and the job run button can't be used
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86819 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 08:13:47 +00:00
wliu
0c1f4de4fd fix Bug TDI-21606:Method exceeding 65535 bytes limit while using tFileInputDelimited and tFileOutputMSXML
http://jira.talendforge.org/browse/TDI-21606

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86811 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 07:37:12 +00:00
fwang
7b8b4a4803 bug TDI-15281 fixed:Changes in expression builder lost when tMap closed
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86797 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 05:56:01 +00:00
wchen
5c40e48b57 merge r86775 from trunk to branch 5.1
bug TDI-21411 fixed:the modification in Jobscript panel not effect on the job


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86776 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 02:59:36 +00:00
wliu
09467cbda1 fix workitem TDI-21739 : remove the unnecessary code in tMDMReadConf
http://jira.talendforge.org/browse/TDI-21739

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86743 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 09:38:51 +00:00
wchen
11a1146f02 merge r86696 from trunk to branch 5.1
bug TDI-21623 fixed:Using CTRL+SPACE in tXMLMap expressions does not generate global variables list


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86701 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 03:21:56 +00:00
wchen
903b935a83 merge r86656 from trunk to branch 5.1
bug TDI-21623 fixed: Using CTRL+SPACE in tXMLMap expressions does not generate global variables list


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86700 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 03:16:42 +00:00
ldong
c990d6704a bug TDI-8394 fixed:Error when undo output links order change.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86694 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 02:35:06 +00:00
ycbai
6d80f9d129 bug TDI-21296 fixed: No error message when selecting all Jobs&Routes and exporting as OSGI bundles
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86578 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-02 08:17:42 +00:00
jyhu
7a544a1330 Fix Bug TDI-21568 : tPop filter settings doesn't work.
http://jira.talendforge.org/browse/TDI-21568 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86561 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-02 04:00:03 +00:00
ldong
3be7686641 bug TDI-13124 fixed:Action not disabled when changing workspace.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86558 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-02 03:35:05 +00:00
fwang
274e29ef71 bug TDI-21604 fixed:tAggregareRow_the layout is not good of set Column Default Value.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86553 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-02 03:07:04 +00:00
bchen
fc643f11e3 Fix Bug TDI-21573 : tFileOutputMSXML cannot work with output of tUnite
http://jira.talendforge.org/browse/TDI-21573
when the last merge component don't have output connections, the prior merge component should be the start component
merge r86502 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86513 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-29 09:34:58 +00:00
ycbai
a54c5f2031 bug TDI-20486 fixed: the component is not preconfigured with the chosen rule after drag and drop the validation rules to the component
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86496 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-29 06:32:38 +00:00
fwang
5e5e9b8357 bug TDI-21604 fixed:tAggregareRow_the layout is not good of set Column Default Value.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86494 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-29 06:24:25 +00:00
ldong
9a8fc1d90b bug TDI-13124 fixed:Action not disabled when changing workspace.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86481 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-29 03:27:35 +00:00
wchen
fe38139f9c merge r86382 from trunk to branch 5.1
bug TDI-21499 fixed: tXMLMap : drag & drop is possible but has no effect


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86387 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-27 09:46:03 +00:00
wchen
73a808043b merge r86367 from trunk to branch 5.1
bug TDI-21499 fixed: tXMLMap : drag & drop is possible but has no effect


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86384 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-27 09:41:42 +00:00
jjzhou
fba4b0e14d fix Bug TDI-21520: a bug with the EBCDIC datatype PIC S9
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86378 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-27 09:12:03 +00:00
wchen
89583c76b6 merge r86329 from trunk to branch 5.1
bug TDI-20299 fixed:tXMLMap: Replacing inbound schema does not purge outbound map links leads to Errors although schema and map are ok


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86331 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-26 09:10:21 +00:00
zwzhao
2c92949a89 bug TDI-21413 fixed : tELTOracleMap : incorrect enclosing occurs when a column name contains other column name in generated sql
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86325 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-26 08:45:57 +00:00
ldong
4bba82799f bug TDI-21525 fixed:backport on 5.1.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86292 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-26 02:49:03 +00:00
wchen
b675bbfe69 merge r86235 from trunk to branch 5.1
bug TDI-20733 fixed:Postgres ELT and ETL components act differently


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86236 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-25 05:48:32 +00:00
jjzhou
c03bc2546c fix Bug TDI-21347: It's a feature , revert code to last version.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86130 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-21 06:51:24 +00:00
jjzhou
6e9f84e0a1 fix Bug TDI-21578: Delete function in tLADAPOutput not working
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86125 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-21 06:16:50 +00:00
rdubois
7e79551faf merge r85605 from trunk to branch 5.1
Fix for TDI-20023


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86085 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-20 12:58:08 +00:00
rdubois
0becd5225e merge r86075 from branch 5.0 to branch 5.1
TDI-21420 fixed: change the default value for METHODNAME parameter


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86077 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-20 12:07:28 +00:00
hwang
cc79fb20b8 TDI-21464:Export Petals ESB:Export successfully but with many error logs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86044 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-20 08:45:15 +00:00
jzhao
5534b3c0df Fix Bug TDI-21370: tfileoutputexcel component loses format cells in append mode
http://jira.talendforge.org/browse/TDI-21370
Note:1.Use default column style when cell is null but keep cell format
     2.Remove needless blank row when append empty sheet.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@86020 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-20 06:51:14 +00:00
hcyi
aa001743a4 merge r85939 from trunk to branch 5.1
bug TDI-6803 fixed : tFileInputMSDelimited did not fetch separator "\\" . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85941 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 09:58:27 +00:00
bchen
3bf83faa59 Fix Bug TDI-21516 : Bad rejected inner join on linked output
http://jira.talendforge.org/browse/TDI-21516
merge r85925 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85926 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 08:51:18 +00:00
dlin
73cf44b806 merge r85887 from trunk to branch 5.1
bug TDI-21062 fixed: tFileInputMSDelimited_no columns display after click "Edit columns" 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85905 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 06:13:41 +00:00
dlin
0e27da60a8 merge r85896 from trunk to branch 5.1
bug TDI-21072 fixed: tFileInputMSDelimited:error message pop up when check or uncheck "Use multiple separators"


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85904 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 06:10:16 +00:00
wwang
f425577f6c fix Bug TDI-21513: merge to branch5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85890 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 03:27:25 +00:00
wchen
b2a7c8175d merge r85811 from trunk to branch 5.1
bug TDI-21478 fixed:tXMLMap:Deleted ouput,column which belong to output can not be deleted together 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85865 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 02:09:37 +00:00
hcyi
3d5d5eb52c merge r85766 from trunk to branch 5.1
bug TDI-21324 fixed : Revert the #TDI-19844 fix , Multiple identical XPaths should be possible within tAdvancedFileOutputXML after applying #TDI-19844 . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85790 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-18 08:56:49 +00:00
nrousseau
c122bd6863 merge r85730 from branch 5.0 to branch 5.1
bug TDI-21534 fixed: allow to use greenplum component  as dbmap


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85731 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-18 02:19:49 +00:00
hcyi
c3cf28ac39 merge r85648 from trunk to branch 5.1
bug TDQ-3684 fixed : Register via Proxy doesn't work .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85651 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-15 07:30:25 +00:00
jzhao
8debb7852f Fix Backlog Task TDI-21412:Postgres ELT and ETL components act differently ,need additional work form component team
http://jira.talendforge.org/browse/TDI-21412
Note:Rollback part of the changes

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85628 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-15 04:04:56 +00:00
dlin
d4e8e0e49c merge r85612 from trunk to branch 5.1
bug TDI-6611 fixed: tFileInputMSDelimited use context variable as file name,dont supply checkbox "Use multiple separators"


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85615 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-15 03:05:32 +00:00
zwzhao
f5d33f99bf bug TDI-21413 fixed : tELTOracleMap : incorrect enclosing occurs when a column name contains other column name in generated sql
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85546 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-14 03:28:43 +00:00
jzhao
7dee5ea298 Fix Backlog Task TDI-21412:Postgres ELT and ETL components act differently ,need additional work form component team
http://jira.talendforge.org/browse/TDI-21412

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85523 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-14 01:58:13 +00:00
jjzhou
8241a44867 fix Bug TDI-21347: Ingres bulk component-tIngresOutputBulkExec. The orginal value spaces ' ' (The value only has spaces) is changed to '' in the result.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85472 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-13 08:43:24 +00:00
bchen
337e92b9fe Fix Bug TDI-21381 : Sybase ASE Store procedure with multiple row insert issue
http://jira.talendforge.org/browse/TDI-21381
use execute method when the procedure return resultset
use executeUpadte method when the procedure don't have return value or have out type return value
use executeQuery method when the procedure return resultset and the procedure have multiple select method
merge r85447 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85458 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-13 07:42:43 +00:00
zwzhao
3e3d20c775 bug TDI-21444 fixed : context disable after swith between jobscript->code->jobeditor
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85355 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-12 08:18:03 +00:00
jyhu
a48fe71712 Fix Bug TDI-21422 : tFileUnarchive Does not work with uppercase filenames and password protected files on case sensitive OS .
http://jira.talendforge.org/browse/TDI-21422 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85341 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-12 07:39:15 +00:00
wwang
16a06fb61b fix Bug TDI-19355: merge to branch5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85306 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-12 06:05:54 +00:00
jzhao
778c88e5d1 Fix Bug TDI-21251 : Cannot create advanced xml file with Hive
http://jira.talendforge.org/browse/TDI-21251
Note:1.revert tAdvancedFileOutputXML add try { at the begin part and } finally {...} at the end part.
     2.Catch Exception in tParseRecordSet component.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85303 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-12 05:57:41 +00:00
jjzhou
4da509065b fix Bug TDI-20886: tMSSqlInput removes some characters
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85294 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-12 05:28:21 +00:00
hcyi
af0866d3c7 merge r85278 from trunk to branch 5.1
bug TDI-19883 fixed : Artifacts imported to a SVN controlled project are not committed to SVN and are lost after restart . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85279 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-12 03:47:36 +00:00
sizhaoliu
972204e54c merge r85226 from trunk to branch 5.1
TDQ-5570 fixed: exclude project name part from generated routine for tStandardizeRow


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85232 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-11 13:17:09 +00:00
zwzhao
5e8adf6be7 bug TDI-21413 fixed : tELTOracleMap : incorrect enclosing occurs when a column name contains other column name in generated sql
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85161 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-11 07:38:22 +00:00
mwang
472859a371 For bug TDI-21396, just remove the filter and make the "element" can be dragged to "Related Column".
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85098 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-08 10:02:20 +00:00
bchen
2fe371c609 Fix Bug TDI-21416 : tFlowToIterate & tSoap error
http://jira.talendforge.org/browse/TDI-21416
merge r85093 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85096 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-08 09:56:48 +00:00
fwang
d535e09cae merge r85084 from trunk to branch 5.1
bug TDI-21189 fixed:A document can be opened many times in studio. 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85090 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-08 09:32:50 +00:00
wwang
b831da367d fix Bug TDI-21341: merge to branch5.1
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85052 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-08 07:15:20 +00:00
wchen
d144e3ab7b merge r85045 from trunk to branch 5.1
bug  TDI-21411 fixed: the modification in Jobscript panel not effect on the job


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85046 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-08 06:30:40 +00:00
jjzhou
356d226b28 fix Bug TDI-21323: Problems downloading email from IMAP-Lotus Notes server with tPop
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85039 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-08 03:21:57 +00:00
rdubois
1565ca19b9 merge r85021 from trunk to branch 5.1
TDI-21435 fixed: add the cid after the isURL variable


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@85022 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 14:38:19 +00:00
zwzhao
0945eccf9e bug TDI-7445 fixed : wrong name for the "open another version" dialog box
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84995 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 10:04:58 +00:00
zwzhao
7a68b88b96 bug TDI-7445 fixed : wrong name for the "open another version" dialog box
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84991 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 09:57:29 +00:00
zwzhao
7204185af1 bug TDI-21250 fixed : Even you add new library with Edit routine Libraries, the routine class will lost the dependency when you restart the studio
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84970 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 09:22:58 +00:00
hcyi
ffbc900692 merge r84958 from trunk to branch 5.1
bug TDI-21401 fixed : Same name job/joblet exist in Job Designs/Joblet Designs . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84964 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 09:05:00 +00:00
bchen
10ab6ca310 Fix Bug TDI-21381 : Sybase ASE Store procedure with multiple row insert issue
http://jira.talendforge.org/browse/TDI-21381
CallableStatement.executeUpdate instead of execute methods
merge r84948 into branch5.1

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84962 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 09:02:58 +00:00
fwang
4f22cdc3c5 bug TDI-20630 fixed:update repository connection wizard can't launched for project setting
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84930 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 07:36:00 +00:00
ycbai
c4333b8e97 bug TDI-21387 modified: CommandLine exportItems command may produce empty file or no file at all
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84920 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 06:57:15 +00:00
fwang
e2c552e965 bug TDI-20142 fixed:Job are not refreshing Implicit ContextLoad from project settings
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84896 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 03:55:05 +00:00
jzhao
9cb9727798 Fix Bug TDI-20347 : tJasperOutput[Exec] creates only blank page on Linux
http://jira.talendforge.org/browse/TDI-20347

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84888 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 02:43:13 +00:00
jzhao
0a05b20a52 Fix Bug TDI-21251 : Cannot create advanced xml file with Hive
http://jira.talendforge.org/browse/TDI-21251
Note:add try { at the begin part and } finally {...} at the end part.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84835 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 09:57:31 +00:00
ycbai
12f9ef0cf5 bug TDI-21387 fixed: CommandLine exportItems command may produce empty file or no file at all
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84806 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 07:17:52 +00:00
zwzhao
aefdc66221 bug TDI-7996 fixed : Esc will not close Expression Editor immediately after open
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84801 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 06:59:43 +00:00
fwang
66a8975e48 merge r84367 from trunk to branch 5.1
bug TDI-21232 fixed:error will show when "View documentation" for job or joblet with name "Jobs" or "Joblets" 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84796 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 06:28:46 +00:00
fwang
0816d975c2 merge r84373 from trunk to branch 5.1
bug TDI-20733 fixed:Postgres ELT and ETL components act differently,but it also needs component team's help 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84794 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 06:23:46 +00:00
zwzhao
c5e7eae92b bug TDI-7996 fixed : Esc will not close Expression Editor immediately after open
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84788 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 05:57:02 +00:00
hcyi
320c295952 merge r84763 from trunk to branch 5.1
bug TDI-21298 fixed : Different processing order of two tPrejob between studio code and exported code . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84766 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 03:26:06 +00:00
jjzhou
e28ef8ef92 fix Bug TDI-20886: tMSSqlInput removes some characters
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84753 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 02:26:14 +00:00
nrousseau
a1fd73eccb merge r84360 from trunk to branch 5.1
bug TDI-21214 fixed: add several optimization


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84752 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 02:17:53 +00:00
jjzhou
bd49b9c4fb fix Bug TDI-20886: tMSSqlInput removes some characters
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84707 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-05 09:36:22 +00:00
qiongli
842d53771c merge r84586 from trunk to branch 5.1
TDQ-5497 org.eclipse.jface error while opening the job: fixed on trunk
add some judgement for connection before use it(null or not). 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84670 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-05 03:50:34 +00:00
jyhu
00f2ca59ef Fix Bug TDI-5796 : General JDBC DB connection.
http://jira.talendforge.org/browse/TDI-5796 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84620 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 10:17:31 +00:00
jyhu
60a868a56e Fix Bug TDI-20595 : tSetProxy(HTTP) does not work against tFTPConnection(SFTP) .
http://jira.talendforge.org/browse/TDI-20595 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84618 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 10:15:37 +00:00
hcyi
008cad994c merge r84602 from trunk to branch 5.1
bug TDI-21099 fixed : Undo after autolink doesn't return to original state . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84615 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 09:59:20 +00:00
jzhao
83fc90b319 Fix Bug TDI-21180: tHashOutput with KeyManagement=KEEP_FIRST Allows Duplicates
http://jira.talendforge.org/browse/TDI-21180

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84612 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 09:56:19 +00:00
jzhao
fd5671b6cc Fix Bug TDI-20905: tSalesforceOutputBulkExec fails to handle fields with a newline value correctly
http://jira.talendforge.org/browse/TDI-20905

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84607 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 09:45:34 +00:00
jjzhou
afd3184f20 fix Bug TDI-21323: Problems downloading email from IMAP-Lotus Notes server with tPop
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84550 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 06:17:24 +00:00
zwzhao
4f05eb9c72 merge r84494 from trunk to branch 5.1
bug TDI-21045 fixed : tMap editor doesn't appear for read-only jobs on Mac


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84544 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 05:43:58 +00:00
hcyi
eeba280121 merge r84520 from trunk to branch 5.1
bug TDI-21099 fixed : Undo after autolink doesn't return to original state . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84521 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 10:38:15 +00:00
hcyi
47b22e5da1 merge r84381 from trunk to branch 5.1
bug TDI-21298 fixed : Different processing order of two tPrejob between studio code and exported code . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84472 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 08:49:49 +00:00
hcyi
ee8bbe2ff3 merge r84372 from trunk to branch 5.1
bug TDI-21099 fixed : Undo after autolink doesn't return to original state . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84468 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 08:43:10 +00:00
hcyi
fad295b2c0 merge r84364 from trunk to branch 5.1
bug TDI-21257 fixed : tSAPOutput : Cannot edit map table after execution . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84464 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 08:30:18 +00:00
wchen
52769aca2f merge r84455 from trunk to branch 5.1
bug  TDI-20781 fixed: Joblet code generation problem


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84460 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 08:17:10 +00:00
zwzhao
4b16b2a5e1 merge r84391 from trunk to branch 5.1
bug TDI-21188 fixed : A job unlocked can be edited.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84458 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 08:00:51 +00:00
zwzhao
544b6acc29 merge r84403 from trunk to branch 5.1
bug TDI-14179 fixed : The old version of jobscript is editable


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_1@84450 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 07:39:19 +00:00
3182 changed files with 46850 additions and 22296 deletions

View File

@@ -38,7 +38,7 @@ ComponentProjectPreferencePage.ChooseProject=S
WizardComponentFolderPage.ErrMSG5=La famille du composant est vide
WizardComponentFolderPage.ErrMSG4=Le nom long du composant est vide
AbstractXMLConfigPage.BooleanTip=Booléen (vrai ou faux)
AbstractXMLConfigPage.Delete=Supprimer
AbstractXMLConfigPage.Delete=DELETE
WizardComponentFolderPage.ErrMSG3=Ce composant existe déjà
WizardComponentFolderPage.ErrMSG2=Le nom du composant est vide
WizardComponentFolderPage.ErrMSG1=Le langage du composant n'a pas été sélectionné

View File

@@ -3,7 +3,7 @@ PushToPaletteActionProvider.PushComponentsToPalette=\u30B3\u30F3\u30DD\u30FC\u30
EditComponentActionProvider.Edit=\u3053\u306E\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u7DE8\u96C6
ImportComponentDialog.ErrorMSG4=\u30A4\u30F3\u30DD\u30FC\u30C8\u3059\u308B\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002
ProjectSelectionDialog.SelectPath=\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30D1\u30B9\u306E\u9078\u629E
AbstractXMLConfigPage.TYPETip=\u30C7\u30FC\u30BF\u578B\u3002
AbstractXMLConfigPage.TYPETip=\u30C7\u30FC\u30BF\u578B
PushToPaletteActionProvider.Error2=\u30A8\u30E9\u30FC
CopyFromPaletteActionProvider.Label2=\u30D1\u30EC\u30C3\u30C8\u304B\u3089\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u30A4\u30F3\u30DD\u30FC\u30C8
AbstractXMLConfigPage.MAXOUTPUTTip=\u6574\u6570\u5024\u3002\u3053\u306E\u63A5\u7D9A\u306E\u6700\u5927\u51FA\u529B\u6570\u3002

View File

@@ -0,0 +1,8 @@
PushToPaletteActionProvider.Error2=Fout
PushToPaletteActionProvider.Error=Fout
NewActionProvider.New=Nieuw
NewActionProvider.NewComponent=Nieuw Component
AbstractXMLConfigPage.Delete=Verwijderen
CreateComponentWizard.NewComponent=Nieuw Component
WizardComponentFolderPage.Name=Naam
AbstractXMLConfigPage.New=Nieuw

View File

@@ -1,3 +1,2 @@
PushToPaletteActionProvider.Error2=Gre\u0161ka
PushToPaletteActionProvider.Error=Gre\u0161ka
AbstractXMLConfigPage.Delete=DELETE

View File

@@ -1,3 +1,4 @@
ApplicationActionBarAdvisor.helpMenu=\uB3C4\uC6C0\uB9D0\uBA54\uB274
ApplicationActionBarAdvisor.fileMenu=\uD30C\uC77C\uBA54\uB274
ApplicationActionBarAdvisor.windowMenu=\uC708\uB3C4\uC6B0\uBA54\uB274
ApplicationActionBarAdvisor.windowMenu=\uC708\uB3C4\uC6B0
ApplicationWorkbenchWindowAdvisor.rcpApp=RCP \uC5B4\uD50C\uB9AC\uCF00\uC774\uC158

View File

@@ -1,5 +1,4 @@
FileWizard.0=\u6587\u4EF6\u5411\u5BFC
\n
FileWizard.0=\u6587\u4EF6\u5411\u5BFC \n
ApplicationActionBarAdvisor.helpMenu=\u5E2E\u52A9(&H)
ApplicationActionBarAdvisor.fileMenu=\u6587\u4EF6(&F)
ShowViewAction.actionLabel=\u663E\u793A\u89C6\u56FE...(&v)

View File

@@ -39,6 +39,7 @@ public class NewActionProvider extends CommonActionProvider {
private IAction newProjectAction;
@Override
public void init(ICommonActionExtensionSite anExtensionSite) {
if (anExtensionSite.getViewSite() instanceof ICommonViewerWorkbenchSite) {
@@ -49,6 +50,7 @@ public class NewActionProvider extends CommonActionProvider {
/**
* Adds a submenu to the given menu with the name "New Component".
*/
@Override
public void fillContextMenu(IMenuManager menu) {
for (IContributionItem item : menu.getItems()) {
if (item == null || item.getId() == null) {
@@ -82,6 +84,7 @@ public class NewActionProvider extends CommonActionProvider {
/*
* (non-Javadoc) Method declared on IAction.
*/
@Override
public void run() {
CreateComponentWizard wizard = new CreateComponentWizard();
wizard.init(PlatformUI.getWorkbench(), null);

View File

@@ -52,7 +52,7 @@ public class TreeNodeAttrCompsite extends Composite {
gd = new GridData();
gd.horizontalSpan = 2;
label.setLayoutData(gd);
final Text nodeText = new Text(this, SWT.BORDER | SWT.MULTI | SWT.WRAP);
final Text nodeText = new Text(this, SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);
gd = new GridData(GridData.FILL_BOTH);
gd.horizontalSpan = 2;
nodeText.setLayoutData(gd);
@@ -60,6 +60,7 @@ public class TreeNodeAttrCompsite extends Composite {
nodeText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
nodeData.getXMLNode().setTextContent(nodeText.getText());
nodeData.setBodayText(nodeText.getText());
@@ -87,6 +88,7 @@ public class TreeNodeAttrCompsite extends Composite {
attrText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
String attrName = attrLabel.getText().split(MARK)[0];
if (attrText.getText().equals(PluginConstant.EMPTY_STRING)) {
@@ -128,6 +130,7 @@ public class TreeNodeAttrCompsite extends Composite {
attrCombo.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
String attrName = attrLabel.getText().split(MARK)[0];
if (attrCombo.getText().equals(PluginConstant.EMPTY_STRING)) {

View File

@@ -18,8 +18,10 @@ import java.util.List;
import java.util.Map;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
@@ -71,6 +73,8 @@ public abstract class AbstractXMLConfigPage extends AbstractComponentPage {
protected Map<String, String> attrsToolTipsMap = null;
private ScrolledComposite scrolledComposite;
/**
* DOC rli WizardXMLConfigPage constructor comment.
*
@@ -95,14 +99,19 @@ public abstract class AbstractXMLConfigPage extends AbstractComponentPage {
topComposite.setLayout(new GridLayout(2, false));
GridData data = new GridData(GridData.FILL_BOTH);
topComposite.setLayoutData(data);
// topComposite.setLayout(new FillLayout());
availableXmlTree = new Tree(topComposite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
GridData treeGD = new GridData(GridData.FILL_BOTH);
treeGD.widthHint = 110;
treeGD.widthHint = 196;
treeGD.grabExcessHorizontalSpace = true;
treeGD.grabExcessVerticalSpace = true;
availableXmlTree.setLayoutData(treeGD);
rightComposite = new Composite(topComposite, SWT.NONE);
scrolledComposite = new ScrolledComposite(topComposite, SWT.V_SCROLL);
scrolledComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
scrolledComposite.setLayout(new FillLayout());
// rightComposite = new Composite(topComposite, SWT.NONE);
rightComposite = new Composite(scrolledComposite, SWT.NONE);
GridData rightPanelGd = new GridData(GridData.FILL_BOTH);
rightPanelGd.widthHint = 180;
rightComposite.setLayoutData(rightPanelGd);
@@ -113,6 +122,10 @@ public abstract class AbstractXMLConfigPage extends AbstractComponentPage {
GridData labelGd = new GridData(GridData.FILL_HORIZONTAL);
label.setLayoutData(labelGd);
scrolledComposite.setContent(rightComposite);
scrolledComposite.setExpandHorizontal(true);
scrolledComposite.setExpandVertical(true);
this.setControl(topComposite);
}
@@ -121,6 +134,7 @@ public abstract class AbstractXMLConfigPage extends AbstractComponentPage {
*
* @see org.talend.componentdesigner.ui.wizard.creatcomponent.AbstractComponentPage#initialize()
*/
@Override
protected void initialize() {
availableXmlTree.addSelectionListener(new SelectionAdapter() {
@@ -139,6 +153,7 @@ public abstract class AbstractXMLConfigPage extends AbstractComponentPage {
itemDel.setText(Messages.getString("AbstractXMLConfigPage.Delete")); //$NON-NLS-1$
itemDel.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
TreeNodeData currentNodeData = (TreeNodeData) treeItem[0].getParentItem().getData();
currentNodeData.getXMLNode().removeChild(((TreeNodeData) treeItem[0].getData()).getXMLNode());
@@ -158,6 +173,7 @@ public abstract class AbstractXMLConfigPage extends AbstractComponentPage {
nodeMenuItem.setText(itemName);
nodeMenuItem.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
TreeItem newItem = new TreeItem(treeItem[0], 0);
newItem.setText(itemName);
@@ -182,6 +198,7 @@ public abstract class AbstractXMLConfigPage extends AbstractComponentPage {
nodeAttrCompsite.dispose();
}
rebuildAttrComposite(treeNodeData);
setComponentMinSize(treeNodeData.getTreeNode().getLabel());
rightComposite.layout();
}
@@ -189,11 +206,30 @@ public abstract class AbstractXMLConfigPage extends AbstractComponentPage {
}
private void setComponentMinSize(String label) {
if (("HEADER").equals(label)) {
scrolledComposite.setMinSize(0, 0);
scrolledComposite.setMinSize(0, 750);
} else if (("CONNECTOR").equals(label)) {
scrolledComposite.setMinSize(0, 0);
scrolledComposite.setMinSize(0, 500);
} else if (("PARAMETER").equals(label)) {
scrolledComposite.setMinSize(0, 0);
scrolledComposite.setMinSize(0, 630);
} else if (("RETURN").equals(label)) {
scrolledComposite.setMinSize(0, 0);
scrolledComposite.setMinSize(0, 150);
} else {
scrolledComposite.setMinSize(0, 0);
}
}
/*
* (non-Javadoc)
*
* @see org.talend.componentdesigner.ui.wizard.creatcomponent.AbstractComponentPage#validatePage()
*/
@Override
protected boolean validatePage() {
return false;
}

View File

@@ -4,6 +4,7 @@ prefs.configuration.LINK_STYLE.LINE=Lignes (rapide)
prefs.configuration.LINK_STYLE.BEZIER_CURVE=Courbes
prefs.configuration.LINK_STYLE=Affichage par défaut du lien de mapping \:
DraggingInfosPopup.draggingEntry=Glissement de {0} entrée.
DraggingInfosPopup.dropInvalid=\n<< Déposer invalide >>\n
DraggingInfosPopup.draggingEntries=Glissement de {0} entrées.
DraggingInfosPopup.overwriteMode=\ > Mode écrasement
DraggingInfosPopup.appendMode=\ > Mode écrire après

View File

@@ -0,0 +1,3 @@
prefs.configuration.LINK_STYLE.AUTO=Automatisch
prefs.configuration.LINK_STYLE.LINE=Lijnen (snel)
prefs.configuration.LINK_STYLE.BEZIER_CURVE=Rondingen

View File

@@ -0,0 +1,5 @@
AlfrescoModelDialog.modelTable.title=Titel
AlfrescoOutputManager.schemaError.title=Fout in schema
AlfrescoModelDialog.add=Toevoegen
AlfrescoModelDialog.removeModelFailed=Fout bij verwijderen model
AlfrescoModelDialog.modelTable.name=Naam

View File

@@ -0,0 +1,9 @@
AssignmentPropertySection.Name=Naam
BusinessPaletteFactory.ActionComment=Nieuwe Aktie
BusinessInitDiagramFileAction.Error=Fout
AssignmentPropertySection.Comment=Opmerking
BusinessPaletteFactory.Data=Data
BusinessPaletteFactory.Ellipse=Elips
BusinessPaletteFactory.Document=Document
BusinessPaletteFactory.Action=Aktie
BusinessPaletteFactory.DocuemntComment=Nieuw Document

View File

@@ -82,3 +82,5 @@ 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

@@ -13,14 +13,25 @@
package org.talend.designer.business.diagram.custom.actions;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceRunnable;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.EditorPart;
import org.osgi.framework.FrameworkUtil;
import org.talend.commons.exception.PersistenceException;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.commons.ui.runtime.exception.MessageBoxExceptionHandler;
import org.talend.commons.ui.runtime.image.ECoreImage;
import org.talend.commons.ui.runtime.image.ImageProvider;
import org.talend.core.CorePlugin;
@@ -73,8 +84,8 @@ public class SaveAsBusinessModelWizard extends Wizard {
RepositoryNode repositoryNode = repositoryEditorInput.getRepositoryNode();
// see: RepositoryEditorInput.setRepositoryNode(IRepositoryNode repositoryNode)
if (repositoryNode == null) {
repositoryNode = (RepositoryNode) CorePlugin.getDefault().getRepositoryService().getRepositoryNode(
repositoryEditorInput.getItem().getProperty().getId(), false);
repositoryNode = (RepositoryNode) CorePlugin.getDefault().getRepositoryService()
.getRepositoryNode(repositoryEditorInput.getItem().getProperty().getId(), false);
}
IRepositoryService service = DesignerPlugin.getDefault().getRepositoryService();
@@ -120,13 +131,7 @@ public class SaveAsBusinessModelWizard extends Wizard {
isUpdate = isUpdate();
if (isUpdate) {
assginVlaues(oldProperty, property);
repositoryFactory.save(oldBusinessProcessItem);
// assign value
businessProcessItem = oldBusinessProcessItem;
update();
} else {
property.setId(repositoryFactory.getNextId());
@@ -152,6 +157,34 @@ public class SaveAsBusinessModelWizard extends Wizard {
return ok;
}
private void update() {
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
@Override
public void run(IProgressMonitor monitor) throws CoreException {
try {
assginVlaues(oldProperty, property);
repositoryFactory.save(oldBusinessProcessItem);
// assign value
businessProcessItem = oldBusinessProcessItem;
} catch (PersistenceException pe) {
throw new CoreException(new Status(IStatus.ERROR, FrameworkUtil.getBundle(this.getClass()).getSymbolicName(),
"persistance error", pe)); //$NON-NLS-1$
}
}
};
IWorkspace workspace = ResourcesPlugin.getWorkspace();
try {
ISchedulingRule schedulingRule = workspace.getRoot();
// the update the project files need to be done in the workspace runnable to avoid all notification
// of changes before the end of the modifications.
workspace.run(runnable, schedulingRule, IWorkspace.AVOID_UPDATE, null);
} catch (CoreException e) {
MessageBoxExceptionHandler.process(e.getCause());
}
}
public BusinessProcessItem getBusinessProcessItem() {
return this.businessProcessItem;
}

View File

@@ -13,9 +13,12 @@
package org.talend.designer.business.diagram.custom.edit.parts;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.MouseEvent;
import org.eclipse.draw2d.MouseMotionListener;
import org.eclipse.draw2d.PositionConstants;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.EditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
@@ -42,6 +45,8 @@ public abstract class BusinessItemShapeEditPart extends ShapeNodeEditPart {
private ElementHelper elementHelper;
private EditPart editPart;
/**
* DOC mhelleboid BusinessItemShapeEditPart constructor comment.
*
@@ -51,6 +56,7 @@ public abstract class BusinessItemShapeEditPart extends ShapeNodeEditPart {
super(view);
tooltipFigure = new BusinessTooltipFigure();
elementHelper = new ElementHelper();
editPart = this;
}
@Override
@@ -103,6 +109,33 @@ public abstract class BusinessItemShapeEditPart extends ShapeNodeEditPart {
for (Object figure : shapFigure.getChildren()) {
if (figure instanceof BusinessItemNameFigure) {
BusinessItemNameFigure nameFigure = (BusinessItemNameFigure) figure;
nameFigure.addMouseMotionListener(new MouseMotionListener() {
@Override
public void mouseMoved(MouseEvent me) {
// TODO Auto-generated method stub
}
@Override
public void mouseHover(MouseEvent me) {
// TODO Auto-generated method stub
}
@Override
public void mouseExited(MouseEvent me) {
// TODO Auto-generated method stub
}
@Override
public void mouseEntered(MouseEvent me) {
elementHelper.updateTooltipFigure(getNodeFigure(), tooltipFigure, editPart);
}
@Override
public void mouseDragged(MouseEvent me) {
// TODO Auto-generated method stub
}
});
EObject object = ((Node) getModel()).getElement();
if (object instanceof BusinessItem) {
BusinessItem item = (BusinessItem) object;
@@ -180,9 +213,9 @@ public abstract class BusinessItemShapeEditPart extends ShapeNodeEditPart {
private BusinessAlignment getAlignment(String alignment) {
BusinessAlignment[] alignments = BusinessAlignment.values();
BusinessAlignment position = null;
for (int i = 0; i < alignments.length; i++) {
if (alignments[i].toString().equalsIgnoreCase(alignment)) {
position = alignments[i];
for (BusinessAlignment alignment2 : alignments) {
if (alignment2.toString().equalsIgnoreCase(alignment)) {
position = alignment2;
return position;
}

View File

@@ -18,6 +18,7 @@ import java.beans.PropertyChangeListener;
import org.talend.commons.exception.PersistenceException;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.core.CorePlugin;
import org.talend.core.model.repository.ERepositoryObjectType;
import org.talend.core.model.repository.IRepositoryObject;
import org.talend.core.model.repository.IRepositoryViewObject;
import org.talend.core.repository.model.ProxyRepositoryFactory;
@@ -29,12 +30,6 @@ import org.talend.repository.model.IProxyRepositoryFactory;
*/
public class BusinessDeleteListener implements PropertyChangeListener {
private IRepositoryObject businessObjectToDelete;
private boolean isDeleteBusinessLogical;
private boolean isDeleteBusinessPhysical;
private IProxyRepositoryFactory factory = null;
public BusinessDeleteListener() {
@@ -46,10 +41,11 @@ public class BusinessDeleteListener implements PropertyChangeListener {
*
* @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
*/
@Override
public void propertyChange(PropertyChangeEvent event) {
isDeleteBusinessLogical = event.getPropertyName().equals(ERepositoryActionName.BUSINESS_DELETE_TO_RECYCLE_BIN.getName());
isDeleteBusinessPhysical = event.getPropertyName().equals(ERepositoryActionName.BUSINESS_DELETE_FOREVER.getName());
boolean isDeleteBusinessLogical = event.getPropertyName().equals(ERepositoryActionName.DELETE_TO_RECYCLE_BIN.getName());
boolean isDeleteBusinessPhysical = event.getPropertyName().equals(ERepositoryActionName.DELETE_FOREVER.getName());
if (!isDeleteBusinessLogical && !isDeleteBusinessPhysical) {
return;
@@ -58,13 +54,18 @@ public class BusinessDeleteListener implements PropertyChangeListener {
if (!(event.getNewValue() instanceof IRepositoryObject)) {
return;
}
businessObjectToDelete = (IRepositoryObject) event.getNewValue();
IRepositoryObject object = (IRepositoryObject) event.getNewValue();
if (object.getRepositoryObjectType() != ERepositoryObjectType.BUSINESS_PROCESS) {
return;
}
if (businessObjectToDelete != null) {
object = (IRepositoryObject) event.getNewValue();
if (object != null) {
try {
deleteSVGObjectLogicalOrPhysical(businessObjectToDelete, isDeleteBusinessLogical);
deleteSVGObjectLogicalOrPhysical(object, isDeleteBusinessLogical);
} catch (PersistenceException e) {
ExceptionHandler.process(e);

View File

@@ -27,8 +27,8 @@ import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.commons.ui.runtime.image.ECoreImage;
import org.talend.commons.ui.runtime.image.ImageProvider;
import org.talend.commons.ui.runtime.image.ImageUtils;
import org.talend.commons.ui.runtime.image.OverlayImage;
import org.talend.commons.ui.runtime.image.ImageUtils.ICON_SIZE;
import org.talend.commons.ui.runtime.image.OverlayImage;
import org.talend.commons.ui.runtime.image.OverlayImage.EPosition;
import org.talend.core.CorePlugin;
import org.talend.core.model.metadata.MetadataTool;
@@ -97,8 +97,8 @@ public class ElementHelper {
if (assignment instanceof BusinessAssignment) {
TalendItem talendItem = ((BusinessAssignment) assignment).getTalendItem();
if (talendItem != null) {
IRepositoryViewObject obj = CorePlugin.getDefault().getProxyRepositoryFactory().getLastVersion(
talendItem.getId());
IRepositoryViewObject obj = CorePlugin.getDefault().getProxyRepositoryFactory()
.getLastVersion(talendItem.getId());
if (obj != null) {
ERepositoryObjectType type = obj.getRepositoryObjectType();
Item item = obj.getProperty().getItem();
@@ -113,7 +113,7 @@ public class ElementHelper {
} else {
img = CoreImageProvider.getImage(type);
}
label = new Label(talendItem.getLabel() + " (" + provider.getColumnText(assignment, 0) + ")", img); //$NON-NLS-1$ //$NON-NLS-2$
label = new Label(obj.getLabel() + " (" + provider.getColumnText(assignment, 0) + ")", img); //$NON-NLS-1$ //$NON-NLS-2$
labels.add(label);
} else {

View File

@@ -187,15 +187,18 @@ public class BusinessAssignmentComposite extends AbstractTabComposite {
tableViewer.setCellModifier(new ICellModifier() {
@Override
public boolean canModify(Object element, String property) {
return property.equals(columnProperties[2]);
}
@Override
public Object getValue(Object element, String property) {
return EmfPropertyHelper.getValue(itemPropertyDescriptor, element);
}
@Override
public void modify(Object element, String property, Object value) {
if (element instanceof TableItem) {
TableItem tableItem = (TableItem) element;
@@ -221,6 +224,7 @@ public class BusinessAssignmentComposite extends AbstractTabComposite {
private void createDoubleClickListener() {
tableViewer.addDoubleClickListener(new IDoubleClickListener() {
@Override
public void doubleClick(DoubleClickEvent event) {
BusinessAssignment businessAssignment = getBusinessAssignment(event.getSelection());
@@ -254,6 +258,7 @@ public class BusinessAssignmentComposite extends AbstractTabComposite {
private void createSelectionListener() {
tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {
BusinessAssignment businessAssignment = getBusinessAssignment(event.getSelection());
if (businessAssignment != null) {
@@ -390,6 +395,7 @@ public class BusinessAssignmentComposite extends AbstractTabComposite {
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(new IMenuListener() {
@Override
public void menuAboutToShow(IMenuManager mgr) {
BusinessAssignment businessAssignment = getBusinessAssignment(tableViewer.getSelection());
if (businessAssignment != null) {
@@ -518,6 +524,7 @@ public class BusinessAssignmentComposite extends AbstractTabComposite {
private void createKeyListener(Table table) {
table.addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent event) {
ISelection selection = tableViewer.getSelection();
if (selection instanceof IStructuredSelection) {
@@ -558,4 +565,12 @@ public class BusinessAssignmentComposite extends AbstractTabComposite {
return new StructuredSelection(repositoryNode);
}
@Override
public void refresh() {
super.refresh();
if (tableViewer != null) {
tableViewer.refresh();
}
}
}

View File

@@ -24,6 +24,7 @@ import org.eclipse.gmf.runtime.diagram.ui.internal.editparts.NoteAttachmentEditP
import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer;
import org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.StorageDiagramDocumentProvider;
import org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.editor.FileDiagramEditor;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IEditorInput;
@@ -57,13 +58,16 @@ import org.talend.designer.business.diagram.custom.dnd.BusinessDiagramDropTarget
import org.talend.designer.business.diagram.custom.edit.parts.BaseBusinessItemRelationShipEditPart;
import org.talend.designer.business.diagram.custom.edit.parts.BusinessItemShapeEditPart;
import org.talend.designer.business.diagram.custom.figures.BusinessItemShapeFigure;
import org.talend.designer.business.diagram.i18n.Messages;
import org.talend.designer.business.model.business.diagram.edit.parts.BusinessEditPartFactory;
import org.talend.designer.business.model.business.diagram.edit.parts.BusinessProcessEditPart;
import org.talend.designer.business.model.business.diagram.providers.BusinessDiagramActionProvider;
import org.talend.designer.core.ui.ActiveProcessTracker;
import org.talend.designer.core.ui.views.jobsettings.JobSettingsView;
import org.talend.repository.editor.RepositoryEditorInput;
import org.talend.repository.model.ERepositoryStatus;
import org.talend.repository.model.IProxyRepositoryFactory;
import org.talend.repository.model.IRepositoryService;
import org.talend.repository.model.RepositoryNode;
/**
@@ -171,10 +175,29 @@ public class BusinessDiagramEditor extends FileDiagramEditor implements IGotoMar
@Override
public void doSave(IProgressMonitor progressMonitor) {
super.doSave(progressMonitor);
if (repositoryEditorInput != null) {
DiagramResourceManager diagramResourceManager = new DiagramResourceManager();
BusinessProcessItem businessProcessItem = (BusinessProcessItem) repositoryEditorInput.getItem();
IRepositoryService service = CorePlugin.getDefault().getRepositoryService();
IProxyRepositoryFactory repFactory = service.getProxyRepositoryFactory();
try {
repFactory.updateLockStatus();
// For TDI-23825, if not lock by user try to lock again.
boolean locked = repFactory.getStatus(businessProcessItem) == ERepositoryStatus.LOCK_BY_USER;
if (!locked) {
repFactory.lock(businessProcessItem);
}
} catch (Exception e) {
ExceptionHandler.process(e);
}
ERepositoryStatus status = repFactory.getStatus(businessProcessItem);
if (!status.equals(ERepositoryStatus.LOCK_BY_USER)) {
MessageDialog.openWarning(getEditorSite().getShell(),
Messages.getString("BusinessDiagramEditor.canNotSaveTitle"), //$NON-NLS-1$
Messages.getString("BusinessDiagramEditor.canNotSaveMessage")); //$NON-NLS-1$
return;
}
super.doSave(progressMonitor);
DiagramResourceManager diagramResourceManager = new DiagramResourceManager();
diagramResourceManager.updateFromResource(businessProcessItem, repositoryEditorInput.getFile());
// remove the function of sve SVG file because the imported business model can't save SVG file.
// saveSVG(businessProcessItem);

View File

@@ -0,0 +1,5 @@
prefs.configuration.LINK_STYLE.AUTO=Automatisch
prefs.configuration.LINK_STYLE.BEZIER_CURVE=Rondingen
prefs.configuration.LINK_STYLE.LINE=Lijnen (snel)
FAMILY.Access=Toegang
FAMILY.Connections=Verbindingen

View File

@@ -1,7 +1,7 @@
CodeGeneratorEmittersPoolFactory.JETEmitters.NoPresent=JETEmitters\u5DE5\u7A0B\u4E0D\u5B58\u5728\uFF0C\u9700\u8981\u91CD\u65B0\u5B8C\u6574\u521D\u59CB\u5316\u3002
CodeGeneratorEmittersPoolFactory.Class.NotFound=\u6A21\u677F\u4F9D\u7136\u5B58\u5728\uFF0C\u4F46\u662F\u7C7B{0}
CodeGeneratorEmittersPoolFactory.PersitentData.Error=\u6301\u4E45\u5316\u6570\u636E\u4E0D\u80FD\u4FDD\u5B58\uFF1A
CodeGeneratorEmittersPoolFactory.initMessage=\u4EA7\u751F\u521D\u59CB\u5316\u5F15\u64CE...
CodeGeneratorEmittersPoolFactory.initMessage=\u521D\u59CB\u5316\u4EE3\u7801\u751F\u6210\u5F15\u64CE...
EmfEmittersPersistence.CodeGen.DataMissing=\u4EE3\u7801\u751F\u6210\u6570\u636E\u6D41\u5931\uFF0C\u5F00\u59CB\u91CD\u65B0\u751F\u6210\u4EE3\u7801\u3002
CodeGenerator.JET.TimeOut=JET\u521D\u59CB\u5316\u8D85\u65F6\uFF01
generatedcode.copyright.body4=\u4F60\u53EF\u4EE5\u5728\u5728GNU LGPL \u8BB8\u53EF\u8BC1\u4E0B\u652F\u914D\u8FD9\u4E9B\u4EE3\u7801

View File

@@ -24,7 +24,7 @@
}
protected void doStop() throws Exception {
protected void doStop() throws java.lang.Exception {
super.doStop();
getCamelContexts().get(0).stop();
}
@@ -240,11 +240,11 @@
return null;
}
public void stop() throws Exception {
public void stop() throws java.lang.Exception {
camelImplementation.stop();
}
public void shutdown() throws Exception {
public void shutdown() throws java.lang.Exception {
camelImplementation.shutdown();
}
};

View File

@@ -50,7 +50,7 @@ class CamelImpl extends org.apache.camel.impl.MainSupport {
try {
postProcessContext();
initRoute();
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}
@@ -64,7 +64,7 @@ class CamelImpl extends org.apache.camel.impl.MainSupport {
return instance;
}
protected void doStart() throws Exception {
protected void doStart() throws java.lang.Exception {
super.doStart();
org.apache.camel.management.JmxNotificationEventNotifier notifier = new org.apache.camel.management.JmxNotificationEventNotifier();
@@ -123,9 +123,9 @@ for (INode node : processNodes) {
}
public void initRoute() throws Exception {
public void initRoute() throws java.lang.Exception {
routeBuilder = new org.apache.camel.builder.RouteBuilder() {
public void configure() throws Exception {
public void configure() throws java.lang.Exception {
<%
for (INode node : processNodes) {
if (node.getComponent().getName().equals("cCXF")) {

View File

@@ -21,7 +21,7 @@
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
context.store(baos, "");
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
%>

View File

@@ -378,7 +378,7 @@ this.globalResumeTicket = true;//to run tPreJob
%>
try {
<%=statCatcherNode.getDesignSubjobStartNode().getUniqueName() %>Process(globalMap);
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
<%
@@ -417,19 +417,20 @@ this.globalResumeTicket = false;//to run others jobs
threadLocal.set(threadRunResultMap);
<%=createCallProcess(rootNode, process.getName(), true) %>
Integer localErrorCode = (Integer)(((java.util.Map)threadLocal.get()).get("errorCode"));
String localStatus = (String)(((java.util.Map)threadLocal.get()).get("status"));
if (localErrorCode != null) {
if (errorCode == null || localErrorCode.compareTo(errorCode) > 0) {
errorCode = localErrorCode;
}
}
if(!status.equals("failure")){
status = localStatus;
}
runningThreadCount.add(-1);
finally {
Integer localErrorCode = (Integer)(((java.util.Map)threadLocal.get()).get("errorCode"));
String localStatus = (String)(((java.util.Map)threadLocal.get()).get("status"));
if (localErrorCode != null) {
if (errorCode == null || localErrorCode.compareTo(errorCode) > 0) {
errorCode = localErrorCode;
}
}
if(!status.equals("failure")){
status = localStatus;
}
runningThreadCount.add(-1);
}
}
}.start();
@@ -441,7 +442,7 @@ this.globalResumeTicket = false;//to run others jobs
{
try {
Thread.sleep(10);
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}
@@ -497,7 +498,7 @@ this.globalResumeTicket = true;//to run tPostJob
<%=statCatcherNode.getUniqueName() %>.addMessage(status==""?"end":status, (end-startTime));
try {
<%=statCatcherNode.getDesignSubjobStartNode().getUniqueName() %>Process(globalMap);
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
<%

View File

@@ -2,7 +2,7 @@ import org.talend.core.model.process.INode;
public class CLASS
{
private static String end_multiThread = "((java.util.Map) threadLocal.get()).put(\"status\", \"end\");";
private static String end_multiThread = "if ( !\"failure\".equals(((java.util.Map)threadLocal.get()).get(\"status\")) ) {\n((java.util.Map) threadLocal.get()).put(\"status\", \"end\");\n}";
private static String end_singleThread = "if(!\"failure\".equals(status)) { status = \"end\"; }";
private static String failure_multiThread = "((java.util.Map) threadLocal.get()).put(\"status\", \"failure\");";
private static String failure_singleThread = "status = \"failure\";";
@@ -29,11 +29,11 @@ public class CLASS
toReturn += "\n}catch (TalendException e_" + rootNode.getUniqueName() + ") {\n";
if(isMultiThread) {
toReturn += failure_multiThread;
}else{
toReturn += failure_singleThread;
}
// if(isMultiThread) {
// toReturn += failure_multiThread;
// }else{
// toReturn += failure_singleThread;
// }
toReturn += "\ne_" + rootNode.getUniqueName() + ".printStackTrace();\n";
@@ -45,7 +45,12 @@ public class CLASS
// toReturn += createCallProcess(conn.getTarget(), className, isMultiThread);
// }
//}
toReturn += "\n}finally {\n}";
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 += "\n}";
return toReturn;
}

View File

@@ -2,21 +2,13 @@
package="org.talend.designer.codegen.translators"
imports="
org.talend.core.model.process.IProcess
org.talend.core.model.process.INode
org.talend.designer.codegen.config.CodeGeneratorArgument
org.talend.core.CorePlugin
org.talend.core.model.process.EConnectionType
org.talend.core.model.process.IConnection
org.talend.core.model.metadata.IMetadataTable
org.talend.core.model.metadata.IMetadataColumn
java.util.Vector
java.util.List
java.util.ArrayList
org.talend.core.model.process.IContextParameter
org.talend.core.model.metadata.types.JavaTypesManager
org.talend.core.model.metadata.types.JavaType
org.talend.core.model.utils.JavaResourcesHelper
org.talend.core.model.process.ElementParameterParser
"
class="Footer"
skeleton="footer_java.skeleton"
@@ -142,15 +134,14 @@
context.putAll(context_param);
}
<%
for (IContextParameter ctxParam :params)
{
//for bug TDI-22398
for (IContextParameter ctxParam :params){ //start for
String typeToGenerate ="String";
if( !(ctxParam.getType().equals("id_File") || ctxParam.getType().equals("id_Directory") ||ctxParam.getType().equals("id_List Of Value")))
{
typeToGenerate=JavaTypesManager.getTypeToGenerate(ctxParam.getType(),true);
}
if(typeToGenerate.equals("java.util.Date"))
{
if(typeToGenerate.equals("java.util.Date")){ // start if
%>
try{
@@ -171,47 +162,25 @@
{
context.<%=ctxParam.getName()%>=null;
}
<%
}else if(typeToGenerate.equals("Object")||typeToGenerate.equals("String")||typeToGenerate.equals("java.lang.String") ){
%>
}else if(typeToGenerate.equals("Integer"))
{
context.<%=ctxParam.getName()%>=(<%=typeToGenerate%>) context.getProperty("<%=ctxParam.getName()%>");
<%
}else if(typeToGenerate.equals("Character")&&ctxParam.getName()!=null){
%>
context.<%=ctxParam.getName()%>= new java.text.StringCharacterIterator(context.getProperty("<%=ctxParam.getName()%>")).first();
<%
}else{
%>
try{
context.<%=ctxParam.getName()%>=Integer.parseInt(context.getProperty("<%=ctxParam.getName()%>"));
}catch(NumberFormatException e){
context.<%=ctxParam.getName()%>=null;
}
try{
context.<%=ctxParam.getName()%>=routines.system.ParserUtils.parseTo_<%=typeToGenerate%> (context.getProperty("<%=ctxParam.getName()%>"));
}catch(NumberFormatException e){
context.<%=ctxParam.getName()%>=null;
}
<%
}else if(typeToGenerate.equals("Object")||typeToGenerate.equals("String")||typeToGenerate.equals("java.lang.String") )
{
%>
context.<%=ctxParam.getName()%>=(<%=typeToGenerate%>) context.getProperty("<%=ctxParam.getName()%>");
<%
}else if(typeToGenerate.equals("Character")&&ctxParam.getName()!=null)
{
%>
context.<%=ctxParam.getName()%>= new java.text.StringCharacterIterator(context.getProperty("<%=ctxParam.getName()%>")).first();
<%
} else if(typeToGenerate.equals("BigDecimal"))
{
%>
try{
context.<%=ctxParam.getName()%>= new <%=typeToGenerate%>(context.getProperty("<%=ctxParam.getName()%>"));
}catch(NumberFormatException e){
context.<%=ctxParam.getName()%>=null;
}
<%
}
else
{
%>
try{
context.<%=ctxParam.getName()%>=<%=typeToGenerate%>.parse<%=typeToGenerate%> (context.getProperty("<%=ctxParam.getName()%>"));
}catch(NumberFormatException e){
context.<%=ctxParam.getName()%>=null;
}
<%
}
}
} //end if
} //end for
%>
} catch (java.io.IOException ie) {
System.err.println("Could not load context "+contextStr);
@@ -240,7 +209,7 @@
try {
initUriMap();
Route(true);
} catch (Exception e) {
} catch (java.lang.Exception e) {
System.err.println(e.getMessage());
e.printStackTrace();
return 1;

View File

@@ -284,28 +284,36 @@ public String getExceptionStackTrace() {
return null;
}
private Exception exception = null;
private java.lang.Exception exception = null;
public Exception getException() {
public java.lang.Exception getException() {
if ("failure".equals(this.getStatus())) {
return this.exception;
}
return null;
}
private class TalendException extends Exception {
private class TalendException extends java.lang.Exception {
private static final long serialVersionUID = 1L;
private java.util.Map<String, Object> globalMap = null;
private Exception e = null;
private java.lang.Exception e = null;
private String currentComponent = null;
private TalendException(Exception e, String errorComponent, final java.util.Map<String, Object> globalMap) {
private TalendException(java.lang.Exception e, String errorComponent, final java.util.Map<String, Object> globalMap) {
this.currentComponent= errorComponent;
this.globalMap = globalMap;
this.e = e;
}
public java.lang.Exception getException() {
return this.e;
}
public String getCurrentComponent() {
return this.currentComponent;
}
@Override
public void printStackTrace() {
@@ -426,6 +434,17 @@ private class TalendException extends Exception {
}
}
%>
} else {
<%
if (isRunInMultiThread ) {
%>
((java.util.Map)threadLocal.get()).put("status", "failure");
<%
} else {%>
status = "failure";
<%
}
%>
}
}
}
@@ -435,7 +454,7 @@ private class TalendException extends Exception {
for (INode node : processNodes) {
if (node.isActivate()) {
%>
public void <%=node.getUniqueName() %>_error(Exception exception, String errorComponent, final java.util.Map<String, Object> globalMap) throws TalendException {
public void <%=node.getUniqueName() %>_error(java.lang.Exception exception, String errorComponent, final java.util.Map<String, Object> globalMap) throws TalendException {
end_Hash.put("<%=node.getUniqueName() %>", System.currentTimeMillis());
<%
boolean ifBeforRunError = NodeUtil.checkComponentErrorConnectionAfterNode(node);
@@ -466,9 +485,11 @@ private class TalendException extends Exception {
}
}
}
boolean isExistOnCompErrorLink = false;
List< ? extends IConnection> conns = node.getOutgoingConnections();
for (IConnection conn : conns) {
if (conn.getLineStyle().equals(EConnectionType.ON_COMPONENT_ERROR)) {
isExistOnCompErrorLink = true;
%>
try {
<%if (stats) {%>
@@ -480,27 +501,56 @@ private class TalendException extends Exception {
if (isRunInMultiThread ) {
%>
((java.util.Map)threadLocal.get()).put("errorCode", null);
((java.util.Map)threadLocal.get()).put("status", "failure");
<%=conn.getTarget().getUniqueName() %>Process(globalMap);
if ( !"failure".equals(((java.util.Map)threadLocal.get()).get("status")) ) {
((java.util.Map)threadLocal.get()).put("status", "end");
}
<%
} else {
%>
errorCode = null;
status = "failure";
<%=conn.getTarget().getUniqueName() %>Process(globalMap);
if (!"failure".equals(status)) {
status = "end";
}
<%
}
%>
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
<%
}
}
boolean isSubjobHasOnSubJobError = false;
if (!isExistOnCompErrorLink) {
INode subJobStartNode = node.getDesignSubjobStartNode();
if (subJobStartNode != null) {
List< ? extends IConnection> tempConns = subJobStartNode.getOutgoingConnections();
for (IConnection conn : tempConns) {
if (conn.getLineStyle().equals(EConnectionType.ON_SUBJOB_ERROR)) {
isSubjobHasOnSubJobError = true;
break;
}
}
}
}
if (!isSubjobHasOnSubJobError && !isExistOnCompErrorLink) { // when there is no subjoberror and no onComponentError
if (isRunInMultiThread ) {
%>
((java.util.Map)threadLocal.get()).put("status", "failure");
<%
} else {
%>
status = "failure";
<%
}
}
// when use parallelize will add virtual components(tAsyncIn and tAsyncOut) but in graphical these is visable=false
if ("true".equals(ElementParameterParser.getValue(node, "__PARALLELIZE__"))) {
for (INode gNode :node.getProcess().getGraphicalNodes()) {
for (INode gNode :node.getProcess().getGeneratingNodes()) {
if (gNode.getUniqueName().equals(node.getUniqueName())) {
if (gNode.getIncomingConnections(EConnectionType.FLOW_MAIN).size()!= 0) {
INode gSourceNode = gNode.getIncomingConnections(EConnectionType.FLOW_MAIN).get(0).getSource();
@@ -510,9 +560,27 @@ private class TalendException extends Exception {
}
}
//end
/*
This part of code has been added in order to call the correct onComponentError and onSubjobError for the specific components (like tWriteXMLField, tWriteJSONField, tMDMOutput, tBRMS, ...).
*/
INode subjob_start_node = node;
boolean hasBeenChanged = true;
while(subjob_start_node.getDesignSubjobStartNode().isVirtualGenerateNode() && hasBeenChanged) {
hasBeenChanged = false;
if(subjob_start_node.getDesignSubjobStartNode().getIncomingConnections(EConnectionType.ON_COMPONENT_OK) != null) {
if(subjob_start_node.getDesignSubjobStartNode().getIncomingConnections(EConnectionType.ON_COMPONENT_OK).size() >0) {
if(subjob_start_node.getDesignSubjobStartNode().getIncomingConnections(EConnectionType.ON_COMPONENT_OK).get(0).getSource().getVirtualLinkTo()==EConnectionType.ON_COMPONENT_OK) {
subjob_start_node = subjob_start_node.getDesignSubjobStartNode().getIncomingConnections(EConnectionType.ON_COMPONENT_OK).get(0).getSource();
hasBeenChanged = true;
}
}
}
}
%>
<%=node.getDesignSubjobStartNode().getUniqueName() %>_onSubJobError(exception, errorComponent, globalMap);
<%=subjob_start_node.getDesignSubjobStartNode().getUniqueName() %>_onSubJobError(exception, errorComponent, globalMap);
}
<%
}
@@ -520,7 +588,7 @@ private class TalendException extends Exception {
for (INode node : processNodes) {
if (node.isDesignSubjobStartNode()) {
%>
public void <%=node.getUniqueName() %>_onSubJobError(Exception exception, String errorComponent, final java.util.Map<String, Object> globalMap) throws TalendException {
public void <%=node.getUniqueName() %>_onSubJobError(java.lang.Exception exception, String errorComponent, final java.util.Map<String, Object> globalMap) throws TalendException {
<%
List< ? extends IConnection> conns = node.getOutgoingConnections();
int count = 0;
@@ -555,18 +623,22 @@ resumeUtil.addLog("SYSTEM_LOG", "NODE:"+ errorComponent, "", Thread.currentThrea
if(isRunInMultiThread ){
%>
((java.util.Map)threadLocal.get()).put("errorCode", null);
((java.util.Map)threadLocal.get()).put("status", "failure");
<%=conn.getTarget().getUniqueName() %>Process(globalMap);
if ( !"failure".equals(((java.util.Map)threadLocal.get()).get("status")) ) {
((java.util.Map)threadLocal.get()).put("status", "end");
}
<%
} else {
%>
errorCode = null;
status = "failure";
<%=conn.getTarget().getUniqueName() %>Process(globalMap);
if (!"failure".equals(status)) {
status = "end";
}
<%
}
%>
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
<%

View File

@@ -115,11 +115,11 @@ import java.util.Comparator;
initUriMap();
}
public void stop() throws Exception {
public void stop() throws java.lang.Exception {
if (stopDelegate != null) stopDelegate.stop();
}
public void shutdown() throws Exception {
public void shutdown() throws java.lang.Exception {
if (stopDelegate != null) stopDelegate.shutdown();
}
@@ -654,7 +654,7 @@ for (IContextParameter ctxParam : params) {
}
%>
Thread.sleep(1000);
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}

View File

@@ -58,7 +58,7 @@ if(execStat){
<%
}
%>
} catch (Exception e) {
} catch (java.lang.Exception e) {
this.status = "failure";
Integer localErrorCode = (Integer) (((java.util.Map) threadLocal.get()).get("errorCode"));
if (localErrorCode != null) {

View File

@@ -200,7 +200,7 @@ if(execStat){
for (IConnection inLineConn : allInLineJobConns) {
%>
if(execStat){
runStat.updateStatOnConnection("<%=inLineConn.getUniqueName() %>", 3, "exec" + NB_ITERATE_<%=iterateNodeName %>);
runStat.updateStatOnConnection("<%=inLineConn.getUniqueName() %>", 3, 0);
}
<%
}

View File

@@ -36,7 +36,7 @@
if(isParallelize){
%>
} catch (Exception e) {
} catch (java.lang.Exception e) {
this.status = "failure";
Integer localErrorCode = (Integer) (((java.util.Map) threadLocal.get()).get("errorCode"));
if (localErrorCode != null) {
@@ -84,7 +84,7 @@
}
} catch (InterruptedException e) {
e.printStackTrace();
} catch (Exception te) {
} catch (java.lang.Exception te) {
throw new TalendException(te, currentComponent, globalMap);
}
<%
@@ -204,7 +204,7 @@
%>
} catch(Exception e) {
} catch(java.lang.Exception e) {
throw new TalendException(e, currentComponent, globalMap);

View File

@@ -73,7 +73,7 @@
//only for the lookup branch of the tJoin
boolean isLookOftJoin = false;
boolean isLookOftRecordMatching = true;
boolean isLookOftRecordMatching = false;
if(conn.getLineStyle().equals(EConnectionType.FLOW_REF)){
IProcess process = conn.getTarget().getProcess();
for (INode tjoinNode : process.getNodesOfType("tJoin")) {
@@ -113,8 +113,8 @@
%>
public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements routines.system.<%= isLookup ? "IPersistableComparableLookupRow<"+conn.getName()+"Struct>" : "IPersistableRow<"+conn.getName()+"Struct"+ templateOrigin + ">" %> {
final static byte[] commonByteArrayLock = new byte[0];
static byte[] commonByteArray = new byte[0];
final static byte[] commonByteArrayLock_<%=codeGenArgument.getCurrentProjectName() %>_<%=codeGenArgument.getJobName() %> = new byte[0];
static byte[] commonByteArray_<%=codeGenArgument.getCurrentProjectName() %>_<%=codeGenArgument.getJobName() %> = new byte[0];
<%
if(hasAtLeastOneKey) {
%>
@@ -134,8 +134,12 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
if (metadata !=null) {
for (IMetadataColumn column: metadata.getListColumns()) {
JavaType javaType = JavaTypesManager.getJavaTypeFromId(column.getTalendType());
String typeToGenerate = JavaTypesManager.getTypeToGenerate(column.getTalendType(), column.isNullable());
if("id_Document".equals(javaType.getId())) {
typeToGenerate = javaType.getNullableClass().getCanonicalName();
}
%>
public <%= JavaTypesManager.getTypeToGenerate(column.getTalendType(), column.isNullable()) %> <%=column.getLabel() %><%
public <%= typeToGenerate %> <%=column.getLabel() %><%
if(javaType == JavaTypesManager.CHARACTER && !column.isNullable()) {
%> = ' '<%
@@ -143,11 +147,11 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
%>;
public <%= JavaTypesManager.getTypeToGenerate(column.getTalendType(), column.isNullable()) %> get<%=column.getLabel().substring(0, 1).toUpperCase()%><%=column.getLabel().substring(1)%> () {
public <%= typeToGenerate %> get<%=column.getLabel().substring(0, 1).toUpperCase()%><%=column.getLabel().substring(1)%> () {
return this.<%=column.getLabel()%>;
}
<%
if("id_Document".equals(javaType.getId())) {
if((conn.getLineStyle() == EConnectionType.FLOW_REF) && conn.getTarget().getUniqueName().startsWith("tXMLMap") && "id_Document".equals(javaType.getId())) {
%>
public java.util.Map<String,Object> documentLookupResult = new java.util.HashMap<String,Object>();
<%
@@ -307,15 +311,15 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
if (length == -1) {
strReturn = null;
} else {
if(length > commonByteArray.length) {
if(length < 1024 && commonByteArray.length == 0) {
commonByteArray = new byte[1024];
if(length > commonByteArray_<%=codeGenArgument.getCurrentProjectName() %>_<%=codeGenArgument.getJobName() %>.length) {
if(length < 1024 && commonByteArray_<%=codeGenArgument.getCurrentProjectName() %>_<%=codeGenArgument.getJobName() %>.length == 0) {
commonByteArray_<%=codeGenArgument.getCurrentProjectName() %>_<%=codeGenArgument.getJobName() %> = new byte[1024];
} else {
commonByteArray = new byte[2 * length];
commonByteArray_<%=codeGenArgument.getCurrentProjectName() %>_<%=codeGenArgument.getJobName() %> = new byte[2 * length];
}
}
dis.readFully(commonByteArray, 0, length);
strReturn = new String(commonByteArray, 0, length, utf8Charset);
dis.readFully(commonByteArray_<%=codeGenArgument.getCurrentProjectName() %>_<%=codeGenArgument.getJobName() %>, 0, length);
strReturn = new String(commonByteArray_<%=codeGenArgument.getCurrentProjectName() %>_<%=codeGenArgument.getJobName() %>, 0, length, utf8Charset);
}
return strReturn;
}
@@ -526,7 +530,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
public void <%= isLookup ? "readKeys" : "read" %>Data(ObjectInputStream dis) {
synchronized(commonByteArrayLock) {
synchronized(commonByteArrayLock_<%=codeGenArgument.getCurrentProjectName() %>_<%=codeGenArgument.getJobName() %>) {
try {
@@ -560,6 +564,9 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
<%
} else if(javaType.isObjectBased() || typeToGenerate.equals("Geometry") || typeToGenerate.equals("Dynamic")) {
hasAtLeastOneObjectType = true;
if("id_Document".equals(javaType.getId())) {
typeToGenerate = javaType.getNullableClass().getCanonicalName();
}
%>
this.<%=column.getLabel() %> = (<%= typeToGenerate %>) dis.readObject();
<%
@@ -733,6 +740,9 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
<%
} else if(typeToGenerate.equals("Object") || typeToGenerate.equals("Geometry") || typeToGenerate.equals("BigDecimal") || typeToGenerate.equals("List") || typeToGenerate.equals("Dynamic") || typeToGenerate.equals("Document")) {
hasAtLeastOneObjectType = true;
if("id_Document".equals(javaType.getId())) {
typeToGenerate = javaType.getNullableClass().getCanonicalName();
}
%>
this.<%=column.getLabel() %> = (<%= typeToGenerate %>) ois.readObject();
<%
@@ -1003,7 +1013,7 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
try {
String currentMethodName = new Exception().getStackTrace()[0].getMethodName();
String currentMethodName = new java.lang.Exception().getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if( resumeEntryMethodName == null || resumeIt || globalResumeTicket){//start the resume
globalResumeTicket = true;

View File

@@ -33,7 +33,7 @@
boolean stat = codeGenArgument.isStatistics();
%>
public org.apache.camel.builder.RouteBuilder Route(final boolean start) throws Exception {
public org.apache.camel.builder.RouteBuilder Route(final boolean start) throws java.lang.Exception {
String iterateId = "";
String currentComponent = "";

View File

@@ -18,6 +18,7 @@ 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.IProcess;
import org.talend.designer.codegen.i18n.Messages;
import org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory;
@@ -118,17 +119,19 @@ public class CodeGeneratorService implements ICodeGeneratorService {
*
* @see org.talend.designer.codegen.ICodeGeneratorService#refreshTemplates()
*/
public void refreshTemplates() {
public Job refreshTemplates() {
// this will force to refresh all components libs when install run ctrl+f3
ILibraryManagerService librairesManagerService = (ILibraryManagerService) GlobalServiceRegister.getDefault().getService(
ILibraryManagerService.class);
librairesManagerService.clearCache();
ComponentCompilations.deleteMarkers();
ComponentsFactoryProvider.getInstance().resetCache();
CodeGeneratorEmittersPoolFactory.initialize();
Job job = CodeGeneratorEmittersPoolFactory.initialize();
CorePlugin.getDefault().getLibrariesService().syncLibraries();
IDesignerCoreService designerCoreService = (IDesignerCoreService) GlobalServiceRegister.getDefault().getService(
IDesignerCoreService.class);
designerCoreService.getLastGeneratedJobsDateMap().clear();
return job;
}
}

View File

@@ -15,6 +15,7 @@ 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;
@@ -39,6 +40,7 @@ public class RefreshTemplatesAction extends Action {
*/
@Override
public void run() {
ComponentCompilations.deleteMarkers();
ComponentsFactoryProvider.getInstance().resetCache();
CodeGeneratorEmittersPoolFactory.initialize();
CorePlugin.getDefault().getLibrariesService().syncLibraries();

View File

@@ -18,6 +18,7 @@ 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;
@@ -68,7 +69,7 @@ import org.talend.core.model.components.IComponentsFactory;
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.utils.BrandingChecker;
import org.talend.core.utils.TalendCacheUtils;
import org.talend.designer.codegen.CodeGeneratorActivator;
import org.talend.designer.codegen.i18n.Messages;
import org.talend.designer.core.ITisLocalProviderService;
@@ -144,7 +145,7 @@ public class ComponentsFactory implements IComponentsFactory {
// 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" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
"tJava", "tLibraryLoad", "tFileInputFullRow", "tSocketOutput", "tFilterRow", "tELTMysqlMap" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
public ComponentsFactory() {
if (!INCLUDEFILEINJET_SUFFIX.equals(".inc.javajet")) { //$NON-NLS-1$
@@ -158,10 +159,10 @@ public class ComponentsFactory implements IComponentsFactory {
Project currentProject = ProjectManager.getInstance().getCurrentProject();
if (currentProject != null && currentProject.getEmfProject() != null) {
List<ComponentSetting> components = (List<ComponentSetting>) currentProject.getEmfProject().getComponentsSettings();
List<ComponentSetting> components = currentProject.getEmfProject().getComponentsSettings();
return components;
}
return null;
return Collections.emptyList();
}
private boolean isComponentVisible(String componentName) {
@@ -230,8 +231,7 @@ public class ComponentsFactory implements IComponentsFactory {
ProjectManager manager = ProjectManager.getInstance();
List<Project> referencedProjects = manager.getReferencedProjects();
for (Project curProject : referencedProjects) {
List<ComponentSetting> componentsSettings = (List<ComponentSetting>) curProject.getEmfProject()
.getComponentsSettings();
List<ComponentSetting> componentsSettings = curProject.getEmfProject().getComponentsSettings();
for (ComponentSetting setting : componentsSettings) {
if (setting.isHidden() && setting.getName().equals(settingInMain.getName())
&& setting.getFamily().equals(settingInMain.getFamily())) {
@@ -261,7 +261,7 @@ public class ComponentsFactory implements IComponentsFactory {
skeletonList = new ArrayList<String>();
String installLocation = new Path(Platform.getConfigurationLocation().getURL().getPath()).toFile().getAbsolutePath();
componentToProviderMap = new HashMap<IComponent, AbstractComponentsProvider>();
boolean isNeedClean = cleanComponentCache();
boolean isNeedClean = TalendCacheUtils.cleanComponentCache();
isCreated = hasComponentFile(installLocation) && !isNeedClean;
if (isReset) {
isCreated = false;
@@ -288,18 +288,22 @@ public class ComponentsFactory implements IComponentsFactory {
XsdValidationCacheManager.getInstance().load();
// 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();
}
// TimeMeasure.step("initComponents", "loadComponentsFromProvider");
if (isCreated) {
try {
reloadComponentsFromCache();
} catch (BusinessException e) {
ExceptionHandler.process(e);
}
}
// 2.Load Component from extension point: component_definition
loadComponentsFromExtensions();
// TimeMeasure.step("initComponents", "loadComponentsFromExtension[joblets?]");
@@ -343,6 +347,7 @@ public class ComponentsFactory implements IComponentsFactory {
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)
@@ -477,11 +482,6 @@ public class ComponentsFactory implements IComponentsFactory {
return file.exists();
}
private boolean cleanComponentCache() {
return ArrayUtils.contains(Platform.getApplicationArgs(), "--clean_component_cache")
|| ArrayUtils.contains(Platform.getApplicationArgs(), "-clean") || BrandingChecker.isBrandingChanged();
}
private void loadComponentsFromComponentsProviderExtension() {
ComponentsProviderManager componentsProviderManager = ComponentsProviderManager.getInstance();
for (AbstractComponentsProvider componentsProvider : componentsProviderManager.getProviders()) {
@@ -512,6 +512,7 @@ public class ComponentsFactory implements IComponentsFactory {
}
}
@Override
public void loadUserComponentsFromComponentsProviderExtension() {
ComponentsProviderManager.getInstance().getProviders();
ComponentsProviderManager componentsProviderManager = ComponentsProviderManager.getInstance();
@@ -582,6 +583,7 @@ public class ComponentsFactory implements IComponentsFactory {
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)
@@ -602,6 +604,7 @@ public class ComponentsFactory implements IComponentsFactory {
FileFilter skeletonFilter = new FileFilter() {
@Override
public boolean accept(final File file) {
String fileName = file.getName();
return file.isFile() && fileName.charAt(0) != '.'
@@ -908,6 +911,7 @@ public class ComponentsFactory implements IComponentsFactory {
component.setImageRegistry(componentsImageRegistry);
}
@Override
public int size() {
if (componentList == null) {
init(false);
@@ -915,6 +919,7 @@ public class ComponentsFactory implements IComponentsFactory {
return componentList.size();
}
@Override
public IComponent get(String name) {
if (componentList == null) {
init(false);
@@ -928,6 +933,7 @@ public class ComponentsFactory implements IComponentsFactory {
return null;
}
@Override
public void initializeComponents(IProgressMonitor monitor) {
this.monitor = monitor;
if (componentList == null) {
@@ -937,6 +943,7 @@ public class ComponentsFactory implements IComponentsFactory {
this.subMonitor = null;
}
@Override
public void initializeComponents(IProgressMonitor monitor, boolean duringLogon) {
this.monitor = monitor;
if (componentList == null) {
@@ -951,6 +958,7 @@ public class ComponentsFactory implements IComponentsFactory {
*
* @see org.talend.core.model.components.IComponentsFactory#getComponents()
*/
@Override
public Set<IComponent> getComponents() {
if (componentList == null) {
init(false);
@@ -958,6 +966,7 @@ public class ComponentsFactory implements IComponentsFactory {
return componentList;
}
@Override
public List<IComponent> getCustomComponents() {
if (customComponentList == null) {
init(false);
@@ -970,6 +979,7 @@ public class ComponentsFactory implements IComponentsFactory {
*
* @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(
@@ -987,6 +997,7 @@ public class ComponentsFactory implements IComponentsFactory {
*
* @see org.talend.core.model.components.IComponentsFactory#getSkeletons()
*/
@Override
public List<String> getSkeletons() {
if (skeletonList == null) {
init(false);
@@ -994,6 +1005,7 @@ public class ComponentsFactory implements IComponentsFactory {
return skeletonList;
}
@Override
public void reset() {
componentsImageRegistry.clear();
componentList = null;
@@ -1003,6 +1015,7 @@ public class ComponentsFactory implements IComponentsFactory {
}
@Override
public void resetCache() {
componentsImageRegistry.clear();
componentList = null;
@@ -1021,6 +1034,7 @@ public class ComponentsFactory implements IComponentsFactory {
* @see org.talend.core.model.components.IComponentsFactory#getFamilyTranslation(IComponent component,
* java.lang.String)
*/
@Override
public String getFamilyTranslation(Object component, String text) {
String translated = Messages.getString(text);
@@ -1051,6 +1065,7 @@ public class ComponentsFactory implements IComponentsFactory {
*
* @see org.talend.core.model.components.IComponentsFactory#getAllComponentsCanBeProvided()
*/
@Override
public Map<String, String> getAllComponentsCanBeProvided() {
List source = new ArrayList();
if (allComponents == null) {
@@ -1075,6 +1090,7 @@ public class ComponentsFactory implements IComponentsFactory {
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);
@@ -1133,14 +1149,17 @@ public class ComponentsFactory implements IComponentsFactory {
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;
}
@@ -1192,10 +1211,12 @@ public class ComponentsFactory implements IComponentsFactory {
*
* @see org.talend.core.model.components.IComponentsFactory#resetSpecificComponents()
*/
@Override
public void resetSpecificComponents() {
loadComponentsFromExtensions();
}
@Override
public Map<String, File> getComponentsProvidersFolder() {
Map<String, File> list = new HashMap<String, File>();
@@ -1212,6 +1233,7 @@ public class ComponentsFactory implements IComponentsFactory {
return list;
}
@Override
public Map<String, ImageDescriptor> getComponentsImageRegistry() {
return componentsImageRegistry;
}

View File

@@ -16,6 +16,8 @@ import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.net.URL;
import java.util.HashSet;
import java.util.Set;
import org.apache.log4j.Logger;
import org.eclipse.core.runtime.FileLocator;
@@ -48,6 +50,7 @@ public class UserComponentsProvider extends AbstractComponentsProvider {
public UserComponentsProvider() {
}
@Override
protected File getExternalComponentsLocation() {
IPreferenceStore prefStore = CodeGeneratorActivator.getDefault().getPreferenceStore();
String path = prefStore.getString(IComponentPreferenceConstant.USER_COMPONENTS_FOLDER);
@@ -75,6 +78,7 @@ public class UserComponentsProvider extends AbstractComponentsProvider {
return path.toString();
}
@Override
public void preComponentsLoad() throws IOException {
File installationFolder = getInstallationFolder();
if (installationFolder.exists()) {
@@ -83,6 +87,7 @@ public class UserComponentsProvider extends AbstractComponentsProvider {
FilesUtils.createFoldersIfNotExists(installationFolder.getAbsolutePath(), false);
FileFilter ff = new FileFilter() {
@Override
public boolean accept(File pathname) {
if (pathname.getName().equals(".svn")) {
return false;
@@ -94,16 +99,21 @@ public class UserComponentsProvider extends AbstractComponentsProvider {
// synchroniz shared custom component
if (PluginChecker.isSVNProviderPluginLoaded()) {
Project currentProject = ProjectManager.getInstance().getCurrentProject();
String projectLabel = currentProject.getTechnicalLabel();
String sourcePath = new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath()
+ File.separatorChar + projectLabel + File.separatorChar
+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.COMPONENTS);
File source = new File(sourcePath);
if (source.exists()) {
for (File file : source.listFiles(ff)) {
FilesUtils.copyFolder(file, new File(installationFolder.getAbsolutePath() + File.separator + file.getName()),
true, ff, null, true, false);
Set<Project> allProjects = new HashSet<Project>();
allProjects.add(ProjectManager.getInstance().getCurrentProject());
allProjects.addAll(ProjectManager.getInstance().getReferencedProjects());
for (Project project : allProjects) {
String projectLabel = project.getTechnicalLabel();
String sourcePath = new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath()
+ File.separatorChar + projectLabel + File.separatorChar
+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.COMPONENTS);
File source = new File(sourcePath);
if (source.exists()) {
for (File file : source.listFiles(ff)) {
FilesUtils.copyFolder(file,
new File(installationFolder.getAbsolutePath() + File.separator + file.getName()), true, ff, null,
true, false);
}
}
}
}

View File

@@ -14,6 +14,7 @@ package org.talend.designer.codegen.config;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.File;
import java.io.InputStream;
import java.lang.reflect.Method;
@@ -25,8 +26,8 @@ import java.util.List;
import java.util.Set;
import java.util.StringTokenizer;
import org.apache.commons.lang.ArrayUtils;
import org.apache.log4j.Logger;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IMarker;
@@ -51,7 +52,6 @@ import org.eclipse.emf.common.util.Monitor;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaModel;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
import org.talend.commons.debug.TalendDebugHandler;
@@ -190,8 +190,11 @@ public class TalendJetEmitter extends JETEmitter {
} else {
project.open(new SubProgressMonitor(progressMonitor, 5));
IProjectDescription description = project.getDescription();
description.setNatureIds(new String[] { JavaCore.NATURE_ID });
project.setDescription(description, new SubProgressMonitor(progressMonitor, 1));
// 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);
@@ -217,18 +220,14 @@ public class TalendJetEmitter extends JETEmitter {
runtimeFolder.create(false, true, new SubProgressMonitor(progressMonitor, 1));
}
if (classpathEntryMissing(javaProject, classpath)) {
if (isClasspathDifferent(javaProject, classpath)) {
IClasspathEntry[] classpathEntryArray = classpath.toArray(new IClasspathEntry[classpath.size()]);
javaProject.setRawClasspath(classpathEntryArray, new SubProgressMonitor(progressMonitor, 1));
}
javaProject.setOutputLocation(new Path("/" + project.getName() + "/runtime"), new SubProgressMonitor( //$NON-NLS-1$ //$NON-NLS-2$
progressMonitor, 1));
if (rebuild) {
javaProject.setOutputLocation(new Path("/" + project.getName() + "/runtime"), new SubProgressMonitor( //$NON-NLS-1$ //$NON-NLS-2$
progressMonitor, 1));
javaProject.getProject().build(IncrementalProjectBuilder.INCREMENTAL_BUILD, new NullProgressMonitor());
}
javaProject.close();
progressMonitor.done();
} catch (CoreException exception) {
throw new JETException(exception);
@@ -239,7 +238,7 @@ public class TalendJetEmitter extends JETEmitter {
}
}
private boolean classpathEntryMissing(IJavaProject javaProject, Set<IClasspathEntry> newClasspath) {
private boolean isClasspathDifferent(IJavaProject javaProject, Set<IClasspathEntry> newClasspath) {
IClasspathEntry[] rawClasspath;
try {
rawClasspath = javaProject.getRawClasspath();
@@ -252,12 +251,19 @@ public class TalendJetEmitter extends JETEmitter {
settedClasspath.add(classpathEntry);
}
// source and target classpath must be the same
for (IClasspathEntry classpathEntry : newClasspath) {
if (!settedClasspath.contains(classpathEntry)) {
return true;
}
}
for (IClasspathEntry classpathEntry : settedClasspath) {
if (!newClasspath.contains(classpathEntry)) {
return true;
}
}
return false;
}
@@ -292,90 +298,107 @@ public class TalendJetEmitter extends JETEmitter {
progressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETOpeningJavaProject_message", //$NON-NLS-1$
new Object[] { project.getName() }));
javaProject.open(new SubProgressMonitor(progressMonitor, 1));
IPackageFragmentRoot[] packageFragmentRoots = javaProject.getPackageFragmentRoots();
IPackageFragmentRoot sourcePackageFragmentRoot = null;
for (int j = 0; j < packageFragmentRoots.length; ++j) {
IPackageFragmentRoot packageFragmentRoot = packageFragmentRoots[j];
if (packageFragmentRoot.getKind() == IPackageFragmentRoot.K_SOURCE) {
sourcePackageFragmentRoot = packageFragmentRoot;
break;
}
}
String packageName = jetCompiler.getSkeleton().getPackageName();
StringTokenizer stringTokenizer = new StringTokenizer(packageName, "."); //$NON-NLS-1$
IProgressMonitor subProgressMonitor = new SubProgressMonitor(progressMonitor, 1);
subProgressMonitor.beginTask("", stringTokenizer.countTokens() + 4); //$NON-NLS-1$
subProgressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_CreateTargetFile_message")); //$NON-NLS-1$
IContainer sourceContainer = (IContainer) sourcePackageFragmentRoot.getCorrespondingResource();
IFolder sourceContainer = project.getFolder("src");
while (stringTokenizer.hasMoreElements()) {
String folderName = stringTokenizer.nextToken();
sourceContainer = sourceContainer.getFolder(new Path(folderName));
if (!sourceContainer.exists()) {
try {
((IFolder) sourceContainer).create(true, true, new SubProgressMonitor(subProgressMonitor, 1));
sourceContainer.create(true, true, new SubProgressMonitor(subProgressMonitor, 1));
} catch (Exception e) {
// e.printStackTrace();
ExceptionHandler.process(e);
}
}
}
boolean needRebuild = true;
IFile targetFile = sourceContainer.getFile(new Path(jetCompiler.getSkeleton().getClassName() + ".java")); //$NON-NLS-1$
if (!targetFile.exists()) {
subProgressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETCreating_message", //$NON-NLS-1$
new Object[] { targetFile.getFullPath() }));
targetFile.create(contents, true, new SubProgressMonitor(subProgressMonitor, 1));
} else {
subProgressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETUpdating_message", //$NON-NLS-1$
new Object[] { targetFile.getFullPath() }));
targetFile.setContents(contents, true, true, new SubProgressMonitor(subProgressMonitor, 1));
}
ByteArrayOutputStream baos = new ByteArrayOutputStream();
subProgressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETBuilding_message", //$NON-NLS-1$
new Object[] { project.getName() }));
project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, new SubProgressMonitor(subProgressMonitor, 1));
DataInputStream dis = new DataInputStream(targetFile.getContents());
int len = 0;
byte[] buf = new byte[1024];
while (((len = dis.read(buf))) != -1) {
baos.write(buf, 0, len);
}
dis.close();
IMarker[] markers = targetFile.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
boolean errors = false;
for (int i = 0; i < markers.length; ++i) {
IMarker marker = markers[i];
if (marker.getAttribute(IMarker.SEVERITY, IMarker.SEVERITY_INFO) == IMarker.SEVERITY_ERROR) {
errors = true;
subProgressMonitor.subTask(marker.getAttribute(IMarker.MESSAGE) + " : " //$NON-NLS-1$
+ (CodeGenPlugin.getPlugin().getString("jet.mark.file.line", new Object[] { //$NON-NLS-1$
targetFile.getLocation(), marker.getAttribute(IMarker.LINE_NUMBER) })));
log.error(jetEmitter.templateURI.substring(jetEmitter.templateURI.lastIndexOf("/") + 1) //$NON-NLS-1$
+ Messages.getString(
"TalendJetEmitter.compileFail", //$NON-NLS-1$
marker.getAttribute(IMarker.MESSAGE),
(CodeGenPlugin.getPlugin().getString("jet.mark.file.line", new Object[] { //$NON-NLS-1$
targetFile.getLocation(), marker.getAttribute(IMarker.LINE_NUMBER) }))));
String currentContent = baos.toString();
String newContent = outputStream.toString();
// since the build is done on linux, if use windows, it will use different rules for \r + \n
// so compare without \r, at least to see if original string is the same
// if yes, consider all is ok, no need to replace the content and recompile
currentContent = currentContent.replace("\r", ""); //$NON-NLS-1$//$NON-NLS-2$
newContent = newContent.replace("\r", ""); //$NON-NLS-1$//$NON-NLS-2$
if (!newContent.equals(currentContent)) {
subProgressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETUpdating_message", //$NON-NLS-1$
new Object[] { targetFile.getFullPath() }));
targetFile.setContents(contents, true, true, new SubProgressMonitor(subProgressMonitor, 1));
} else {
needRebuild = false;
}
}
if (!errors) {
subProgressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETLoadingClass_message", //$NON-NLS-1$
new Object[] { jetCompiler.getSkeleton().getClassName() + ".class" })); //$NON-NLS-1$
// 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) {
subProgressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETBuilding_message", //$NON-NLS-1$
new Object[] { project.getName() }));
// Construct a proper URL for relative lookup.
//
URL url = new File(project.getLocation() + "/" + javaProject.getOutputLocation().removeFirstSegments(1) + "/") //$NON-NLS-1$ //$NON-NLS-2$
.toURL();
URLClassLoader theClassLoader = new URLClassLoader(new URL[] { url }, jetEmitter.classLoader);
Class theClass = theClassLoader.loadClass((packageName.length() == 0 ? "" : packageName + ".") //$NON-NLS-1$ //$NON-NLS-2$
+ jetCompiler.getSkeleton().getClassName());
String methodName = jetCompiler.getSkeleton().getMethodName();
Method[] methods = theClass.getDeclaredMethods();
for (int i = 0; i < methods.length; ++i) {
if (methods[i].getName().equals(methodName)) {
jetEmitter.setMethod(methods[i]);
break;
project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, new SubProgressMonitor(subProgressMonitor, 1));
IMarker[] markers = targetFile.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
boolean errors = false;
for (int i = 0; i < markers.length; ++i) {
IMarker marker = markers[i];
if (marker.getAttribute(IMarker.SEVERITY, IMarker.SEVERITY_INFO) == IMarker.SEVERITY_ERROR) {
errors = true;
subProgressMonitor.subTask(marker.getAttribute(IMarker.MESSAGE) + " : " //$NON-NLS-1$
+ (CodeGenPlugin.getPlugin().getString("jet.mark.file.line", new Object[] { //$NON-NLS-1$
targetFile.getLocation(), marker.getAttribute(IMarker.LINE_NUMBER) })));
log.error(jetEmitter.templateURI.substring(jetEmitter.templateURI.lastIndexOf("/") + 1) //$NON-NLS-1$
+ Messages.getString(
"TalendJetEmitter.compileFail", //$NON-NLS-1$
marker.getAttribute(IMarker.MESSAGE),
(CodeGenPlugin.getPlugin().getString("jet.mark.file.line", new Object[] { //$NON-NLS-1$
targetFile.getLocation(), marker.getAttribute(IMarker.LINE_NUMBER) }))));
}
}
if (!errors) {
subProgressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETLoadingClass_message", //$NON-NLS-1$
new Object[] { jetCompiler.getSkeleton().getClassName() + ".class" })); //$NON-NLS-1$
// Construct a proper URL for relative lookup.
//
URL url = new File(project.getLocation()
+ "/" + javaProject.getOutputLocation().removeFirstSegments(1) + "/") //$NON-NLS-1$ //$NON-NLS-2$
.toURL();
URLClassLoader theClassLoader = new URLClassLoader(new URL[] { url }, jetEmitter.classLoader);
Class theClass = theClassLoader.loadClass((packageName.length() == 0 ? "" : packageName + ".") //$NON-NLS-1$ //$NON-NLS-2$
+ jetCompiler.getSkeleton().getClassName());
String methodName = jetCompiler.getSkeleton().getMethodName();
Method[] methods = theClass.getDeclaredMethods();
for (int i = 0; i < methods.length; ++i) {
if (methods[i].getName().equals(methodName)) {
jetEmitter.setMethod(methods[i]);
break;
}
}
}
}
subProgressMonitor.done();
} catch (CoreException exception) {
TalendDebugHandler.debug(exception);

View File

@@ -48,11 +48,11 @@ import org.talend.commons.exception.BusinessException;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.commons.utils.StringUtils;
import org.talend.commons.utils.io.IOUtils;
import org.talend.commons.utils.time.TimeMeasure;
import org.talend.core.CorePlugin;
import org.talend.core.GlobalServiceRegister;
import org.talend.core.context.Context;
import org.talend.core.context.RepositoryContext;
import org.talend.core.language.ECodeLanguage;
import org.talend.core.language.LanguageManager;
import org.talend.core.model.components.ComponentCompilations;
import org.talend.core.model.components.ComponentUtilities;
import org.talend.core.model.components.IComponent;
@@ -120,7 +120,11 @@ public final class CodeGeneratorEmittersPoolFactory {
public IStatus doRun() {
try {
TimeMeasure.display = CommonsPlugin.isDebugMode();
TimeMeasure.displaySteps = CommonsPlugin.isDebugMode();
TimeMeasure.measureActive = CommonsPlugin.isDebugMode();
TimeMeasure.begin("initialize Jet Emitters");
ComponentsFactoryProvider.saveComponentVisibilityStatus();
jetFilesCompileFail.clear();
@@ -131,9 +135,7 @@ public final class CodeGeneratorEmittersPoolFactory {
} else {
monitorWrap = new NullProgressMonitor();
}
RepositoryContext repositoryContext = (RepositoryContext) CorePlugin.getContext().getProperty(
Context.REPOSITORY_CONTEXT_KEY);
ECodeLanguage codeLanguage = repositoryContext.getProject().getLanguage();
ECodeLanguage codeLanguage = LanguageManager.getCurrentLanguage();
CodeGeneratorInternalTemplatesFactory templatesFactory = CodeGeneratorInternalTemplatesFactoryProvider
.getInstance();
@@ -203,12 +205,15 @@ public final class CodeGeneratorEmittersPoolFactory {
"CodeGeneratorEmittersPoolFactory.componentCompiled", (System.currentTimeMillis() - startTime))); //$NON-NLS-1$
initialized = true;
// remove compilations markers
ComponentCompilations.deleteMarkers();
ComponentCompilations.addMarkers();
initializeStart = false;
} catch (Exception e) {
log.error(Messages.getString("CodeGeneratorEmittersPoolFactory.initialException"), e); //$NON-NLS-1$
TimeMeasure.end("initialize Jet Emitters");
TimeMeasure.display = false;
TimeMeasure.displaySteps = false;
TimeMeasure.measureActive = false;
return new Status(IStatus.ERROR, CodeGeneratorActivator.PLUGIN_ID,
Messages.getString("CodeGeneratorEmittersPoolFactory.initialException"), e); //$NON-NLS-1$
} finally {
@@ -220,6 +225,10 @@ public final class CodeGeneratorEmittersPoolFactory {
ExceptionHandler.process(e);
}
}
TimeMeasure.end("initialize Jet Emitters");
TimeMeasure.display = false;
TimeMeasure.displaySteps = false;
TimeMeasure.measureActive = false;
if (jetFilesCompileFail.size() > 0) {
StringBuilder message = new StringBuilder();
for (JetBean tmpJetBean : jetFilesCompileFail) {
@@ -418,39 +427,13 @@ public final class CodeGeneratorEmittersPoolFactory {
// error already loggued
emitterPool = new HashMap<JetBean, JETEmitter>();
}
} else {
ComponentCompilations.deleteMarkers();
}
// for (JetBean jetBean : components) {
// if (!emitterPool.containsKey(jetBean)) {
// // System.out.println("The new file is not in JetPersistence* cache:" +
// // jetBean.getTemplateFullUri());
// TalendJetEmitter emitter = new TalendJetEmitter(jetBean.getTemplateFullUri(), jetBean.getClassLoader(),
// jetBean
// .getFamily(), jetBean.getClassName(), jetBean.getLanguage(), jetBean.getCodePart(), dummyEmitter
// .getTalendEclipseHelper());
// emitter.initialize(sub);
//
// if (emitter.getMethod() != null) {
// jetBean.setMethod(emitter.getMethod());
// jetBean.setClassName(emitter.getMethod().getDeclaringClass().getName());
// alreadyCompiledEmitters.add(jetBean);
// } else {
// jetFilesCompileFail.add(jetBean);
// }
// emitterPool.put(jetBean, emitter);
// monitorBuffer++;
// if (monitorBuffer % 100 == 0) {
// monitorWrap.worked(100);
// monitorBuffer = 0;
// }
// }
// }
synchronizedComponent(components, sub, alreadyCompiledEmitters, dummyEmitter, monitorBuffer, monitorWrap);
monitorWrap.worked(monitorBuffer);
// } catch (JETException e) {
// log.error(Messages.getString("CodeGeneratorEmittersPoolFactory.jetEmitterInitialException") + e.getMessage(), e); //$NON-NLS-1$
// }
try {
EmfEmittersPersistenceFactory.getInstance(codeLanguage).saveEmittersPool(
extractEmfPersistenData(alreadyCompiledEmitters));
@@ -468,6 +451,8 @@ public final class CodeGeneratorEmittersPoolFactory {
List<JetBean> alreadyCompiledEmitters, TalendJetEmitter dummyEmitter, int monitorBuffer, IProgressMonitor monitorWrap) {
for (JetBean jetBean : components) {
if (!emitterPool.containsKey(jetBean)) {
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(),
@@ -635,11 +620,16 @@ public final class CodeGeneratorEmittersPoolFactory {
} catch (Error e) {
throw new ClassNotFoundException(e.getMessage(), e);
}
Method[] methods = theClass.getDeclaredMethods();
for (int i = 0; i < methods.length; ++i) {
if (methods[i].getName().equals(methodName)) {
return methods[i];
// 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;
}

View File

@@ -0,0 +1 @@
RefreshComponenentsAction.Label=Componentenlijst verversen

View File

@@ -1,6 +1,7 @@
ExchangeView.Exchange=Exchange
AvailableExtensionsComposite.ExtensionName=Nom de l'extension
AvailableExtensionsComposite.Version=Version
AvailableExtensionsComposite.Rating=Note
AvailableExtensionsComposite.Author=Auteur
AvailableExtensionsComposite.ViewDetail.installOperateStatus=Installer
AvailableExtensionsComposite.ViewDetail.WriteReview=Donnez votre avis
@@ -9,16 +10,18 @@ DownloadedExtensionsComposite.DownloadedVersion=Version t
DownloadedExtensionsComposite.DownloadDate=Date de téléchargement
DownloadedExtensionsComposite.installedOperateStatus=Installé
DownloadedExtensionsComposite.updateOperateStatus=Mettre à jour
MyExtensionsComposite.Version=Version
MyExtensionsComposite.UploadDate=Date du chargement
MyExtensionsComposite.AddNewExtensionTitle=Ajouter une nouvelle extension
MyExtensionsComposite.UpLoadNewVersionOperateStatus=Charger une nouvelle version
MyExtensionsComposite.ModifyOperateStatus=Modifier
MyExtensionsComposite.DeleteOperateStatus=Supprimer
MyExtensionsComposite.DeleteOperateStatus=DELETE
MyExtensionsComposite.Form.Return=Retourner
MyExtensionsComposite.Form.ExtensionTitle=Titre de l'extension
MyExtensionsComposite.Form.InitialVersion=Version initiale
MyExtensionsComposite.Form.Compatibility=Compatibilité
MyExtensionsComposite.Form.Compatibility.AllVersions=Toutes les versions
MyExtensionsComposite.Form.Compatibility.Version=Version
MyExtensionsComposite.Form.Compatibility.AllVersionsExcept=Toutes les versions sauf :
MyExtensionsComposite.Form.Compatibility.OnlyTheseVersions=Uniquement ces versions :
MyExtensionsComposite.Form.Description=Description
@@ -43,6 +46,8 @@ DeleteExtensionJob.DeleteExtensionJob.Title=Supprimer une extension...
DeleteExtensionJob.DeleteFailure=Echec de la connexion.
ModifyExtensionJob.Title=Modifier une extension...
ModifyExtensionJob.ModifyFailure=Echec de la modification
InstalledExtensionJob.Title=Installation de l'extension...
InsertionExtensionAction.InstalledFailure=Echec de l'installation
UploadRevisionJob.Title=Chargement de la révision...
UploadRevisionAction.InstalledFailure=Echec du chargement de la révision.
DownloadComponenentsAction.installExchange=Installer les composants Exchange
@@ -74,3 +79,4 @@ ImportExchangeDialog.REFRESH_BUTTON=Rafra
ImportExchangeDialog.REFRESHING_PROGRESSBAR=Rafraîchissement, veuillez patienter..
ImportExchangeDialog.NOT_SELECT_BUTTON=Merci de d'abord sélectionner un choix
ImportExchangeDialog.OPERATION_CANCELLED=L'opération a été annulée
Exchange.logon.error=L'utilisateur de l'Exchange n'est pas enregistré. Enregistrez-vous via les Préférences.

View File

@@ -1 +1,7 @@
DownloadedExtensionsComposite.updateOperateStatus=Update
MyExtensionsComposite.UpdateOperateStatus=Update
MyExtensionsComposite.ModifyOperateStatus=Wijzigen
MyExtensionsComposite.DeleteOperateStatus=Verwijderen
MyExtensionsComposite.Form.Upload.Browse=Blader...
RefreshJob.FindExtensions.Title=Beschikbare extensies zoeken
RefreshJob.FindExtensions.Message=Extensies zoeken op Exchange...

View File

@@ -1,5 +1,4 @@
DownloadedExtensionsComposite.updateOperateStatus=UPDATE
MyExtensionsComposite.UpdateOperateStatus=UPDATE
MyExtensionsComposite.DeleteOperateStatus=DELETE
ImportExchangeDialog.TEMPLATES_BUTTON=SQL \u0161abloni
ImportExchangeDialog.REFRESH_BUTTON=Osve\u017Eavanje

View File

@@ -116,7 +116,7 @@ public class DownloadComponenentsAction extends Action implements IIntroAction {
// Start Code Generation Init
ICodeGeneratorService codeGenService = (ICodeGeneratorService) GlobalServiceRegister.getDefault().getService(
ICodeGeneratorService.class);
Job job = codeGenService.initializeTemplates();
Job job = codeGenService.refreshTemplates();
job.addJobChangeListener(new JobChangeAdapter() {
@Override

View File

@@ -1,6 +1,7 @@
package org.talend.xml.sax;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
@@ -11,12 +12,6 @@ import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.talend.xml.sax.FunctionRegister;
import org.talend.xml.sax.LoopEntry;
import org.talend.xml.sax.SAXLoopCompositeHandler;
import org.talend.xml.sax.SAXLoopHandler;
import org.talend.xml.sax.SAXLoopIterator;
import org.talend.xml.sax.SAXMultiLoopIterator;
import org.talend.xml.sax.commons.ISAXLooper;
import org.talend.xml.sax.function.inter.Function;
import org.talend.xml.sax.io.UnicodeReader;
@@ -142,6 +137,7 @@ public class ComplexSAXLooper implements ISAXLooper {
*/
public void parse(String fileURL, String charset) {
this.charset = charset;
Reader reader = null;
try {
DefaultHandler hd = null;
SAXParser saxParser = null;
@@ -158,9 +154,8 @@ public class ComplexSAXLooper implements ISAXLooper {
hd = newHandler2();
}
saxParser.setProperty("http://xml.org/sax/properties/lexical-handler", hd);
org.xml.sax.InputSource inSource = new org.xml.sax.InputSource(
new UnicodeReader(new java.io.FileInputStream(fileURL),this.charset));
// inSource.setEncoding(this.charset);
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);
} catch (ParserConfigurationException e) {
@@ -169,6 +164,14 @@ public class ComplexSAXLooper implements ISAXLooper {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if(reader!=null) {
try {
reader.close();
} catch(IOException e) {
e.printStackTrace();
}
}
}
}
@@ -179,6 +182,7 @@ public class ComplexSAXLooper implements ISAXLooper {
*/
public void parse(java.io.InputStream is, String charset) {
this.charset = charset;
Reader reader = null;
try {
DefaultHandler hd = null;
SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();
@@ -189,9 +193,9 @@ public class ComplexSAXLooper implements ISAXLooper {
}
saxParser.setProperty("http://xml.org/sax/properties/lexical-handler", hd);
// routines.system.UnicodeReader.java is used to ignore the BOM of the source file.
org.xml.sax.InputSource inSource = new org.xml.sax.InputSource(new UnicodeReader(is,this.charset));
// inSource.setEncoding(this.charset);
saxParser.parse(is, hd);
reader = new UnicodeReader(is,this.charset);
org.xml.sax.InputSource inSource = new org.xml.sax.InputSource(reader);
saxParser.parse(inSource, hd);
} catch (ParserConfigurationException e) {
e.printStackTrace();
@@ -199,6 +203,14 @@ public class ComplexSAXLooper implements ISAXLooper {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if(reader!=null) {
try {
reader.close();
} catch(IOException e) {
e.printStackTrace();
}
}
}
}

View File

@@ -12,6 +12,7 @@
// ============================================================================
package org.talend.xml.sax.simpleparser;
import java.io.Reader;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.Callable;
@@ -113,6 +114,7 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
}
public Object call() throws Exception {
Reader reader = null;
try {
DefaultHandler hd = new SimpleSAXLoopHandler(nodes, bcache);
SAXParser saxParser = null;
@@ -126,17 +128,22 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
saxParser.setProperty("http://xml.org/sax/properties/lexical-handler", hd);
if (fileURL != null) {
// routines.system.UnicodeReader.java is used to ignore the BOM of the source file.
org.xml.sax.InputSource inSource = new org.xml.sax.InputSource(
new UnicodeReader(new java.io.FileInputStream(fileURL),this.charset));
// inSource.setEncoding(this.charset);
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);
} else {
org.xml.sax.InputSource inSource = new org.xml.sax.InputSource(new UnicodeReader(is,this.charset));
// inSource.setEncoding(this.charset);
saxParser.parse(is, hd);
reader = new UnicodeReader(is,this.charset);
org.xml.sax.InputSource inSource = new org.xml.sax.InputSource(reader);
saxParser.parse(inSource, hd);
}
} finally {
bcache.notifyErrorOccurred();
try {
if(reader!=null) {
reader.close();
}
} finally {
bcache.notifyErrorOccurred();
}
}
return null;
}

View File

@@ -35,7 +35,9 @@ public class FileCopy {
public static void copyFile(String srcFileName, String desFileName, boolean delSrc) throws Exception {
FileInputStream srcInputStream = new FileInputStream(srcFileName);
FileInputStream srcInputStream = null;
try{
srcInputStream = new FileInputStream(srcFileName);
long lastModified = new File(srcFileName).lastModified();
int available = srcInputStream.available();
if (available > L_SIZE) {// X > 100M
@@ -47,6 +49,11 @@ public class FileCopy {
}
// keep modification_time
new File(desFileName).setLastModified(lastModified);
}finally{
if(srcInputStream!=null){
srcInputStream.close();
}
}
}
private static void copyFileS(String srcFileName, FileInputStream srcInputStream, String desFileName, boolean delSrc)
@@ -93,8 +100,13 @@ public class FileCopy {
try {
in = srcInputStream.getChannel();
out = new FileOutputStream(dest).getChannel();
in.transferTo(0, in.size(), out);
int maxCount = (32 * 1024 * 1024) - (28 * 1024);
long size = in.size();
long position = 0;
while (position < size) {
position += in.transferTo(position, maxCount, out);
}
in.close();
out.close();

View File

@@ -1,622 +0,0 @@
/*
* Java CSV is a stream based library for reading and writing
* CSV and other delimited data.
*
* Copyright (C) Bruce Dunwiddie bruce@csvreader.com
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
package com.csvreader;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Writer;
import java.nio.charset.Charset;
/**
* A stream based writer for writing delimited text data to a file or a stream.
* So far, it is only used for tMysqlOutputBulk
*/
public class CsvWriter2 {
private PrintWriter outputStream = null;
private String fileName = null;
private boolean firstColumn = true;
private boolean useCustomRecordDelimiter = false;
private Charset charset = null;
// this holds all the values for switches that the user is allowed to set
private UserSettings userSettings = new UserSettings();
private boolean initialized = false;
private boolean closed = false;
private boolean useCRLFRecordDelimiter;
private static final String CRLF = "\r\n";
/**
* Double up the text qualifier to represent an occurance of the text
* qualifier.
*/
public static final int ESCAPE_MODE_DOUBLED = 1;
/**
* Use a backslash character before the text qualifier to represent an
* occurance of the text qualifier.
*/
public static final int ESCAPE_MODE_BACKSLASH = 2;
/**
* Creates a {@link com.csvreader.CsvWriter2 CsvWriter} object using a file
* as the data destination.
*
* @param fileName
* The path to the file to output the data.
* @param delimiter
* The character to use as the column delimiter.
* @param charset
* The {@link java.nio.charset.Charset Charset} to use while
* writing the data.
*/
public CsvWriter2(String fileName, String delimiter, Charset charset) {
if (fileName == null) {
throw new IllegalArgumentException("Parameter fileName can not be null.");
}
if (charset == null) {
throw new IllegalArgumentException("Parameter charset can not be null.");
}
this.fileName = fileName;
userSettings.Delimiter = delimiter;
this.charset = charset;
}
/**
* Creates a {@link com.csvreader.CsvWriter2 CsvWriter} object using a file
* as the data destination.&nbsp;Uses a comma as the column delimiter and
* ISO-8859-1 as the {@link java.nio.charset.Charset Charset}.
*
* @param fileName
* The path to the file to output the data.
*/
public CsvWriter2(String fileName) {
this(fileName, Letters.COMMA, Charset.forName("ISO-8859-1"));
}
/**
* Creates a {@link com.csvreader.CsvWriter2 CsvWriter} object using a Writer
* to write data to.
*
* @param outputStream
* The stream to write the column delimited data to.
* @param delimiter
* The character to use as the column delimiter.
*/
public CsvWriter2(Writer outputStream, String delimiter) {
if (outputStream == null) {
throw new IllegalArgumentException("Parameter outputStream can not be null.");
}
this.outputStream = new PrintWriter(outputStream);
userSettings.Delimiter = delimiter;
initialized = true;
}
/**
* Creates a {@link com.csvreader.CsvWriter2 CsvWriter} object using an
* OutputStream to write data to.
*
* @param outputStream
* The stream to write the column delimited data to.
* @param delimiter
* The character to use as the column delimiter.
* @param charset
* The {@link java.nio.charset.Charset Charset} to use while
* writing the data.
*/
public CsvWriter2(OutputStream outputStream, String delimiter, Charset charset) {
this(new OutputStreamWriter(outputStream, charset), delimiter);
}
/**
* Gets the character being used as the column delimiter.
*
* @return The character being used as the column delimiter.
*/
public String getDelimiter() {
return userSettings.Delimiter;
}
/**
* Sets the character to use as the column delimiter.
*
* @param delimiter
* The character to use as the column delimiter.
*/
public void setDelimiter(String delimiter) {
userSettings.Delimiter = delimiter;
}
public String getRecordDelimiter() {
return userSettings.RecordDelimiter;
}
/**
* Sets the character to use as the record delimiter.
*
* @param recordDelimiter
* The character to use as the record delimiter. Default is
* combination of standard end of line characters for Windows,
* Unix, or Mac.
*/
public void setRecordDelimiter(String recordDelimiter) {
useCustomRecordDelimiter = true;
userSettings.RecordDelimiter = recordDelimiter;
}
/**
* set CRLF(window line separator) as record separator
* for the contexts:Mac or Unix JVM create csv using Window row separator
* @param recordDelimiter
*/
public void useCRLFRecordDelimiter(boolean useCRLFRecordDelimiter) {
this.useCRLFRecordDelimiter = useCRLFRecordDelimiter;
if(useCRLFRecordDelimiter) {
useCustomRecordDelimiter = false;
userSettings.RecordDelimiter = Letters.NULL;
}
}
/**
* Gets the character to use as a text qualifier in the data.
*
* @return The character to use as a text qualifier in the data.
*/
public char getTextQualifier() {
return userSettings.TextQualifier;
}
/**
* Sets the character to use as a text qualifier in the data.
*
* @param textQualifier
* The character to use as a text qualifier in the data.
*/
public void setTextQualifier(char textQualifier) {
userSettings.TextQualifier = textQualifier;
}
/**
* Whether text qualifiers will be used while writing data or not.
*
* @return Whether text qualifiers will be used while writing data or not.
*/
public boolean getUseTextQualifier() {
return userSettings.UseTextQualifier;
}
/**
* Sets whether text qualifiers will be used while writing data or not.
*
* @param useTextQualifier
* Whether to use a text qualifier while writing data or not.
*/
public void setUseTextQualifier(boolean useTextQualifier) {
userSettings.UseTextQualifier = useTextQualifier;
}
public int getEscapeMode() {
return userSettings.EscapeMode;
}
public void setEscapeMode(int escapeMode) {
userSettings.EscapeMode = escapeMode;
}
public void setComment(char comment) {
userSettings.Comment = comment;
}
public char getComment() {
return userSettings.Comment;
}
/**
* Whether fields will be surrounded by the text qualifier even if the
* qualifier is not necessarily needed to escape this field.
*
* @return Whether fields will be forced to be qualified or not.
*/
public boolean getForceQualifier() {
return userSettings.ForceQualifier;
}
/**
* Use this to force all fields to be surrounded by the text qualifier even
* if the qualifier is not necessarily needed to escape this field. Default
* is false.
*
* @param forceQualifier
* Whether to force the fields to be qualified or not.
*/
public void setForceQualifier(boolean forceQualifier) {
userSettings.ForceQualifier = forceQualifier;
}
/**
* Writes another column of data to this record.
*
* @param content
* The data for the new column.
* @param preserveSpaces
* Whether to preserve leading and trailing whitespace in this
* column of data.
* @exception IOException
* Thrown if an error occurs while writing data to the
* destination stream.
*/
public void write(String content, boolean preserveSpaces)
throws IOException {
checkClosed();
checkInit();
if (content == null) {
content = "";
}
if (!firstColumn) {
outputStream.write(userSettings.Delimiter);
}
boolean textQualify = userSettings.ForceQualifier;
if (!preserveSpaces && content.length() > 0) {
content = content.trim();
}
if (!textQualify
&& userSettings.UseTextQualifier
&& (content.indexOf(userSettings.TextQualifier) > -1
|| content.indexOf(userSettings.Delimiter) > -1
|| (!useCustomRecordDelimiter && (content
.indexOf(Letters.LF) > -1 || content
.indexOf(Letters.CR) > -1))
|| (useCustomRecordDelimiter && content
.indexOf(userSettings.RecordDelimiter) > -1)
|| (firstColumn && content.length() > 0 && content
.charAt(0) == userSettings.Comment) ||
// check for empty first column, which if on its own line must
// be qualified or the line will be skipped
(firstColumn && content.length() == 0))) {
textQualify = true;
}
if (userSettings.UseTextQualifier && !textQualify
&& content.length() > 0 && preserveSpaces) {
char firstLetter = content.charAt(0);
if (firstLetter == Letters.SPACE || firstLetter == Letters.TAB) {
textQualify = true;
}
if (!textQualify && content.length() > 1) {
char lastLetter = content.charAt(content.length() - 1);
if (lastLetter == Letters.SPACE || lastLetter == Letters.TAB) {
textQualify = true;
}
}
}
if (textQualify) {
outputStream.write(userSettings.TextQualifier);
if (userSettings.EscapeMode == ESCAPE_MODE_BACKSLASH) {
content = replace(content, "" + Letters.BACKSLASH, ""
+ Letters.BACKSLASH + Letters.BACKSLASH);
content = replace(content, "" + userSettings.TextQualifier, ""
+ Letters.BACKSLASH + userSettings.TextQualifier);
} else {
content = replace(content, "" + userSettings.TextQualifier, ""
+ userSettings.TextQualifier
+ userSettings.TextQualifier);
}
} else if (userSettings.EscapeMode == ESCAPE_MODE_BACKSLASH) {
content = replace(content, "" + Letters.BACKSLASH, ""
+ Letters.BACKSLASH + Letters.BACKSLASH);
content = replace(content, "" + userSettings.Delimiter, ""
+ Letters.BACKSLASH + userSettings.Delimiter);
if (useCustomRecordDelimiter) {
content = replace(content, "" + userSettings.RecordDelimiter,
"" + Letters.BACKSLASH + userSettings.RecordDelimiter);
} else {
content = replace(content, "" + Letters.CR, ""
+ Letters.BACKSLASH + Letters.CR);
content = replace(content, "" + Letters.LF, ""
+ Letters.BACKSLASH + Letters.LF);
}
if (firstColumn && content.length() > 0
&& content.charAt(0) == userSettings.Comment) {
if (content.length() > 1) {
content = "" + Letters.BACKSLASH + userSettings.Comment
+ content.substring(1);
} else {
content = "" + Letters.BACKSLASH + userSettings.Comment;
}
}
}
outputStream.write(content);
if (textQualify) {
outputStream.write(userSettings.TextQualifier);
}
firstColumn = false;
}
/**
* Writes another column of data to this record.&nbsp;Does not preserve
* leading and trailing whitespace in this column of data.
*
* @param content
* The data for the new column.
* @exception IOException
* Thrown if an error occurs while writing data to the
* destination stream.
*/
public void write(String content) throws IOException {
write(content, true);
}
public void writeComment(String commentText) throws IOException {
checkClosed();
checkInit();
outputStream.write(userSettings.Comment);
outputStream.write(commentText);
if (useCustomRecordDelimiter) {
outputStream.write(userSettings.RecordDelimiter);
} else if(useCRLFRecordDelimiter) {
outputStream.print(CRLF);
} else {
outputStream.println();
}
firstColumn = true;
}
/**
* Writes a new record using the passed in array of values.
*
* @param values
* Values to be written.
*
* @param preserveSpaces
* Whether to preserver leading and trailing spaces in columns
* while writing out to the record or not.
*
* @throws IOException
* Thrown if an error occurs while writing data to the
* destination stream.
*/
public void writeRecord(String[] values, boolean preserveSpaces)
throws IOException {
if (values != null && values.length > 0) {
for (int i = 0; i < values.length; i++) {
write(values[i], preserveSpaces);
}
endRecord();
}
}
/**
* Writes a new record using the passed in array of values.
*
* @param values
* Values to be written.
*
* @throws IOException
* Thrown if an error occurs while writing data to the
* destination stream.
*/
public void writeRecord(String[] values) throws IOException {
writeRecord(values, true);
}
/**
* Ends the current record by sending the record delimiter.
*
* @exception IOException
* Thrown if an error occurs while writing data to the
* destination stream.
*/
public void endRecord() throws IOException {
checkClosed();
checkInit();
if (useCustomRecordDelimiter) {
outputStream.write(userSettings.RecordDelimiter);
} else if(useCRLFRecordDelimiter) {
outputStream.print(CRLF);
} else {
outputStream.println();
}
firstColumn = true;
}
/**
*
*/
private void checkInit() throws IOException {
if (!initialized) {
if (fileName != null) {
outputStream = new PrintWriter(new OutputStreamWriter(
new FileOutputStream(fileName), charset));
}
initialized = true;
}
}
/**
* Clears all buffers for the current writer and causes any buffered data to
* be written to the underlying device.
*/
public void flush() {
outputStream.flush();
}
/**
* Closes and releases all related resources.
*/
public void close() {
if (!closed) {
close(true);
closed = true;
}
}
/**
*
*/
private void close(boolean closing) {
if (!closed) {
if (closing) {
charset = null;
}
try {
if (initialized) {
outputStream.close();
}
} catch (Exception e) {
// just eat the exception
}
outputStream = null;
closed = true;
}
}
/**
*
*/
private void checkClosed() throws IOException {
if (closed) {
throw new IOException(
"This instance of the CsvWriter class has already been closed.");
}
}
/**
*
*/
protected void finalize() {
close(false);
}
private class Letters {
public static final char LF = '\n';
public static final char CR = '\r';
public static final char QUOTE = '"';
public static final String COMMA = ",";
public static final char SPACE = ' ';
public static final char TAB = '\t';
public static final char POUND = '#';
public static final char BACKSLASH = '\\';
public static final String NULL = "\0";
}
private class UserSettings {
// having these as publicly accessible members will prevent
// the overhead of the method call that exists on properties
public char TextQualifier;
public boolean UseTextQualifier;
public String Delimiter;
public String RecordDelimiter;
public char Comment;
public int EscapeMode;
public boolean ForceQualifier;
public UserSettings() {
TextQualifier = Letters.QUOTE;
UseTextQualifier = true;
Delimiter = Letters.COMMA;
RecordDelimiter = Letters.NULL;
Comment = Letters.POUND;
EscapeMode = ESCAPE_MODE_DOUBLED;
ForceQualifier = false;
}
}
public static String replace(String original, String pattern, String replace) {
final int len = pattern.length();
int found = original.indexOf(pattern);
if (found > -1) {
StringBuffer sb = new StringBuffer();
int start = 0;
while (found != -1) {
sb.append(original.substring(start, found));
sb.append(replace);
start = found + len;
found = original.indexOf(pattern, start);
}
sb.append(original.substring(start));
return sb.toString();
} else {
return original;
}
}
}

View File

@@ -1,32 +1,55 @@
package org.talend.mdm.bulkload.client;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.net.URL;
import java.util.List;
import java.io.*;
import java.util.concurrent.atomic.AtomicInteger;
public class BulkloadClient {
String url;
String username;
String password;
String universe;
String cluster;
String concept;
String datamodel;
BulkloadOptions options=new BulkloadOptions();
public BulkloadClient(String url, String username,String password,String universe,String cluster,String concept,String datamodel) {
private String url;
private String username;
private String password;
private String universe;
private String cluster;
private String concept;
private String dataModel;
private BulkloadOptions options = new BulkloadOptions();
private static final AtomicInteger startedBulkloadCount = new AtomicInteger(0);
public BulkloadClient(String url, String username, String password, String universe, String cluster, String concept, String dataModel) {
this.url=url;
this.username=username;
this.password=password;
this.universe=universe;
this.cluster=cluster;
this.concept=concept;
this.datamodel=datamodel;
this.dataModel = dataModel;
}
public void startThreadCount(){
// Kept for compatibility with tMDMBulkload.
}
public void waitForEndOfQueue() {
try {
synchronized (startedBulkloadCount) {
while (startedBulkloadCount.get() > 0) {
System.out.println(startedBulkloadCount.get() + " remaining.");
startedBulkloadCount.wait();
}
}
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
public String getUrl() {
return url;
}
@@ -76,11 +99,11 @@ public class BulkloadClient {
}
public String getDatamodel() {
return datamodel;
return dataModel;
}
public void setDatamodel(String datamodel) {
this.datamodel = datamodel;
public void setDatamodel(String dataModel) {
this.dataModel = dataModel;
}
public BulkloadOptions getOptions() {
@@ -90,93 +113,75 @@ public class BulkloadClient {
public void setOptions(BulkloadOptions options) {
this.options = options;
}
public void load(List<String > items) {
doLoad(items);
}
/**
/**
* load from a huge xml string
* @param xmlString
* @param xmlString A full xml document.
* @throws Exception Thrown in case of bulk load error.
*/
public void load(String xmlString)throws Exception {
List<String > items=BulkloadClientUtil.getItemXmls(xmlString);
doLoad(items);
}
private void doLoad(List<String> items) {
if(items.size()>options.getArraySize()) {
int loop=items.size()/options.getArraySize();
int left=items.size()-options.getArraySize()*loop;
for(int i=0; i<loop; i++) {
List<String> subItems=items.subList(i*options.getArraySize(), (i+1)*options.getArraySize());
try {
BulkloadClientUtil.bulkload(url, cluster, concept, datamodel, options.isValidate(), options.isSmartpk(), subItems, username, password,universe);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
if(left>0) {
List<String> subItems=items.subList(loop*options.getArraySize(), loop*options.getArraySize()+left);
try {
BulkloadClientUtil.bulkload(url, cluster, concept, datamodel, options.isValidate(), options.isSmartpk(), subItems, username, password,universe);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}else {
try {
BulkloadClientUtil.bulkload(url, cluster, concept, datamodel, options.isValidate(), options.isSmartpk(), items, username, password,universe);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
/**
* load from File
* @param inputXmlFile
*/
public void load(Reader inputXmlFile) {
BufferedReader reader=null;
try {
reader=new BufferedReader(inputXmlFile);
StringBuffer sb=new StringBuffer();
String line=reader.readLine();
while(line!=null) {
sb=sb.append(line);
line=reader.readLine();
}
List<String > items=BulkloadClientUtil.getItemXmls(sb.toString());
doLoad(items);
}catch(Exception e) {
e.printStackTrace();
}finally {
if(reader!=null)
try {
reader.close();
} catch (IOException e) {
}
}
}
public static void main(String[] args) {
//test
//FileReader reader=new FileReader(file)
URL url=BulkloadClient.class.getResource("test.xml");
try {
BufferedInputStream in=((BufferedInputStream)url.getContent());
byte[] buf=new byte[in.available()];
in.read(buf);
String xml=new String(buf);
BulkloadClient client=new BulkloadClient("http://localhost:8080/datamanager/loadServlet","admin","talend",null,"Order","Country","Order");
client.setOptions(new BulkloadOptions());
client.load(xml);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
public void load(String xmlString) throws Exception {
load(new ByteArrayInputStream(xmlString.getBytes("UTF-8")));
}
/**
* <p>
* Loads XML documents in MDM using an InputStream. All documents should follow each other.
* For instance this InputStream can be used with this method.
* </p>
*
* <code>
* InputStream is = new ByteArrayInputStream("<doc></doc><doc></doc><doc></doc>".getBytes());
* </code>
*
* <p>
* This method blocks until all documents in <code>xmlDocuments</code> are read. For non blocking use cases
* see {@link #load()}.
* </p>
*
* @param xmlDocuments A stream that contains several XML documents.
* @throws Exception Thrown in case of bulk load error
*/
public void load(InputStream xmlDocuments) throws Exception {
BulkloadClientUtil.bulkload(url,
cluster,
concept,
dataModel,
options.isValidate(),
options.isSmartpk(),
xmlDocuments,
username,
password,
universe);
}
/**
* <p>
* Loads XML documents in MDM using an InputStream created for the load. This method creates a {@link Thread} that
* wait for {@link InputStreamMerger#push(java.io.InputStream)} to get called.
* </p>
*
* <code>
* BulkloadClient client = ...<br/>
* InputStreamMerger is = client.load();<br/>
* for(...) {<br/>
* is.push(new ByteArrayInputStream("...".getBytes());<br/>
* }
* </code>
*
* @throws Exception Thrown in case of communication error
* @see InputStreamMerger
* @return A {@link InputStreamMerger} that allow asynchronous push to bulkload client.
*/
public InputStreamMerger load() throws Exception {
return BulkloadClientUtil.bulkload(url,
cluster,
concept,
dataModel,
options.isValidate(),
options.isSmartpk(),
username,
password,
universe,
startedBulkloadCount);
}
}

View File

@@ -1,189 +1,131 @@
package org.talend.mdm.bulkload.client;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import java.io.InputStream;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.commons.httpclient.HostConfiguration;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.commons.httpclient.URI;
import org.apache.commons.httpclient.UsernamePasswordCredentials;
import org.apache.commons.httpclient.auth.AuthScope;
import org.apache.commons.httpclient.methods.PostMethod;
import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.methods.InputStreamRequestEntity;
import org.apache.commons.httpclient.methods.PutMethod;
import org.apache.commons.httpclient.params.HttpClientParams;
import org.apache.commons.httpclient.params.HttpMethodParams;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
/**
* Bulkload amount items client
* @author achen
*
*/
public class BulkloadClientUtil {
/**
* @param args
*/
public static void main(String[] args)throws Exception {
if((!args[0].startsWith("http://") && args.length>0) && (args.length != 9 || args.length!=7 || args.length!=6)) {
usage();
return;
}
String url= args[0];
String username=args[1];
String password=args[2];
String cluster= args[3];
String concept= args[4];
String datamodel= args[5];
boolean validate= false;
boolean smartpk= false;
List<String> itemdata= new ArrayList<String>();
if(args.length==9) {
validate= Boolean.valueOf(args[6]);
smartpk= Boolean.valueOf(args[7]);
itemdata=getItemXmls(args[8]);
}
if(args.length==7) {
itemdata=getItemXmls(args[6]);
}
if(args.length==6) {//get itemdata from System.in
byte[] buf=new byte[System.in.available()];
System.in.read(buf);
itemdata=getItemXmls(new String(buf));
}
try {
bulkload(url,cluster, concept,datamodel, validate, smartpk, itemdata,username,password,null);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static List<String> getItemXmls(String itemdata)throws Exception {
Element root=parse(itemdata).getDocumentElement();
List<String> items=new ArrayList<String>();
for(int i=0; i<root.getChildNodes().getLength(); i++) {
Node node=root.getChildNodes().item(i);
if(node.getNodeType() == Node.ELEMENT_NODE) {
items.add(nodeToString(node, true));
}
}
return items;
}
private static String nodeToString(Node n, boolean omitXMLDeclaration) throws TransformerException{
StringWriter sw = new StringWriter();
Transformer transformer = TransformerFactory.newInstance().newTransformer();
if (omitXMLDeclaration)
transformer.setOutputProperty("omit-xml-declaration","yes");
else
transformer.setOutputProperty("omit-xml-declaration","no");
transformer.setOutputProperty("indent","yes");
transformer.transform(
new DOMSource(n),
new StreamResult(sw)
);
if (sw==null) return null;
return sw.toString().replaceAll("\r\n", "\n");
}
private static Document parse(String xmlString) throws ParserConfigurationException,IOException, SAXException{
//parse
Document d=null;
public static void bulkload(String url, String cluster, String concept, String datamodel, boolean validate, boolean smartpk, InputStream itemdata,
String username, String password, String universe) throws Exception {
HostConfiguration config = new HostConfiguration();
URI uri = new URI(url, false, "UTF-8"); //$NON-NLS-1$
config.setHost(uri);
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
//Schema validation based on schemaURL
factory.setNamespaceAware(true);
factory.setAttribute(
"http://java.sun.com/xml/jaxp/properties/schemaLanguage",
"http://www.w3.org/2001/XMLSchema");
DocumentBuilder builder;
builder = factory.newDocumentBuilder();
NameValuePair[] parameters = {new NameValuePair("cluster", cluster), //$NON-NLS-1$
new NameValuePair("concept", concept), //$NON-NLS-1$
new NameValuePair("datamodel", datamodel), //$NON-NLS-1$
new NameValuePair("validate", String.valueOf(validate)), //$NON-NLS-1$
new NameValuePair("action", "load"), //$NON-NLS-1$ //$NON-NLS-2$
new NameValuePair("smartpk", String.valueOf(smartpk))}; //$NON-NLS-1$
d = builder.parse(new InputSource(new StringReader(xmlString)));
HttpClient client = new HttpClient();
String user = universe == null || universe.trim().length() == 0 ? username : universe + "/" + username; //$NON-NLS-1$
client.getState().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(user, password));
HttpClientParams clientParams = client.getParams();
clientParams.setAuthenticationPreemptive(true);
clientParams.setCookiePolicy(CookiePolicy.IGNORE_COOKIES);
return d;
}
private static void usage() {
String usage="Usage:\n"+
"\t java -jar bulkloadclient.jar <url> <username> <password> <datacontainer> <concept> <datamodel> [validate] [smartpk] [itemdata] \n"+
"\t example1: java -jar bulkloadclient.jar http://localhost:8080/datamanager/loadServlet admin talend Order Country Order <itemdata><Country><isoCode>zh</isoCode><label>china</label><Continent>Asia</Continent></Country></itemdata>"+
"\t example2(on linux): cat myfile.xml|java -jar bulkloadclient.jar http://localhost:8080/datamanager/loadServlet admin talend Order Country Order";
System.out.println(usage);
}
public static boolean bulkload(String URL, String cluster,String concept,String datamodel, boolean validate, boolean smartpk, List<String> itemdata,
String username, String password,String universe) throws Exception {
HttpClient client = new HttpClient();
HttpClientParams params = new HttpClientParams();
// params.setSoTimeout(1000);
// params.setConnectionManagerTimeout(200);
client.setParams(params);
String user=universe==null||universe.trim().length()==0?username:universe+"/"+username;
client.getState().setCredentials(AuthScope.ANY,
new UsernamePasswordCredentials(user, password));
PutMethod putMethod = new PutMethod();
// This setPath call is *really* important (if not set, request will be sent to the JBoss root '/')
putMethod.setPath(url);
String responseBody;
try {
// Configuration
putMethod.setRequestHeader("Content-Type", "text/xml; charset=utf8"); //$NON-NLS-1$ //$NON-NLS-2$
putMethod.setQueryString(parameters);
putMethod.setContentChunked(true);
// Set the content of the PUT request
putMethod.setRequestEntity(new InputStreamRequestEntity(itemdata));
URI uri = new URI(URL, false, "utf-8");
HostConfiguration config = new HostConfiguration();
config.setHost(uri);
client.executeMethod(config, putMethod);
responseBody = putMethod.getResponseBodyAsString();
} catch (Exception e) {
throw new RuntimeException(e);
} finally {
putMethod.releaseConnection();
}
PostMethod postMethod = new PostMethod(URL);
HttpMethodParams reqParams = postMethod.getParams();
reqParams.setContentCharset("UTF-8");
List<NameValuePair> list=new ArrayList<NameValuePair>();
NameValuePair[] data = { new NameValuePair("cluster", cluster),
new NameValuePair("concept", concept),
new NameValuePair("datamodel", datamodel),
new NameValuePair("validate", String.valueOf(validate)),
new NameValuePair("smartpk", String.valueOf(smartpk))};
list.addAll(Arrays.asList(data));
for(int i=0; i<itemdata.size(); i++) {
list.add(new NameValuePair("itemdata"+i, itemdata.get(i)));
}
postMethod.setRequestBody((NameValuePair[])list.toArray(new NameValuePair[list.size()]));
// post method
int statusCode = 0;
try {
statusCode = client.executeMethod(config,postMethod);
} catch (HttpException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
int statusCode = putMethod.getStatusCode();
if (statusCode >= 400) {
throw new BulkloadException(responseBody);
}
}
if (statusCode >= 400)
return false;
String str = "";
try {
str = postMethod.getResponseBodyAsString();
} catch (IOException e) {
public static InputStreamMerger bulkload(String url, String cluster, String concept, String dataModel, boolean validate, boolean smartPK, String username, String password, String universe, AtomicInteger startedBulkloadCount) {
InputStreamMerger merger = new InputStreamMerger();
}
System.out.println(str);
Runnable loadRunnable = new AsyncLoadRunnable(url, cluster, concept, dataModel, validate, smartPK, merger, username, password, universe, startedBulkloadCount);
Thread loadThread = new Thread(loadRunnable);
loadThread.start();
postMethod.releaseConnection();
return true;
}
return merger;
}
private static class AsyncLoadRunnable implements Runnable {
private final String url;
private final String cluster;
private final String concept;
private final String dataModel;
private final boolean validate;
private final boolean smartPK;
private final InputStreamMerger inputStream;
private final String userName;
private final String password;
private final String universe;
private final AtomicInteger startedBulkloadCount;
public AsyncLoadRunnable(String url, String cluster, String concept, String dataModel, boolean validate, boolean smartPK, InputStreamMerger inputStream, String userName, String password, String universe, AtomicInteger startedBulkloadCount) {
this.url = url;
this.cluster = cluster;
this.concept = concept;
this.dataModel = dataModel;
this.validate = validate;
this.smartPK = smartPK;
this.inputStream = inputStream;
this.userName = userName;
this.password = password;
this.universe = universe;
this.startedBulkloadCount = startedBulkloadCount;
}
public void run() {
try {
startedBulkloadCount.incrementAndGet();
bulkload(url, cluster, concept, dataModel, validate, smartPK, inputStream, userName, password, universe);
} catch (Throwable e) {
inputStream.reportFailure(e);
} finally {
startedBulkloadCount.decrementAndGet();
synchronized (startedBulkloadCount) {
startedBulkloadCount.notifyAll();
}
}
}
}
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright (C) 2006-2012 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.mdm.bulkload.client;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
*
*/
public class BulkloadException extends RuntimeException {
private static final String SERVER_EXCEPTION_SEPARATOR = "== SERVER EXCEPTION ==";
private static final String LINE_SEPARATOR = System.getProperty("line.separator"); //$NON-NLS-1$
private final String serverException;
public BulkloadException(String serverException) {
super("An exception happened during bulk load on MDM server.");
this.serverException = serverException;
}
public String getServerException() {
return serverException;
}
@Override
public void printStackTrace(PrintStream s) {
super.printStackTrace(s);
s.append(LINE_SEPARATOR);
s.append(SERVER_EXCEPTION_SEPARATOR);
s.append(LINE_SEPARATOR);
s.append(serverException);
}
@Override
public void printStackTrace(PrintWriter s) {
super.printStackTrace(s);
s.println(SERVER_EXCEPTION_SEPARATOR);
s.println(serverException);
}
}

View File

@@ -0,0 +1,191 @@
/*
* Copyright (C) 2006-2012 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.mdm.bulkload.client;
import java.io.IOException;
import java.io.InputStream;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
*/
public class InputStreamMerger extends InputStream {
private static final Logger log = Logger.getLogger(InputStreamMerger.class.getName());
private final Queue<InputStream> inputStreamBuffer = new ConcurrentLinkedQueue<InputStream>();
private final Object readLock = new Object();
private final Object exhaustLock = new Object();
private boolean isClosed;
private InputStream currentStream;
private boolean hasFinishedRead;
private Throwable lastFailure;
public void push(InputStream inputStream) throws IOException {
if (inputStream == null) {
throw new IllegalArgumentException("Input stream can not be null.");
}
if (isClosed) {
throw new IOException("Stream is closed");
}
inputStreamBuffer.add(inputStream);
debug("Added a new input stream (buffer now has " + inputStreamBuffer.size() + " streams)");
}
public void reportFailure(Throwable e) {
debug("Exception occurred in consumer thread: " + e.getMessage());
lastFailure = e;
synchronized (exhaustLock) {
exhaustLock.notifyAll();
}
}
@Override
public int available() throws IOException {
return 4096;
}
@Override
public boolean markSupported() {
return false;
}
/**
* <p> Read block the current thread until data is pushed to this stream (using {@link #push(java.io.InputStream)}
* or if {@link #close()} is called. </p>
*
* @return the next byte of data, or <code>-1</code> if the end of the stream is reached <b>or</b> if stream is
* closed.
* @throws IOException
* @see java.io.InputStream#read()
*/
@Override
public int read() throws IOException {
int read = -1;
if (currentStream != null) {
read = currentStream.read();
} else {
moveToNextInputStream();
if (currentStream != null) {
read = currentStream.read();
}
}
if (read < 0) {
moveToNextInputStream();
if (currentStream != null) {
read = currentStream.read();
}
}
if (read < 0) {
synchronized (exhaustLock) {
debug("Notify exhaust lock");
exhaustLock.notifyAll();
}
}
// Throw any exception that might have occurred during last record processing.
throwLastFailure();
return read;
}
private void throwLastFailure() throws IOException {
if (lastFailure != null) {
debug("Report last failure exception to producer.");
throw new IOException("An exception occurred while processing last record.", lastFailure);
}
}
private void moveToNextInputStream() throws IOException {
// Throw any exception that might have occurred during previous records
throwLastFailure();
// Check the isClosed flag in case we've got waken up by a close()
while (inputStreamBuffer.isEmpty() && !isClosed) {
synchronized (readLock) {
try {
debug("Wait for more input...");
readLock.wait();
debug("Wait for more input done.");
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
}
if (!inputStreamBuffer.isEmpty()) {
if (currentStream != null) {
currentStream.close();
}
currentStream = inputStreamBuffer.poll();
} else {
currentStream = null;
hasFinishedRead = true;
}
debug("Remaining buffers : " + inputStreamBuffer.size());
}
/**
* <p> Close this stream and perform some checks: <ul> <li>Mark this stream as closed (no more calls to {@link
* #push(java.io.InputStream)} are allowed)</li> <li>Closes any remaining stream pushed to this stream</li> </ul>
* </p> <p> Calling this method wakes up any thread blocked on {@link #read()} </p> <p> Wait till all streams pushed
* to this stream (and stored in <code>inputStreamBuffer</code>) are processed by a reader. </p> <p> When this
* method exits, the buffer is empty and the last stream in buffer is fully read (i.e. until read() returns -1).
* </p>
*
* @throws IOException In case at least one stream in buffer hasn't been read.
* @see java.io.InputStream#close()
*/
@Override
public void close() throws IOException {
super.close();
isClosed = true;
synchronized (readLock) {
readLock.notifyAll();
}
debug("Input stream buffer size: " + +inputStreamBuffer.size());
debug("Has finished read: " + hasFinishedRead);
debug("Stop condition: " + (!inputStreamBuffer.isEmpty() && !hasFinishedRead));
while (!inputStreamBuffer.isEmpty() && !hasFinishedRead) {
try {
debug("Waiting for exhaust... (" + inputStreamBuffer.size() + " remaining)");
synchronized (exhaustLock) {
exhaustLock.wait();
}
// In case we got woken up due to a failure
throwLastFailure();
debug("Waiting for exhaust done.");
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
// In case failure happened on very last read.
throwLastFailure();
debug("Close completed.");
}
private static void debug(String message) {
Level debugLevel = Level.FINEST;
if (log.isLoggable(debugLevel)) {
log.log(debugLevel, "[" + Thread.currentThread() + "] " + message);
}
}
public Throwable getLastReportedFailure() {
return lastFailure;
}
}

View File

@@ -1,37 +1,331 @@
// Message.java
// ------------------------------------------------------------------
//
// Copyright (c) 2006-2010 Dino Chiesa.
// All rights reserved.
//
// This code module is part of MsmqJava, a JNI library that provides
// access to MSMQ for Java on Windows.
//
// ------------------------------------------------------------------
//
// This code is licensed under the Microsoft Public License.
// See the file License.txt for the license details.
// More info on: http://dotnetzip.codeplex.com
//
// ------------------------------------------------------------------
//
// last saved (in emacs):
// Time-stamp: <2010-March-28 15:17:56>
//
// ------------------------------------------------------------------
//
// This module represents a Message object.
//
// ------------------------------------------------------------------
package ionic.Msmq;
public class Message {
String _message ;
/**
* <p>The Message class models a message that is sent to or receive from an
* MSMQ queue. It exposes several properties that are known to MSMQ,
* including the message label, the message correlationId, and the
* message body.</p>
*
* <p>The maximum size for an MSMQ 4.0 message is slightly less than 4
* MB. If you try to send a message that exceeds the maximum size, you
* will receive a MessageQueueException, with hr =
* MQ_ERROR_INSUFFICIENT_RESOURCES (0xC00E0027).</p>
*
*/
public class Message {
private static String _encoding = "UTF-16LE";
private static String _utf8 = "UTF-8";
byte[] _messageBody ;
String _label ;
String _correlationId ;
int _transactionFlag;
// int _status;
byte[] _correlationId ; // up to PROPID_M_CORRELATIONID_SIZE bytes
boolean _highPriority;
public void setMessage(String value) { _message= value; }
public String getMessage() { return _message; }
public void setLabel(String value) { _label= value; }
public String getLabel() { return _label; }
/**
* <p>Sets the message body, as a string.</p>
*
* <p>The string will be encoded as UTF-16LE, with no byte-order-mark.
* This information may be useful if you use different libraries on the
* the receiving and sending side. </p>
*
* @param value the string to use for the Message body
* @see #setBody(byte[])
*/
public void setBodyAsString(String value)
throws java.io.UnsupportedEncodingException
{ _messageBody= value.getBytes(_encoding); }
public void setCorrelationId(String value) {_correlationId= value;}
public String getCorrelationId() {return _correlationId; }
public void setTransactionFlag(int value) { _transactionFlag= value;}
public int getTransactionFlag() {return _transactionFlag;}
/**
* <p>Gets the message body, as a string.</p>
*
* <p>The string will be decoded as UTF-16LE, with no byte-order-mark.
* This is mostly useful after receiving a message. </p>
*
* <p>If the message body is not a legal UTF-16LE bytestream, then this
* method will return a rubbish string.</p>
*
* @return the message body, as a string.
* @see #getBody()
*/
public String getBodyAsString()
throws java.io.UnsupportedEncodingException
{ return new String(_messageBody, _encoding); }
// public int getStatus() {return _status;}
public Message(String message, String label, String correlationId, int transactionFlag) {
_message=message;
_label= label;
_correlationId= correlationId;
_transactionFlag= transactionFlag;
/**
* <p>Sets the correlation Id on the message. </p>
*
* <p>MSMQ specifies that the ID should be a byte array, of 20 bytes
* in length. But callers can use this convenience method to use a
* string as a correlationId. It will be encoded as UTF-8, and
* limited to 20 bytes.</p>
*
* @param value the string to use as the correlation ID on the message.
*/
public void setCorrelationIdAsString(String value)
throws java.io.UnsupportedEncodingException
{ _correlationId= value.getBytes(_utf8); }
/**
* <p>Gets the correlation Id on the message, in the form of a string. </p>
*
* <p>The behavior is undefined if the correlation ID is not a
* UTF-8 bytestream.</p>
*
* @return the correlation ID on the message, as a string.
*/
public String getCorrelationIdAsString()
throws java.io.UnsupportedEncodingException
{ return new String(_correlationId, _utf8); }
/**
* Sets the message body.
*
* @param value the byte array to use for the Message body
* @see #getBody()
* @see #setBodyAsString(String)
*/
public void setBody(byte[] value) { _messageBody= value; }
/**
* Gets the message body.
*
* @return the message body, as a byte array.
*/
public byte[] getBody() { return _messageBody; }
/**
* Sets the message label.
*
* @param value the string to use as the label on the message.
*/
public void setLabel(String value) { _label= value; }
/**
* Gets the message body.
*
* @return the message label.
*/
public String getLabel() { return _label; }
/**
* <p>Sets the correlation Id on the message. </p>
*
* <p> The ID should be a byte array, a maximum of 20 bytes.</p>
*
* @param value the byte array to use as the correlation ID on the
* message.
*/
public void setCorrelationId(byte[] value) { _correlationId= value; }
/**
* <p>Gets the correlation Id on the message. </p>
*
* <p>The ID will be a byte array, of length 20.</p>
*
* @return the correlation ID on the message.
*/
public byte[] getCorrelationId() { return _correlationId; }
/**
* Sets whether the message should be trated as high priority or not.
*
* @param value true if the message should be delivered with high
* priority.
*/
public void setHighPriority(boolean value) { _highPriority= value; }
/**
* <p>Gets whether the message will be treated with high priority.</p>
*
* <p>This only makes sense for outgoing messages.</p>
*
* @return true if the message will be trated with high priority.
*/
public boolean getHighPriority() { return _highPriority; }
Message() { }
/**
* <p>Creates a Message instance, using a string argument for the
* contents of the body, and empty values for the label and
* correlation ID.</p>
*
* @param body the string to use for the Message body
*/
public Message(String body)
throws java.io.UnsupportedEncodingException
{
this(body, "", "");
}
// public Message(String message, String label, String correlationId, int transactionFlag, int status) {
// _message=message;
// _label= label;
// _correlationId= correlationId;
// _transactionFlag= transactionFlag;
// _status= status;
// }
}
/**
* <p>Creates a Message instance, using string arguments for the
* contents.</p>
*
* <p>A Message contains byte array data in the body and correlation
* Id. This constructor allows the specification of those items as
* strings. The actual values of the body and correlation Id are
* set to the encoded form of the strings, using UTF-16LE for
* encoding. </p>
*
* <p>If you use ASCII strings for the body and correlationId,
* the encoding will be very inefficient. Each character in the input
* will result in two bytes in output, one of which will be a zero.
* Therefore, if you're concerned about efficiency, consider encoding
* strings separately, before creating the Message instance. </p>
*
*
* @param body the string to use for the Message body.
* @param label the string to use for the Message label. The maximum
* length of a message label is 250 bytes.
* @param correlationId the string to use for the Message correlation Id
*/
public Message(String body, String label, String correlationId)
throws java.io.UnsupportedEncodingException
{
this(body.getBytes(Message._encoding),
label,
correlationId.getBytes(Message._encoding));
}
/**
* <p>Creates a Message instance, using a string for the
* body and label, and a byte array for the correlation ID.</p>
*
* <p>A Message contains byte array data in the body and correlation
* Id. This constructor allows the specification of the body as a
* string, and the correlation Id as a byte array. The actual value
* of the body will be set to the encoded form of the body string,
* using UTF-16LE. </p>
*
* <p>Only the first 20 bytes of the correlationId will be used.</p>
*
* @param body the string to use for the Message body
* @param label the string to use for the Message label
* @param correlationId the byte array to use for the Message correlation Id
*
*/
public Message(String body, String label, byte[] correlationId)
throws java.io.UnsupportedEncodingException
{
this(body.getBytes(_encoding),
label,
correlationId);
}
/**
* <p>Creates a Message instance, using a byte array for the
* message body, and empty values for the label and correlation ID.</p>
*
* <p>A Message contains byte array data in the body and
* correlation Id. This constructor allows the specification of the
* body as a byte array. The label and correlation ID of the
* Message are set to empty values. </p>
*
* @param body the string to use for the Message body
*
*/
public Message(byte[] body)
throws java.io.UnsupportedEncodingException
{
this(body, "", "");
}
/**
* <p>Creates a Message instance, using a byte array for the
* body, and a string for the label and correlation ID.</p>
*
* <p>A Message contains byte array data in the body and correlation
* Id. This constructor allows the specification of the body as a
* byte array, and the correlation Id as a string. The actual value
* of the correlation Id will be the encoded form of the body
* string, using UTF-16LE. </p>
*
* <p>Only the first 20 bytes of the correlationId will be used.</p>
*
* @param body the string to use for the Message body
* @param label the string to use for the Message label
* @param correlationId the byte array to use for the Message correlation Id
*
*/
public Message(byte[] body, String label, String correlationId)
throws java.io.UnsupportedEncodingException
{
this(body,
label,
correlationId.getBytes(_encoding));
}
/**
* <p>Creates a Message instance, using a byte array for the
* body the correlation ID, and a string for the label.</p>
*
* <p>A Message contains byte array data in the body and correlation
* Id. This constructor allows the specification of the body and
* correlation ID as byte arrays. Applications may wish to use this
* constructor when close control of the contents of the message is
* desired. </p>
*
* <p>Only the first 20 bytes of the correlationId will be used.</p>
*
* @param body the string to use for the Message body
* @param label the string to use for the Message label
* @param correlationId the byte array to use for the Message correlation Id
*
*/
public Message(byte[] body, String label, byte[] correlationId)
{
_messageBody = body;
_label= label;
_correlationId= correlationId;
}
}

View File

@@ -1,63 +1,113 @@
package ionic.Msmq ;
//
// MessageQueueException.java
// ------------------------------------------------------------------
//
// Copyright (c) 2006-2010 Dino Chiesa.
// All rights reserved.
//
// This code module is part of MsmqJava, a JNI library that provides
// access to MSMQ for Java on Windows.
//
// ------------------------------------------------------------------
//
// This code is licensed under the Microsoft Public License.
// See the file License.txt for the license details.
// More info on: http://dotnetzip.codeplex.com
//
// ------------------------------------------------------------------
//
// last saved (in emacs):
// Time-stamp: <2010-March-28 15:50:20>
//
// ------------------------------------------------------------------
//
// This class models an exception that may occur when interacting with
// MSMQ through the JNI library.
//
// ------------------------------------------------------------------
package ionic.Msmq ;
/**
* An exception type to wrap any problems that occur during MSMQ operations.
*
**/
public class MessageQueueException extends java.lang.Exception {
public int hresult;
public int hresult;
public MessageQueueException(int HRESULT) {
super();
hresult= HRESULT;
}
public MessageQueueException(int HRESULT) {
super();
hresult= HRESULT;
}
public MessageQueueException(String message, int HRESULT) {
super(message);
hresult= HRESULT;
}
public MessageQueueException(String message, int HRESULT) {
super(message);
hresult= HRESULT;
}
public String toString() {
String msg = getLocalizedMessage();
String hr= "hr=" + HrToString(hresult) ;
return msg + " (" + hr + ")";
}
/**
* <p>Produce the string version for the given exception, including the
* string mnemonic for the HR wrapped by the exception.</p>
*
* <p>Example:</p>
*
* <blockquote class='code'><pre>
* try {
* String label="testmessage";
* String body= "....";
* Message msg= new Message(body, label, null);
* queue.send(msg);
* }
* catch (MessageQueueException ex1) {
* System.out.println("Put failure: " + ex1.toString());
* }
* </pre></blockquote>
*
*/
public String toString() {
String msg = getLocalizedMessage();
String hr= "hr=" + HrToString(hresult) ;
return msg + " (" + hr + ")";
}
// --------------------------------------------
public static String HrToString(int hr) {
if (hr== 0)
return "SUCCESS";
if (hr==0xC00E0002)
return "MQ_ERROR_PROPERTY";
if (hr== 0xC00E0003)
return "MQ_ERROR_QUEUE_NOT_FOUND";
if (hr==0xC00E0005)
return "MQ_ERROR_QUEUE_EXISTS";
if (hr==0xC00E0006)
return "MQ_ERROR_INVALID_PARAMETER";
if (hr==0xC00E0007)
return "MQ_ERROR_INVALID_HANDLE";
if (hr==0xC00E005A)
return "MQ_ERROR_QUEUE_DELETED";
if (hr==0xC00E000B)
return "MQ_ERROR_SERVICE_NOT_AVAILABLE";
if (hr==0xC00E001B)
return "MQ_ERROR_IO_TIMEOUT";
if (hr==0xC00E001E)
return "MQ_ERROR_ILLEGAL_FORMATNAME";
if (hr== 0xC00E0025)
return "MQ_ERROR_ACCESS_DENIED";
if (hr==0xC00E0013)
return "MQ_ERROR_NO_DS";
if (hr==0xC00E003F)
return "MQ_ERROR_INSUFFICIENT_PROPERTIES";
if (hr==0xC00E0014)
return "MQ_ERROR_ILLEGAL_QUEUE_PATHNAME";
if (hr==0xC00E0044)
return "MQ_ERROR_INVALID_OWNER";
if (hr==0xC00E0045)
return "MQ_ERROR_UNSUPPORTED_ACCESS_MODE";
if (hr== 0xC00E0069)
return "MQ_ERROR_REMOTE_MACHINE_NOT_AVAILABLE";
private static String HrToString(int hr) {
if (hr== 0)
return "SUCCESS";
if (hr==0xC00E0002)
return "MQ_ERROR_PROPERTY";
if (hr== 0xC00E0003)
return "MQ_ERROR_QUEUE_NOT_FOUND";
if (hr==0xC00E0005)
return "MQ_ERROR_QUEUE_EXISTS";
if (hr==0xC00E0006)
return "MQ_ERROR_INVALID_PARAMETER";
if (hr==0xC00E0007)
return "MQ_ERROR_INVALID_HANDLE";
if (hr==0xC00E005A)
return "MQ_ERROR_QUEUE_DELETED";
if (hr==0xC00E000B)
return "MQ_ERROR_SERVICE_NOT_AVAILABLE";
if (hr==0xC00E001B)
return "MQ_ERROR_IO_TIMEOUT";
if (hr==0xC00E001E)
return "MQ_ERROR_ILLEGAL_FORMATNAME";
if (hr== 0xC00E0025)
return "MQ_ERROR_ACCESS_DENIED";
if (hr==0xC00E0013)
return "MQ_ERROR_NO_DS";
if (hr==0xC00E003F)
return "MQ_ERROR_INSUFFICIENT_PROPERTIES";
if (hr==0xC00E0014)
return "MQ_ERROR_ILLEGAL_QUEUE_PATHNAME";
if (hr==0xC00E0044)
return "MQ_ERROR_INVALID_OWNER";
if (hr==0xC00E0045)
return "MQ_ERROR_UNSUPPORTED_ACCESS_MODE";
if (hr== 0xC00E0069)
return "MQ_ERROR_REMOTE_MACHINE_NOT_AVAILABLE";
return "unknown hr (" + hr + ")";
}
return "unknown hr (" + hr + ")";
}
}

View File

@@ -1,184 +1,463 @@
//
// Queue.java
// ------------------------------------------------------------------
//
// Copyright (c) 2006-2010 Dino Chiesa.
// All rights reserved.
//
// This code module is part of MsmqJava, a JNI library that provides
// access to MSMQ for Java on Windows.
//
// ------------------------------------------------------------------
//
// This code is licensed under the Microsoft Public License.
// See the file License.txt for the license details.
// More info on: http://dotnetzip.codeplex.com
//
// ------------------------------------------------------------------
//
// last saved (in emacs):
// Time-stamp: <2010-March-28 15:51:58>
//
// ------------------------------------------------------------------
//
// This module provides the Java Queue object, representing an MSMQ Queue.
//
// ------------------------------------------------------------------
package ionic.Msmq;
public class Queue {
public Queue(String queueName) throws MessageQueueException {
_init(queueName, 0x03); // open with both SEND and RECEIVE access
/**
* The Queue class represents a message queue in MSMQ.
*
* <p>
*
* Applications can instantiate a Queue, then perform send and receive
* operations on the queue, using instances of the Message type.
*
* </p>
* <p>
*
* Queue also exposes several static methods for Queue management, to
* support creation and deletion of message queues.
* </p>
*
*/
public class Queue
{
/**
* <p>
* The Queue.Access enum provides options for access to the MSMQ
* Queue: Either Receive, Send, or both. Specify this when opening a
* queue.
* </p>
*
* <p>
*
* Applications may wish to open queues for only the access they
* need, in order to save resources and memory.
* </p>
*
*/
public enum Access
{
/**
* The queue will be accessible for Receive or READ (or GET)
* operations.
*
**/
RECEIVE(1),
/**
* The queue will be accessible for Send or WRITE (or PUT)
* operations.
*
**/
SEND(2),
/**
* The queue will be accessible for both Send ad Receive
* operations.
*
**/
SEND_AND_RECEIVE(3);
int _accessFlag;
Access(int value)
{
_accessFlag = value;
}
int getValue() { return _accessFlag; }
}
public Queue(String queueName, int access) throws MessageQueueException {
_init(queueName, access);
/**
* <p>Call this constructor to open a queue by name for SEND and
* RECEIVE operations.</p>
*
* <p>Here's an example of how to use it, to send a simple message:</p>
*
* <blockquote class='code'><pre>
* Queue queue= new Queue(fullname);
* String body = "Hello, World!";
* String label = "Greeting";
* String correlationId= "L:none";
* Message msg= new Message(body, label, correlationId);
* queue.send(msg);
* </pre></blockquote>
*
**/
public Queue(String queueName)
throws MessageQueueException
{
_init(queueName, 0x03); // open with both SEND and RECEIVE access
}
void _init(String queueName, int access) throws MessageQueueException {
/**
* Call this constructor to open a queue with the specified access
*
**/
public Queue(String queueName, Queue.Access access)
throws MessageQueueException
{
_init(queueName, access.getValue());
}
private void _init(String queueName, int access)
throws MessageQueueException
{
// the openQueue native method causes the _queueSlot to be set.
int rc = 0;
if (access == 0x01) // RECEIVE
{
rc = nativeOpenQueueForReceive(queueName);
} else if (access == 0x02) // SEND
{
rc = nativeOpenQueueForSend(queueName);
} else if (access == 0x03) // SEND+RECEIVE
{
rc = nativeOpenQueue(queueName);
} else {
rc = 0xC00E0006; /* MQ_INVALID_PARAMETER */
rc= nativeOpenQueueForReceive(queueName);
}
else if (access == 0x02) // SEND
{
rc= nativeOpenQueueForSend(queueName);
}
else if (access == 0x03) // SEND+RECEIVE
{
rc= nativeOpenQueue(queueName);
}
else { rc= 0xC00E0006; /* MQ_INVALID_PARAMETER */ }
if (rc != 0)
throw new MessageQueueException("Cannot open queue.", rc);
if (rc!=0) throw new MessageQueueException("Cannot open queue.", rc);
_name = queueName;
_formatName = "unknown";
_label = "need to set this";
_isTransactional = false; // TODO: get actual value in "openQueue"
_name= queueName;
_formatName= "unknown";
_label= "need to set this";
_isTransactional= false; // TODO: get actual value in "openQueue"
}
public static Queue create(String queuePath, String queueLabel, boolean isTransactional) throws MessageQueueException {
int rc = nativeCreateQueue(queuePath, queueLabel, (isTransactional) ? 1 : 0);
if (rc != 0)
throw new MessageQueueException("Cannot create queue.", rc);
// DIRECT=OS ? or DIRECT=TCP ?
String a1 = "OS";
char[] c = queuePath.toCharArray();
if ((c[0] >= '1') && (c[0] <= '9'))
a1 = "TCP"; // assume ip address
Queue q = new Queue("DIRECT=" + a1 + ":" + queuePath);
q._name = queuePath;
// q._formatName=queueFormatName;
q._label = queueLabel;
q._isTransactional = isTransactional;
/**
* <p>
* Create a queue by name, with the given queue label and transactional access.
* </p>
*
* <p>Example:</p>
*
* <blockquote class='code'><pre>
* String fullname= ".\\private$\\" + qname;
* String qLabel="Created by " + this.getClass().getName() + ".java";
* boolean transactional= false; // should the queue be transactional
* queue= Queue.create(fullname, qLabel, transactional);
* </pre></blockquote>
**/
public static Queue create(String queuePath, String queueLabel, boolean isTransactional)
throws MessageQueueException
{
int rc= nativeCreateQueue( queuePath, queueLabel, (isTransactional)?1:0);
if (rc!=0)
throw new MessageQueueException("Cannot create queue.", rc);
// DIRECT=OS ? or DIRECT=TCP ?
String a1= "OS";
char[] c= queuePath.toCharArray();
if ((c[0]>='1')
&& (c[0]<='9')) a1= "TCP"; // assume ip address
Queue q= new Queue("DIRECT=" + a1 + ":" + queuePath);
q._name= queuePath;
// q._formatName=queueFormatName;
q._label=queueLabel;
q._isTransactional= isTransactional;
return q;
}
public static void delete(String queuePath) throws MessageQueueException {
int rc = nativeDeleteQueue(queuePath);
if (rc != 0)
throw new MessageQueueException("Cannot delete queue.", rc);
/**
* Delete a queue by the given name.
*
**/
public static void delete(String queuePath)
throws MessageQueueException
{
int rc= nativeDeleteQueue( queuePath );
if (rc!=0)
throw new MessageQueueException("Cannot delete queue.", rc);
}
public void send(Message msg) throws MessageQueueException {
int rc = nativeSend(msg.getMessage(), msg.getMessage().length(), msg.getLabel(), msg.getCorrelationId(), msg
.getTransactionFlag());
if (rc != 0)
// -------------------------------------------------------
// Sending methods
// -------------------------------------------------------
/**
* Send a Message, with the given transaction type, and with the
* given setting for high priority.
**/
public void send(Message msg, boolean highPriority, TransactionType t)
throws MessageQueueException
{
int rc= nativeSendBytes(msg.getBody(),
msg.getLabel(),
msg.getCorrelationId(),
t.getValue(),
highPriority
);
if (rc!=0)
throw new MessageQueueException("Cannot send.", rc);
}
public void send(String s) throws MessageQueueException {
int rc = nativeSend(s, s.length(), "", // empty label
"", // empty correlationId
0 // outside any transaction
);
if (rc != 0)
/**
* Send a Message, with the given transaction type.
*
**/
public void send(Message msg, TransactionType t)
throws MessageQueueException
{
send(msg, false, t);
}
/**
* Send a Message, with the given value for high priority.
*
**/
public void send(Message msg, boolean highPriority)
throws MessageQueueException
{
send(msg, highPriority, TransactionType.None);
}
/**
* Send a Message on the queue.
*
**/
public void send(Message msg)
throws MessageQueueException
{
send(msg, false, TransactionType.None);
}
/**
* Send a string as a Message, using UTF-8 encoding.
* The label used will be blank, and the correlationId
* will be null (none).
*
**/
public void send(String s)
throws MessageQueueException, java.io.UnsupportedEncodingException
{
int rc= nativeSendBytes(s.getBytes("UTF-8"), // bytes of string
"", // empty label
null, // empty correlationId
0, // outside any transaction
false // false = not high priority
);
if (rc!=0)
throw new MessageQueueException("Cannot send.", rc);
}
// TODO: add sendMessage() methods for other types: byte[]? object?
private ionic.Msmq.Message receiveEx(int timeout, int ReadOrPeek) throws MessageQueueException {
int rc = nativeReceive(128, timeout, ReadOrPeek);
/**
* Send a byte array as a Message.
* The label used will be blank, and the correlationId
* will be null (none).
*
**/
public void send(byte[] b)
throws MessageQueueException
{
int rc= nativeSendBytes(b,
"", // empty label
null, // empty correlationId
0, // outside any transaction
false // false = not high priority
);
if (rc!=0)
throw new MessageQueueException("Cannot send.", rc);
}
if (rc != 0)
// -------------------------------------------------------
// Receiving methods
// -------------------------------------------------------
private ionic.Msmq.Message _internal_receive(int timeout, int ReadOrPeek)
throws MessageQueueException
{
Message msg = new Message();
int rc = nativeReceiveBytes(msg, timeout, ReadOrPeek);
//int rc = nativeReceiveBytes(timeout, ReadOrPeek);
if (rc!=0)
throw new MessageQueueException("Cannot receive.", rc);
return new Message(_lastMessageRetrieved_MessageString, _lastMessageRetrieved_MessageLabel,
_lastMessageRetrieved_CorrelationId, 0);
return msg;
}
public ionic.Msmq.Message receive(int timeout) throws MessageQueueException {
return receiveEx(timeout, 1);
/**
* Poll the queue to receive one message, with the given timeout.
*
* <p>
*
* If the timeout expires before a message becomes available,
* the method will throw an exception.
**/
public ionic.Msmq.Message receive(int timeout)
throws MessageQueueException
{
return _internal_receive(timeout, 1);
}
public ionic.Msmq.Message receive() throws MessageQueueException {
return receiveEx(0, 1); // infinite timeout
/**
* Poll the queue to receive one message, with an infinite timeout.
*
**/
public ionic.Msmq.Message receive()
throws MessageQueueException
{
return _internal_receive(0,1); // infinite timeout
}
public ionic.Msmq.Message peek() throws MessageQueueException {
return receiveEx(0, 0); // infinite timeout
/**
* Peek at the queue and return a message without dequeueing it.
*
**/
public ionic.Msmq.Message peek()
throws MessageQueueException
{
return _internal_receive(0,0); // infinite timeout
}
public ionic.Msmq.Message peek(int timeout) throws MessageQueueException {
return receiveEx(timeout, 0);
/**
* Peek at the queue and return a message without dequeueing it,
*
* <p>
*
* If the timeout expires before a message becomes available,
* the method will throw an exception.
**/
public ionic.Msmq.Message peek(int timeout)
throws MessageQueueException
{
return _internal_receive(timeout,0);
}
public void close() throws MessageQueueException {
int rc = nativeClose();
if (rc != 0)
/**
* Close the queue.
*
**/
public void close()
throws MessageQueueException
{
int rc=nativeClose();
if (rc!=0)
throw new MessageQueueException("Cannot close.", rc);
}
// --------------------------------------------
// getters on the Queue properties
public String getName() {
return _name;
}
public String getLabel() {
return _label;
}
public String getFormatName() {
return _formatName;
}
/**
* Gets the name of the queue.
*
* @return the name of the queue.
*/
public String getName(){ return _name; }
/**
* Gets the label on the queue.
*
* @return the label on the queue.
*/
public String getLabel(){ return _label; }
/**
* Gets the formatname on the queue.
*
* @return the formatname of the queue.
*/
public String getFormatName(){ return _formatName; }
/**
* Gets the transactional setting for the queue.
*
* @return the transactional setting for the queue.
*/
public boolean isTransactional(){ return _isTransactional; }
public boolean isTransactional() {
return _isTransactional;
}
// --------------------------------------------
// native methods
private static native int nativeInit();
private static native int nativeCreateQueue(String queuePath, String queueLabel, int isTransactional);
private static native int nativeDeleteQueue(String queuePath);
private native int nativeOpenQueue(String queueString);
private native int nativeOpenQueueForSend(String queueString);
private native int nativeOpenQueueForReceive(String queueString);
private native int nativeReceive(int length, int timeout, int ReadOrPeek);
private native int nativeSend(String messageString, int length, String label, String correlationString, int transactionFlag);
private native int nativeSend(String messageString, int length, String label, String correlationId, int transactionFlag);
//private native int nativeReceiveBytes(int timeout, int ReadOrPeek);
private native int nativeReceiveBytes(Message msg, int timeout, int ReadOrPeek);
private native int nativeSendBytes(byte [] messageBytes, String label, byte[] correlationId, int tflag, boolean priority );
private native int nativeClose();
// --------------------------------------------
// private members
int _queueSlot = 0;
int _queueSlot = 0;
String _name;
String _formatName;
String _label;
boolean _isTransactional;
String _lastMessageRetrieved_MessageString;
String _lastMessageRetrieved_MessageLabel;
String _lastMessageRetrieved_CorrelationId;
// --------------------------------------------
// static initializer
static {
// System.loadLibrary("JNIMSMQ");
loadLib();
//System.loadLibrary("MsmqJava");
loadLib();
nativeInit();
}
/* Try extracting and loading library from jar */
private static void loadLib() {
String dllName = "JNIMSMQ.dll";
String dllName = "MsmqJava.dll";
String TMP_HOME = System.getProperty("java.io.tmpdir");
// TMP_HOME = "d:";
String SEPARATOR = System.getProperty("file.separator");

View File

@@ -0,0 +1,93 @@
//
// TransactionType.java
// ------------------------------------------------------------------
//
// Copyright (c) 2006-2010 Dino Chiesa.
// All rights reserved.
//
// This code module is part of MsmqJava, a JNI library that provides
// access to MSMQ for Java on Windows.
//
// ------------------------------------------------------------------
//
// This code is licensed under the Microsoft Public License.
// See the file License.txt for the license details.
// More info on: http://dotnetzip.codeplex.com
//
// ------------------------------------------------------------------
//
// last saved (in emacs):
// Time-stamp: <2010-March-28 15:43:23>
//
// ------------------------------------------------------------------
//
// This module provides the various transaction types for MQ.
//
// ------------------------------------------------------------------
package ionic.Msmq;
/**
* Specifies the transaction type to use when enqueuing messages into a
* transactional queue.
*
*/
public enum TransactionType {
// transactionFlag:
// MQ_NO_TRANSACTION,
// MQ_MTS_TRANSACTION,
// MQ_XA_TRANSACTION, or
// MQ_SINGLE_MESSAGE
// see mq.h for details...
/**
* <p>Specifies that the call is not part of a transaction. This
* transaction type cannot be used to send a message to a transactional
* queue.</p>
*
* <p>Equivalent to MSMQ's MQ_NO_TRANSACTION.</p>
*
*/
None(0),
/**
* <p>If the application is
* running in the context of a COM+ (Component Services)
* transaction, the message is sent within the current COM+
* transaction. Otherwise, the message is sent outside of a
* transaction.</p>
*
* <p>Equivalent to MSMQ's MQ_MTS_TRANSACTION.</p>
*
*/
MTS(1),
/**
* Specifies that the call is part of an externally coordinated,
* XA-compliant transaction.
*
*/
XA(2),
/**
* Specifies that the message is sent in a single-message
* transaction. Messages sent in a single-message transaction must
* be sent to a transactional queue.
*
* <p>Equivalent to MSMQ's MQ_SINGLE_MESSAGE.</p>
*
*/
SINGLE_MESSAGE(3);
int _transactionFlag;
TransactionType(int value)
{
_transactionFlag = value;
}
public int getValue() { return _transactionFlag; }
}

View File

@@ -1,170 +0,0 @@
package org.talend.msmq;
public class CharacterSetToolkit {
public static void main(String[] args)
{
String str = "abc";
str = toUnicode(str, false);
System.out.println(str);
str ="\u4F60\u597D";
str = fromUnicode(str);
System.out.println(str);
}
public CharacterSetToolkit() {
}
private static final char[] hexDigit = {
'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'
};
private static char toHex(int nibble) {
return hexDigit[(nibble & 0xF)];
}
/*
* Converts unicodes to encoded &#92;uxxxx and escapes
* special characters with a preceding slash
*/
public static String toUnicode(String theString, boolean escapeSpace) {
int len = theString.length();
int bufLen = len * 2;
if (bufLen < 0) {
bufLen = Integer.MAX_VALUE;
}
StringBuffer outBuffer = new StringBuffer(bufLen);
for(int x=0; x<len; x++) {
char aChar = theString.charAt(x);
// Handle common case first, selecting largest block that
// avoids the specials below
if ((aChar > 61) && (aChar < 127)) {
if (aChar == '\\') {
outBuffer.append('\\'); outBuffer.append('\\');
continue;
}
outBuffer.append(aChar);
continue;
}
switch(aChar) {
case ' ':
if (x == 0 || escapeSpace)
outBuffer.append('\\');
outBuffer.append(' ');
break;
case '\t':outBuffer.append('\\'); outBuffer.append('t');
break;
case '\n':outBuffer.append('\\'); outBuffer.append('n');
break;
case '\r':outBuffer.append('\\'); outBuffer.append('r');
break;
case '\f':outBuffer.append('\\'); outBuffer.append('f');
break;
case '=': // Fall through
case ':': // Fall through
case '#': // Fall through
case '!':
outBuffer.append('\\'); outBuffer.append(aChar);
break;
default:
if ((aChar < 0x0020) || (aChar > 0x007e)) {
outBuffer.append('\\');
outBuffer.append('u');
outBuffer.append(toHex((aChar >> 12) & 0xF));
outBuffer.append(toHex((aChar >> 8) & 0xF));
outBuffer.append(toHex((aChar >> 4) & 0xF));
outBuffer.append(toHex( aChar & 0xF));
} else {
outBuffer.append(aChar);
}
}
}
return outBuffer.toString();
}
public static String fromUnicode(String str) {
return fromUnicode(str.toCharArray(), 0, str.length(), new char[1024]);
}
/*
* Converts encoded &#92;uxxxx to unicode chars
* and changes special saved chars to their original forms
*/
public static String fromUnicode(char[] in, int off, int len, char[] convtBuf) {
if (convtBuf.length < len) {
int newLen = len * 2;
if (newLen < 0) {
newLen = Integer.MAX_VALUE;
}
convtBuf = new char[newLen];
}
char aChar;
char[] out = convtBuf;
int outLen = 0;
int end = off + len;
while (off < end) {
aChar = in[off++];
if (aChar == '\\') {
aChar = in[off++];
if (aChar == 'u') {
// Read the xxxx
int value = 0;
for (int i = 0; i < 4; i++) {
aChar = in[off++];
switch (aChar) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
value = (value << 4) + aChar - '0';
break;
case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
value = (value << 4) + 10 + aChar - 'a';
break;
case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
value = (value << 4) + 10 + aChar - 'A';
break;
default:
throw new IllegalArgumentException(
"Malformed \\uxxxx encoding.");
}
}
out[outLen++] = (char) value;
} else {
if (aChar == 't') {
aChar = '\t';
} else if (aChar == 'r') {
aChar = '\r';
} else if (aChar == 'n') {
aChar = '\n';
} else if (aChar == 'f') {
aChar = '\f';
}
out[outLen++] = aChar;
}
} else {
out[outLen++] = (char) aChar;
}
}
return new String(out, 0, outLen);
}
}

View File

@@ -1,8 +1,11 @@
package org.talend.msmq;
import java.io.UnsupportedEncodingException;
import ionic.Msmq.Message;
import ionic.Msmq.MessageQueueException;
import ionic.Msmq.Queue;
import ionic.Msmq.TransactionType;
public class MsmqUtil {
@@ -35,7 +38,7 @@ public class MsmqUtil {
msgu.setQueue("ytao4");
msgu.createIfNotExists(true);
msgu.open();
String str = "ÊǵÄabc";
String str = "<EFBFBD>ǵ<EFBFBD>abc";
// str = CharacterSetToolkit.toUnicode(str, true);
// System.out.println(str);
msgu.setMsg(str);
@@ -54,11 +57,13 @@ public class MsmqUtil {
checkOpen();
System.out.println("peek");
Message msg = msmqHandle.peek(2000); // timeout= 2000 ms
System.out.println(" ==> message: " + msg.getMessage());
System.out.println(" ==> message: " + msg.getBodyAsString());
System.out.println(" label: " + msg.getLabel());
} catch (MessageQueueException ex1) {
System.out.println("Peek failure: " + ex1);
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
}
// close an open queue
@@ -109,11 +114,13 @@ public class MsmqUtil {
int transactionFlag = 0; // 0 = NO TRANSACTION, 1= MTS, 2= XA, 3= SINGLE_MESSAGE
String mLabel = "inserted by " + this.getClass().getName() + ".java";
String correlationID = "L:none";
Message msg = new Message(msgContent, mLabel, correlationID, transactionFlag);
Message msg = new Message(msgContent, mLabel, correlationID);
msmqHandle.send(msg);
} catch (MessageQueueException ex1) {
System.out.println("Send failure: " + ex1);
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
}
public String receive() {
@@ -123,10 +130,12 @@ public class MsmqUtil {
Message msg = msmqHandle.receive(2000); // timeout= 2000 ms
// System.out.println(" ==> message: " + msg.getMessage());
// System.out.println(" label: " + msg.getLabel());
return CharacterSetToolkit.fromUnicode(msg.getMessage());
return msg.getBodyAsString();
} catch (MessageQueueException ex1) {
System.out.println("Receive failure: " + ex1);
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return null;
}
@@ -175,7 +184,7 @@ public class MsmqUtil {
}
public void setMsg(String msg) {
this.msgContent = CharacterSetToolkit.toUnicode(msg, true);
this.msgContent = msg;
}
public void createIfNotExists(boolean bool) {

View File

@@ -6,7 +6,9 @@ import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Authenticator;
import java.net.InetSocketAddress;
import java.net.PasswordAuthentication;
import java.net.Proxy;
import java.net.SocketAddress;
import java.util.ArrayList;
@@ -143,22 +145,30 @@ public class SalesforceBulkAPI {
private void setProxyToConnection(ConnectorConfig conn) {
Proxy socketProxy = null;
if (!useProxy) {
proxyHost = System.getProperty("http.proxyHost");
if (proxyHost != null && System.getProperty("http.proxyPort") != null) {
proxyPort = Integer.parseInt(System.getProperty("http.proxyPort"));
proxyUsername = System.getProperty("http.proxyUser");
proxyPassword = System.getProperty("http.proxyPassword");
proxyHost = System.getProperty("https.proxyHost");
if (proxyHost != null && System.getProperty("https.proxyPort") != null) {
proxyPort = Integer.parseInt(System.getProperty("https.proxyPort"));
proxyUsername = System.getProperty("https.proxyUser");
proxyPassword = System.getProperty("https.proxyPassword");
useProxy = true;
} else {
proxyHost = System.getProperty("socksProxyHost");
if (proxyHost != null && System.getProperty("socksProxyPort") != null) {
proxyPort = Integer.parseInt(System.getProperty("socksProxyPort"));
proxyUsername = System.getProperty("java.net.socks.username");
proxyPassword = System.getProperty("java.net.socks.password");
proxyHost = System.getProperty("http.proxyHost");
if (proxyHost != null && System.getProperty("http.proxyPort") != null) {
proxyPort = Integer.parseInt(System.getProperty("http.proxyPort"));
proxyUsername = System.getProperty("http.proxyUser");
proxyPassword = System.getProperty("http.proxyPassword");
useProxy = true;
} else {
proxyHost = System.getProperty("socksProxyHost");
if (proxyHost != null && System.getProperty("socksProxyPort") != null) {
proxyPort = Integer.parseInt(System.getProperty("socksProxyPort"));
proxyUsername = System.getProperty("java.net.socks.username");
proxyPassword = System.getProperty("java.net.socks.password");
useProxy = true;
SocketAddress addr = new InetSocketAddress(proxyHost, proxyPort);
socketProxy = new Proxy(Proxy.Type.SOCKS, addr);
SocketAddress addr = new InetSocketAddress(proxyHost, proxyPort);
socketProxy = new Proxy(Proxy.Type.SOCKS, addr);
}
}
}
}
@@ -170,9 +180,22 @@ public class SalesforceBulkAPI {
}
if (proxyUsername != null && !"".equals(proxyUsername)) {
conn.setProxyUsername(proxyUsername);
}
if (proxyPassword != null && !"".equals(proxyPassword)) {
conn.setProxyPassword(proxyPassword);
if (proxyPassword != null && !"".equals(proxyPassword)) {
conn.setProxyPassword(proxyPassword);
Authenticator.setDefault(new Authenticator() {
@Override
public PasswordAuthentication getPasswordAuthentication() {
if (getRequestorType() == Authenticator.RequestorType.PROXY) {
return new PasswordAuthentication(proxyUsername, proxyPassword.toCharArray());
} else {
return super.getPasswordAuthentication();
}
}
});
}
}
}
}
@@ -220,6 +243,22 @@ public class SalesforceBulkAPI {
// System.out.println(job);
return job;
}
private int countQuotes(String value){
if (value == null || "".equals(value)) {
return 0;
} else {
char c = '\"';
int num = 0;
char[] chars = value.toCharArray();
for (int i = 0; i < chars.length; i++) {
if (c == chars[i]) {
num++;
}
}
return num;
}
}
private List<BatchInfo> createBatchesFromCSVFile() throws IOException, AsyncApiException {
List<BatchInfo> batchInfos = new ArrayList<BatchInfo>();
@@ -234,7 +273,25 @@ public class SalesforceBulkAPI {
int currentBytes = 0;
int currentLines = 0;
String nextLine;
boolean needStart=true;
boolean needEnds=true;
while ((nextLine = rdr.readLine()) != null) {
int num=countQuotes(nextLine);
//nextLine is header or footer of the record
if (num % 2 == 1) {
if (!needStart) {
needEnds = false;
} else {
needStart = false;
}
} else {
//nextLine is a whole record or middle of the record
if (needEnds && needStart) {
needEnds = false;
needStart = false;
}
}
byte[] bytes = (nextLine + "\n").getBytes("UTF-8");
// Create a new batch when our batch size limit is reached
@@ -251,7 +308,11 @@ public class SalesforceBulkAPI {
}
tmpOut.write(bytes);
currentBytes += bytes.length;
currentLines++;
if(!needStart && !needEnds){
currentLines++;
needStart=true;
needEnds=true;
}
}
// Finished processing all rows
// Create a final batch for any remaining data

View File

@@ -1412,8 +1412,7 @@ public class MktowsApiSoapBindingStub extends org.apache.axis.client.Stub implem
public void addMarketoAuthenticatioNHeader(org.apache.axis.client.Call _call) throws Exception {
// Request timestamp: a timestamp string in W3C WSDL date format
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm");
String requestTimestamp = df.format(Calendar.getInstance().getTime());
String requestTimestamp = formatAsW3C(Calendar.getInstance().getTime());
// System.out.println(requestTimestamp);
String stringToEncrypt = requestTimestamp + clientAccessID;
@@ -1435,6 +1434,13 @@ public class MktowsApiSoapBindingStub extends org.apache.axis.client.Stub implem
// System.out.println(authenticationHeader.getAsString());
_call.addHeader(authenticationHeader);
}
public String formatAsW3C(java.util.Date dt) {
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
String text = df.format(dt);
String w3cValue = text.substring(0, 22) + ":" + text.substring(22);
return w3cValue;
}
public com.marketo.www.mktows.SuccessGetLeadActivity getLeadActivity(com.marketo.www.mktows.ParamsGetLeadActivity paramsGetLeadActivity) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {

View File

@@ -15,7 +15,7 @@
<pathelement location="${component.plugin.home}/tFileInputXML/dom4j-1.6.1.jar" />
<pathelement location="${component.plugin.home}/tMicrosoftCrmInput/geronimo-stax-api_1.0_spec-1.0.jar" />
<pathelement location="${component.plugin.home}/tFileInputExcel/log4j-1.2.15.jar" />
<pathelement location="${component.plugin.home}/tFileInputExcel/poi-3.8-20120326.jar" />
<pathelement location="${component.plugin.home}/tFileInputExcel/poi-3.8-20120913_modified_talend.jar" />
<pathelement location="${component.plugin.home}/tFileInputExcel/poi-ooxml-3.8-20120326.jar" />
<pathelement location="${component.plugin.home}/tFileInputExcel/poi-ooxml-schemas-3.8-20120326.jar" />
<pathelement location="${component.plugin.home}/tFileInputExcel/poi-scratchpad-3.8-20120326.jar" />

View File

@@ -104,7 +104,9 @@ public class ExcelTool {
sheet = wb.getSheet(sheetName);
if (sheet != null) {
if (appendSheet) {
curY = sheet.getLastRowNum() + 1;
if(sheet.getLastRowNum()!=0 || sheet.getRow(0)!=null){
curY = sheet.getLastRowNum() + 1;
}
} else {
wb.removeSheetAt(wb.getSheetIndex(sheetName));
sheet = wb.createSheet(sheetName);
@@ -219,14 +221,15 @@ public class ExcelTool {
private CellStyle getPreCellStyle() {
if (isAbsY && keepCellFormat) {
CellStyle preCellStyle =null;
if (preCell == null) {
return null;
preCellStyle = preSheet.getColumnStyle(curCell.getColumnIndex());
} else {
CellStyle preCellStyle = preCell.getCellStyle();
CellStyle targetCellStyle = wb.createCellStyle();
targetCellStyle.cloneStyleFrom(preCellStyle);
return targetCellStyle;
preCellStyle = preCell.getCellStyle();
}
CellStyle targetCellStyle = wb.createCellStyle();
targetCellStyle.cloneStyleFrom(preCellStyle);
return targetCellStyle;
} else {
return null;
}

View File

@@ -12,6 +12,7 @@
<!-- modification 2: compile classpath -->
<path id="compile.classpath">
<pathelement location="${component.plugin.home}/tMSSqlInput/jtds-1.2.5.jar" />
</path>
<!-- #################################################### -->

View File

@@ -0,0 +1,46 @@
package net.sourceforge.jtds.jdbc;
import java.io.IOException;
import java.sql.SQLException;
import net.sourceforge.jtds.util.BlobBuffer;
public class TalendNTextImpl {
ClobImpl clobImpl;
public TalendNTextImpl(ClobImpl clobImpl) {
this.clobImpl = clobImpl;
}
public String getValue() throws SQLException, IOException {
BlobBuffer blobBuffer = clobImpl.getBlobBuffer();
int length = Integer.parseInt(String.valueOf(blobBuffer.getLength()));
byte[] b = blobBuffer.getBytes(1L, length);
return readUnicodeString(b, length / 2);
}
/**
* Reads a UCS2-LE (Unicode) encoded String object from the server response stream.
*
* @param buffer the content of the string to read
* @param len the length of the string to read <b>in characters</b>
* @return the result as a <code>String</code>
* @throws IOException if an I/O error occurs
*/
public static String readUnicodeString(byte[] buffer, int len) throws IOException {
char[] chars = new char[len];
int bufferPos = 0;
for (int i = 0; i < len; i++) {
int b1 = buffer[bufferPos++] & 0xFF;
int b2 = buffer[bufferPos++] << 8;
chars[i] = (char) (b2 | b1);
}
return new String(chars, 0, len);
}
}

View File

@@ -104,13 +104,25 @@ public class MSSqlGenerateTimestampUtil {
return null;
}
/**
* parse datetimeoffset string to date.
* datetimeoffset string show as YYYY-MM-DD hh:mm:ss[.nnnnnnn] [+|-]hh:mm
* and no enough infomation for the DST decision,so no DST consider.
* @param datetimeOffsetString
* @return
*/
private java.util.Date parseDatetimeOffset(String datetimeOffsetString) {
int idx = datetimeOffsetString.lastIndexOf(' ');
String datetimeString = datetimeOffsetString.substring(0,idx);
String offsetString = datetimeOffsetString.substring(idx+1);
int offset = TimeZone.getTimeZone("GMT"+offsetString).getRawOffset();
//local timezone
TimeZone local = TimeZone.getDefault();
int localOffset = local.getRawOffset();
long milliseconds = java.sql.Timestamp.valueOf(datetimeString).getTime();
long millisecondsToGMT1970_01_01 = milliseconds - offset;
long millisecondsToGMT1970_01_01 = milliseconds - offset + localOffset;
return new java.util.Date(millisecondsToGMT1970_01_01);
}

View File

@@ -3,6 +3,8 @@ package org.talend.designer.components.hashfile.common;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.Iterator;
import org.talend.designer.components.hashfile.memory.AdvancedMemoryHashFile;
public class MapHashFile {
@@ -24,7 +26,8 @@ public class MapHashFile {
AdvancedMemoryHashFile amhf = resourceMap.get(key);
String prekey = keyMap.get(key);
//if present AdvancedMemoryHashFile is null get the AdvancedMemoryHashFile before present.
while(amhf==null){
int size = keyMap.size();
while(amhf==null && (size--)>0){
amhf = resourceMap.get(prekey);
prekey = keyMap.get(prekey);
}
@@ -38,4 +41,29 @@ public class MapHashFile {
public Map<String, String> getKeyMap() {
return keyMap;
}
public void clearCache(String key){
clearChildCache(getRootCache(key));
}
public void clearChildCache(String root){
Set<String> set = keyMap.keySet();
synchronized(keyMap) {
Iterator<String> it = set.iterator();
while(it.hasNext()){
String key = it.next();
if(keyMap.get(key).equals(root)){
this.resourceMap.remove(key);
clearChildCache(key);
}
}
}
this.resourceMap.remove(root);
}
public String getRootCache(String cache){
String root;
while((root = keyMap.get(cache))!=null){
cache=root;
}
return cache;
}
}

View File

@@ -12,6 +12,7 @@
// ============================================================================
package org.talend.designer.components.hashfile.memory;
import java.util.Collections;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
@@ -34,9 +35,9 @@ public class AdvancedMemoryHashFile<V> {
public AdvancedMemoryHashFile(MATCHING_MODE matchingMode) {
this.matchingMode = matchingMode;
if (matchingMode == MATCHING_MODE.KEEP_ALL) {
allList = new ArrayList<V>();
allList = Collections.synchronizedList(new ArrayList<V>());
} else if (matchingMode == MATCHING_MODE.KEEP_FIRST) {
firstHash = new HashMap<V, V>();
firstHash = Collections.synchronizedMap(new HashMap<V, V>());
}
}

View File

@@ -45,7 +45,6 @@ bin.excludes = components/tBonitaDeploy/,\
components/tInformixInput/ifxjdbc.jar,\
components/tIngresConnection/iijdbc.jar,\
components/tJMSInput/jms.jar,\
components/tMSSqlInput/sqljdbc.jar,\
components/tSybaseInput/jconn3.jar,\
components/tVerticaInput/vertica_4.1.7_jdk_5.jar,\
components/tWriteJSONFieldIn/xom-1.2.7.jar,\
@@ -65,7 +64,7 @@ bin.excludes = components/tBonitaDeploy/,\
components/tMicrosoftMQInput/msmq.jar,\
components/tMysqlInput/mysql-connector-java-3.1.14-bin.jar,\
components/tAmazonMysqlInput/mysql-connector-java-5.1.0-bin.jar,\
components/tAmazonMysqlInput/mysql-connector-java-5.1.0-bin.jar,\
components/tAmazonMysqlInput/mysql-connector-java-5.1.22-bin.jar,\
components/tGreenplumGPLoad/namedpipe_jni.dll,\
components/tNamedPipeOutput/namedpipe_jni.dll,\
components/tNetezzaNzLoad/namedpipe_jni.dll,\
@@ -80,7 +79,6 @@ bin.excludes = components/tBonitaDeploy/,\
components/tAmazonOracleInput/ojdbc5-11g.jar,\
components/tOracleInput/ojdbc6-11g.jar,\
components/tParAccelInput/paraccel-jdbc.jar,\
components/tSalesforceBulkExec/partnerBulk.jar,\
components/tMaxDBInput/sapdbc.jar,\
components/tXSLT/saxon9.jar,\
components/tTeradataInput/tdgssconfig.jar,\

View File

@@ -0,0 +1 @@
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868

View File

@@ -0,0 +1,3 @@
CLOSE.NAME=\u5173\u95ed\u8fde\u63a5
LONG_NAME=\u521B\u5EFA\u4E00\u4E2A\u6C38\u4E0D\u505C\u6B62\u7684\u5FAA\u73AF
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868

View File

@@ -1,4 +1,3 @@
DBNAME.NAME=Database
ENCODING.NAME=Encoding
HELP=org.talend.help.tAS400Connection
HOST.NAME=Host

View File

@@ -1,4 +1,3 @@
DBNAME.NAME=Base de données
ENCODING.NAME=Encodage
HELP=org.talend.help.tAS400Connection
HOST.NAME=Hôte

View File

@@ -1,2 +1,4 @@
PASS.NAME=Wachtwoord
USER.NAME=Gebruikersnaam
DB_VERSION.ITEM.V5R2_V5R4=V5R2 to V5R4
DB_VERSION.ITEM.V5R3_V6R1=V5R3 to V6R1

View File

@@ -0,0 +1,14 @@
DBNAME.NAME=\u6570\u636e\u5e93
ENCODING.NAME=\u7f16\u7801
HOST.NAME=\u4e3b\u673a
LONG_NAME=\u521B\u5EFA\u4E00\u4E2A\u6C38\u4E0D\u505C\u6B62\u7684\u5FAA\u73AF
NB_LINE.NAME=\u884c\u6570
NULL_CHAR.NAME=Null\u5b57\u7b26
PASS.NAME=\u5bc6\u7801
PORT.NAME=\u7aef\u53e3
USER.NAME=\u7528\u6237\u540D
DB_VERSION.NAME=\u6570\u636e\u5e93\u7248\u672c
SHARED_CONNECTION_NAME.NAME=\u5171\u4EAB\u6570\u636E\u5E93\u8FDE\u63A5\u540D
AUTO_COMMIT.NAME=\u81EA\u52A8\u63D0\u4EA4
TYPE.NAME=\u6570\u636e\u5e93\u9a71\u52a8
PROPERTY.NAME=\u5c5e\u6027\u7c7b\u578b

View File

@@ -1,4 +1,3 @@
DBNAME.NAME=Database
HELP=org.talend.help.tAS400Input
HOST.NAME=Host name
LONG_NAME=Reads a table and extracts fields based on an SQL query

View File

@@ -1,4 +1,3 @@
DBNAME.NAME=Base de données
HELP=org.talend.help.tAS400Input
HOST.NAME=Nom du serveur
LONG_NAME=Lit une table et extrait les champs à partir d'une requête SQL
@@ -16,7 +15,7 @@ TABLE.NAME=Nom de la table
DB_VERSION.NAME=Version de la base de données
DB_VERSION.ITEM.V5R2_V5R4=V5R2 à V5R4
DB_VERSION.ITEM.V5R3_V6R1=V5R3 à V6R1
GUESS_SCHEMA.NAME=Retrouver le schéma
GUESS_SCHEMA.NAME=Détecter le schéma
CONNECTION.NAME=Liste des composants
PROPERTY.NAME=Type de propriété
TYPE.NAME=Pilote de base de données

View File

@@ -1,2 +1,4 @@
PASS.NAME=Wachtwoord
USER.NAME=Gebruikersnaam
DB_VERSION.ITEM.V5R2_V5R4=V5R2 to V5R4
DB_VERSION.ITEM.V5R3_V6R1=V5R3 to V6R1

View File

@@ -4,7 +4,7 @@ LONG_NAME=\u521B\u5EFA\u4E00\u4E2A\u6C38\u4E0D\u505C\u6B62\u7684\u5FAA\u73AF
PASS.NAME=\u5bc6\u7801
QUERY.NAME=\u67e5\u8be2
QUERYSTORE.NAME=\u67e5\u8be2\u7c7b\u578b
SCHEMA_DB.NAME=RowGenerator\u53C2\u6570\u8868
SCHEMA_DB.NAME=\u67B6\u6784
USER.NAME=\u7528\u6237\u540D
USE_EXISTING_CONNECTION.NAME=\u5E94\u7528\u5DF2\u5B58\u5728\u7684\u8FDE\u63A5
TRIM_COLUMN.ITEM.TRIM=\u6574\u7406\u7A7A\u683C
@@ -14,6 +14,6 @@ GUESS_SCHEMA.NAME=\u8BA1\u7B97schema
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868
PROPERTY.NAME=\u5c5e\u6027\u7c7b\u578b
TYPE.NAME=\u6570\u636e\u5e93\u9a71\u52a8
SCHEMA.NAME=RowGenerator\u53C2\u6570\u8868
SCHEMA.NAME=\u67B6\u6784
ENCODING.NAME=\u7f16\u7801
MAPPING.NAME=\u6620\u5c04

View File

@@ -0,0 +1,19 @@
DBNAME.NAME=\u6570\u636e\u5e93
HOST.NAME=\u4e3b\u673a
LONG_NAME=\u521B\u5EFA\u4E00\u4E2A\u6C38\u4E0D\u505C\u6B62\u7684\u5FAA\u73AF
PASS.NAME=\u5bc6\u7801
QUERY.NAME=\u67e5\u8be2
QUERYSTORE.NAME=\u67e5\u8be2\u7c7b\u578b
SCHEMA_DB.NAME=\u67B6\u6784
USER.NAME=\u7528\u6237\u540D
USE_EXISTING_CONNECTION.NAME=\u5E94\u7528\u5DF2\u5B58\u5728\u7684\u8FDE\u63A5
TRIM_COLUMN.ITEM.TRIM=\u6574\u7406\u7A7A\u683C
TABLE.NAME=\u8868
DB_VERSION.NAME=\u6570\u636e\u5e93\u7248\u672c
GUESS_SCHEMA.NAME=\u8BA1\u7B97schema
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868
PROPERTY.NAME=\u5c5e\u6027\u7c7b\u578b
TYPE.NAME=\u6570\u636e\u5e93\u9a71\u52a8
SCHEMA.NAME=\u67B6\u6784
ENCODING.NAME=\u7f16\u7801
MAPPING.NAME=\u6620\u5c04

View File

@@ -1,2 +1,2 @@
SCHEMA.NAME=\u56fe\u89e3\u5217\u8868
SCHEMA.NAME=\u67B6\u6784
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868

View File

@@ -0,0 +1,2 @@
SCHEMA.NAME=\u67B6\u6784
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868

View File

@@ -24,7 +24,6 @@ DATA_ACTION.ITEM.INSERT_OR_UPDATE=Insert or update
DATA_ACTION.ITEM.UPDATE=Update
DATA_ACTION.ITEM.UPDATE_OR_INSERT=Update or insert
DATA_ACTION.NAME=Action on data
DBNAME.NAME=Database
DIE_ON_ERROR.NAME=Die on error
ENCODING.NAME=Encoding
FIELD_OPTIONS.ITEM.DELETE_KEY=Deletion key

View File

@@ -18,14 +18,13 @@ ADD_COLS.ITEM.SQL=Expression SQL
ADD_COLS.NAME=Colonnes supplémentaires
CLEAR_TABLE.NAME=Effacer les données dans la table
COMMIT_EVERY.NAME=Commiter toutes les
DATA_ACTION.ITEM.DELETE=Supprimer
DATA_ACTION.ITEM.DELETE=DELETE
DATA_ACTION.ITEM.INSERT=INSERT
DATA_ACTION.ITEM.INSERT_OR_UPDATE=Insert ou update
DATA_ACTION.ITEM.UPDATE=UPDATE
DATA_ACTION.ITEM.UPDATE_OR_INSERT=Update ou insert
DATA_ACTION.NAME=Action sur les données
DBNAME.NAME=Base de données
DIE_ON_ERROR.NAME=Terminer en cas d'erreur
DIE_ON_ERROR.NAME=Arrêter en cas d'erreur
ENCODING.NAME=Encodage
FIELD_OPTIONS.ITEM.DELETE_KEY=Clé pour suppression
FIELD_OPTIONS.ITEM.INSERTABLE=Insérable

View File

@@ -1,12 +1,12 @@
ADD_COLS.ITEM.DATATYPE=\u30C7\u30FC\u30BF\u578B
ADD_COLS.ITEM.NAME=\u540D\u524D
ADD_COLS.ITEM.OPERATOR=\u30AA\u30DA\u30EC\u30FC\u30BF
ADD_COLS.ITEM.OPERATOR.ITEM.EQUAL=\=
ADD_COLS.ITEM.OPERATOR.ITEM.EQUAL=\u2267
ADD_COLS.ITEM.OPERATOR.ITEM.GREAT_EQUAL_THAN=>\=
ADD_COLS.ITEM.OPERATOR.ITEM.GREAT_THAN=>=
ADD_COLS.ITEM.OPERATOR.ITEM.IS=\=\=
ADD_COLS.ITEM.OPERATOR.ITEM.IS_NOT=\!\=
ADD_COLS.ITEM.OPERATOR.ITEM.LESS_EQUAL_THAN=<\=
ADD_COLS.ITEM.OPERATOR.ITEM.LESS_EQUAL_THAN=<
ADD_COLS.ITEM.OPERATOR.ITEM.LESS_THAN=<
ADD_COLS.ITEM.OPERATOR.ITEM.NOT_EQUAL=<>
ADD_COLS.ITEM.POS=\u30DD\u30B8\u30B7\u30E7\u30F3

View File

@@ -1,2 +1,14 @@
ADD_COLS.ITEM.NAME=Naam
ADD_COLS.ITEM.OPERATOR.ITEM.EQUAL=Groter dan of gelijk aan
ADD_COLS.ITEM.OPERATOR.ITEM.GREAT_EQUAL_THAN=Groter dan of gelijk aan
ADD_COLS.ITEM.OPERATOR.ITEM.GREAT_THAN=Groter dan of gelijk aan
ADD_COLS.ITEM.OPERATOR.ITEM.IS=IS
ADD_COLS.ITEM.OPERATOR.ITEM.LESS_THAN=Kleiner dan
ADD_COLS.ITEM.OPERATOR.ITEM.NOT_EQUAL=<>
COMMIT_EVERY.NAME=Commit iedere
DATA_ACTION.ITEM.DELETE=Verwijderen
DATA_ACTION.ITEM.UPDATE=Update
PASS.NAME=Wachtwoord
USER.NAME=Gebruikersnaam
DB_VERSION.ITEM.V5R2_V5R4=V5R2 to V5R4
DB_VERSION.ITEM.V5R3_V6R1=V5R3 to V6R1

View File

@@ -6,6 +6,5 @@ ADD_COLS.ITEM.OPERATOR.ITEM.LESS_THAN=Manje od
ADD_COLS.ITEM.OPERATOR.ITEM.NOT_EQUAL=<>
ADD_COLS.ITEM.REFCOL=Referentna kolona
ADD_COLS.ITEM.SQL=SQL izraz
DATA_ACTION.ITEM.DELETE=DELETE
DATA_ACTION.ITEM.INSERT=INSERT
DATA_ACTION.ITEM.UPDATE=UPDATE

View File

@@ -27,7 +27,7 @@ LONG_NAME=\u521B\u5EFA\u4E00\u4E2A\u6C38\u4E0D\u505C\u6B62\u7684\u5FAA\u73AF
NB_LINE.NAME=\u884c\u6570
PASS.NAME=\u5bc6\u7801
QUERY.NAME=\u67e5\u8be2
SCHEMA_FLOW.NAME=RowGenerator\u53C2\u6570\u8868
SCHEMA_FLOW.NAME=\u67B6\u6784
TABLE.NAME=\u8868
TABLE_ACTION.ITEM.CLEAR=\u6E05\u9664\u8868\u4E2D\u6570\u636E
TABLE_ACTION.ITEM.CREATE=\u521B\u5EFA\u8868

View File

@@ -0,0 +1,46 @@
ADD_COLS.ITEM.DATATYPE=\u6570\u636e\u7c7b\u578b
ADD_COLS.ITEM.NAME=\u540d\u79f0
ADD_COLS.ITEM.OPERATOR=\u64cd\u4f5c
ADD_COLS.ITEM.OPERATOR.ITEM.EQUAL=>=
ADD_COLS.ITEM.OPERATOR.ITEM.GREAT_EQUAL_THAN=>=
ADD_COLS.ITEM.OPERATOR.ITEM.GREAT_THAN=>=
ADD_COLS.ITEM.POS=\u4f4d\u7f6e
ADD_COLS.ITEM.POS.ITEM.AFTER=\u4e4b\u540e
ADD_COLS.ITEM.POS.ITEM.BEFORE=\u4e4b\u524d
ADD_COLS.ITEM.POS.ITEM.REPLACE=\u66ff\u4ee3
ADD_COLS.ITEM.REFCOL=\u76f8\u5173\u7684\u5217
ADD_COLS.ITEM.SQL=SQL\u8868\u8fbe\u5f0f
ADD_COLS.NAME=\u9644\u52a0\u5217
CLEAR_TABLE.NAME=\u6e05\u9664\u8868\u4e2d\u7684\u6570\u636e
COMMIT_EVERY.NAME=\u63d0\u4ea4\u95f4\u9694
DATA_ACTION.ITEM.DELETE=\u5220\u9664
DATA_ACTION.ITEM.INSERT=\u63D2\u5165
DATA_ACTION.ITEM.INSERT_OR_UPDATE=\u63d2\u5165\u6216\u66f4\u65b0
DATA_ACTION.ITEM.UPDATE=\u66F4\u65B0
DATA_ACTION.ITEM.UPDATE_OR_INSERT=\u66f4\u65b0\u6216\u63d2\u5165
DATA_ACTION.NAME=\u6570\u636E\u64CD\u4F5C
DBNAME.NAME=\u6570\u636e\u5e93
DIE_ON_ERROR.NAME=\u9519\u8bef\u65f6\u7ec8\u6b62
ENCODING.NAME=\u7f16\u7801
HOST.NAME=\u4e3b\u673a
LONG_NAME=\u521B\u5EFA\u4E00\u4E2A\u6C38\u4E0D\u505C\u6B62\u7684\u5FAA\u73AF
NB_LINE.NAME=\u884c\u6570
PASS.NAME=\u5bc6\u7801
QUERY.NAME=\u67e5\u8be2
SCHEMA_FLOW.NAME=\u67B6\u6784
TABLE.NAME=\u8868
TABLE_ACTION.ITEM.CLEAR=\u6E05\u9664\u8868\u4E2D\u6570\u636E
TABLE_ACTION.ITEM.CREATE=\u521B\u5EFA\u8868
TABLE_ACTION.ITEM.CREATE_IF_NOT_EXISTS=\u5982\u679C\u8868\u4E0D\u5B58\u5728\u521B\u5EFA\u8868
TABLE_ACTION.ITEM.DROP_CREATE=\u5220\u9664\u5E76\u521B\u5EFA\u8868
TABLE_ACTION.ITEM.DROP_IF_EXISTS_AND_CREATE=\u5982\u679c\u8868\u5b58\u5728\u5220\u9664\u7136\u540e\u521b\u5efa
TABLE_ACTION.ITEM.NONE=\u65E0
TABLE_ACTION.NAME=\u8868\u64CD\u4F5C
USER.NAME=\u7528\u6237\u540D
USE_EXISTING_CONNECTION.NAME=\u5E94\u7528\u5DF2\u5B58\u5728\u7684\u8FDE\u63A5
ENABLE_DEBUG_MODE.NAME=\u542F\u7528\u8C03\u8BD5\u6A21\u5F0F
DB_VERSION.NAME=\u6570\u636e\u5e93\u7248\u672c
PROPERTY.NAME=\u5c5e\u6027\u7c7b\u578b
TYPE.NAME=\u6570\u636e\u5e93\u9a71\u52a8
MAPPING.NAME=\u6620\u5c04
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868

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