tSVNLogInput
SVN repository.
tSVNLogInput Standard properties
These properties are used to configure tSVNLogInput running in the Standard Job framework.
The Standard
tSVNLogInput component belongs to the Internet family.
The component in this framework is available in all Talend
products.
Basic settings
URL |
Type in the URL to the SVN repository to be accessed. |
Need authentication? |
Select this check box if authentication is needed to access the SVN |
Username and Password |
Enter the username and password to access the SVN repository if To enter the password, click the […] button next to the These two fields appear only when the Need |
From revision |
Specify a start revision number of the revision range. |
Only this revision |
Select this check box if you need to retrieve the information of only the |
To revision |
Specify an end revision number of the revision range. Enter ‘HEAD’ for the latest revision. This field disappears when the Only this |
Schema and Edit schema |
A schema is a row description, it defines the fields to be processed and The schema of this component is read-only. It describes the properties of
|
Advanced settings
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a Job |
Global Variables
Global Variables |
NB_LINE: the number of rows processed. This is an After
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
This component is usually used as a start component in a Job and it needs |
Connections |
Outgoing links (from this component to another): Row: Main, Iterate
Trigger: On Subjob Ok, On Subjob Error, Run Incoming links (from one component to this one): Row: Main, Iterate
Trigger: On Subjob Ok, On Subjob Error, Run For further information about connections, see |
Retrieving a log message from an SVN repository
This scenario describes a two-component Job that retrieves the information of a
specified revision from an SVN repository, and displays the information on the
console.
Procedure
-
Create a new Job and add the following two components by typing their names in the
design workspace or dropping them from the Palette:
a tSVNLogInput component and a tLogRow component. - Connect tSVNLogInput to tLogRow using a Row > Main link.
-
Double-click tSVNLogInput to open its Basic settings view.
-
In the URL field, enter the URL to the SVN
repository to be accessed. In this example, it is https://talend.com/svndoc/. Note that the login credentials provided
here is for demonstration only. -
Select the Need authentication? check box and
fill in the Username and Password fields with your authentication information. -
Specify a revision or revision range. In this example, we want to retrieve the
information of revision 17090 only, so enter 17090
in the From revision field and select the Only this revision check box. -
Double-click tLogRow to open its Basic settings view.
-
Define the way you want the output data to be displayed on the console. In this
example, enter ”
“ in the Field Separator field to display each field of the revision
information in a separate line. -
Select the Print schema column name in front of each
value check box to show the name of each field of the revision
information at the beginning of each line. -
Press Ctrl + S to save the Job and then F6 to run the Job.
As shown above, the information of the specified revision is displayed on the
console.