...
The procedure is intended to be launched from a PCTRun task as it's retrieving it's parameters from PCTRun. Supported parameters:
Parameter | Description |
---|---|
sonarlint | Installation Directory of the Sonarlint CLI |
SelectedFile | The full pathname of the selected file or folder - ${selected_resource_loc} |
sourceEncoding | The sourcecodes code page |
dlc | The OpenEdge installation directory |
propath | The PROPATH required to analyze the source |
databases | Comma delimited list of .df files required for analyzing the sourcecoude |
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<?xml version="1.0" encoding="utf-8"?> <project name="SmartComponent Library" default="SonarSource" basedir="." xmlns:sonar="antlib:org.sonar.ant"> <description>SmartComponent Library</description> <property environment="env" /> <property file="build/build.props" /> <!-- Définition des tâches externes --> <taskdef resource="PCT.properties" classpath="/Progress/PCT116/ant/lib/PCT.jar" /> <target name="sonarlint"> <PCTRun procedure="Consultingwerk/Studio/SonarLintLauncher/sonarlint.p" graphicalMode="true" dlcHome="${progress.DLC}" cpinternal="iso8859-1" cpstream="iso8859-1" compileUnderscore="true" inputchars="2000000" token="4000" tempDir="c:\temp"> <Parameter name="sonarlint" value="${sonarlint}"/> <Parameter name="SelectedFile" value="${SelectedFile}"/> <Parameter name="sourceEncoding" value="${sourceEncoding}"/> <Parameter name="dlc" value="${dlc}"/> <Parameter name="propath" value="${propath}"/> <Parameter name="databases" value="${databases}"/> </PCTRun> </target> </project> |
...
Setting | Description |
---|---|
Name | The name for the External Tools Run Configuration |
Buildfile | You ANT script, based on above example |
Base Directory | The sourcecode's project root |
Arguments | -Dsonarlint=c:\Progress\sonarlint-cli |
Refresh resources upon completion | Checked, Specific resources, select the .sonarlint directory in your project root folder, available after first run only |
Common → Save as | Shared File, specify a file name to share this configuration with team mates |
...