export tool is used to export a snapshot of a project from the Semmle installation. This snapshot can then be imported into QL for Eclipse and used to test new queries, or uploaded to LGTM for continuous security analysis.
This tool is run from the command line as follows:
export tool supports the following flags:
Optional. Output more detailed information about actions. This increases the verbosity to level 4.
Optional. Define the precise level of reporting required where
Optional, defines the location of the
Default: current directory
Optional, use to export the oldest snapshot for the project configuration defined using the
|-||-||Optional, use to export the most recent snapshot for the project configuration defined using the |
Optional, use to allow the concurrent execution of other commands. Use with care.
Default: the snapshot files are locked to other tools until this tool has completed.
Optional, use to define a location and name for the zip file to create.
Optional, use to preserve currently-computed cached predicates in the exported archive.
Note, to use this flag, your QL for Eclipse version number must exactly match your Semmle Core version number. If the version numbers do not match, QL for Eclipse will delete the cache and rebuild it from scratch. You can find your Semmle Core version number by running the selfTest command.
Optional, use to include any existing query results.
Optional, use to export a new snapshot even if the file already exists
Default: if the file already exists then report an error.
|-||Optional, define the snapshot to export.|
When this tool runs it creates a zip archive of the source code for the project. Unless you use the
--output flag to define an alternative location/filename, the archive is created in the current directory with the name
<project>-<snapshot>.zip. This file is ready for import into QL for Eclipse (Installing QL for Eclipse) and upload to LGTM.
This tool returns a 0 exit code on success. If an error occurs, such as the specified snapshot does not exist, then the exit code is non-zero.