This documentation is not maintained. Please refer to doc.castsoftware.com/technologies to find the latest updates.

Summary: Information and Release Notes about the Web Files Discoverer. This extension is a file system discoverer.

Extension ID

com.castsoftware.webfilesdiscoverer

Description

This discoverer detects projects based on the presence of web technology files (for example .HTML, .JS etc.).

In what situation should you install this extension?

The HTML5 and JavaScript extension, or any extension that reuses it (AngularJS, Node.js, jQuery etc.) does not contain a file "discoverer": this means that no Analysis Units (essential for a successful analysis) will be created by CAST Console. The Web Files Discoverer therefore exists purely to create Analysis Units for use with the HTML5 and JavaScript extension.

Technically, how does the extension work?

The Web Files Discoverer will detect a project (and therefore will create an Analysis Unit) when any of the following files are detected in any of the scanned folders:

  • .js
  • .ts
  • .jsx
  • .tsx
  • .html
  • .htm
  • .xhtml
  • .jsp
  • .jsf
  • .jsff
  • .jspx
  • .xml
  • .json
  • .css
  • .asp
  • .aspx
  • .htc
  • .cshtml
  • .jade
  • .yml
  • .yaml
  • .vue

AIP Core compatibility

AIP Core release
Supported
8.3.x(tick)

Supported DBMS servers

This extension is compatible with the following DBMS servers:

CSS/PostgreSQL
(tick)

Download and installation instructions

The extension will be automatically downloaded and installed in CAST Console. You can manage the extension using the Application - Extensions interface:

The file code-scanner-config.xml (available in your Node installation folder) governs when this extension is installed, i.e. it is based on the file extensions in your delivered source code:

<discoverer extensionId="com.castsoftware.webfilesdiscoverer" dmtId="dmtdiscovererhtml5"
	fileExtensions=".js;.ts;.jsx;.tsx;.jsp;.aspx;.cshtml;.xhtml;.htc" label="HTML5 project"/>

Extension interface  for legacy Delivery Manager Tool/CAST Management Studio

Click here to expand...

The following screen shots show the differences in the product when the extension is installed:

  • In the CAST Delivery Manager Tool, a new tick box is added in the Package Configuration tab (click to enlarge):

  • In the CAST Delivery Manager Tool, in the Package content tab, when specific files (see Technically, how does the extension work?) are detected during packaging, the interface will display a new item in the list of Project types discovered (HTML5 project):

  • In the CAST Management Studio, when the delivery is accepted and set as current version, the package will contain "HTML5" Analysis Units corresponding to the projects discovered in the CAST Delivery Manager Tool:

When you use the CAST Delivery Manager Tool to package the source code, please ensure that you tick the HTML5 project option in the CAST Delivery Manager Tool to activate the extension:

  • this option will be disabled (unticked) in all pre-existing packages - you need to check it before starting the packaging process otherwise it will be ignored.
  • for new packages created after the extension's installation, the option will be enabled by default