Fix type id

This commit improves the structure of the type id as it may be used by
third party clients. The id now defines the build system and the nature
of the project.

Because STS hardcodes those IDs, a new (deprecated) property on type
has been introduced to keep track of them. When serving the legacy HTML
page that STS parses, those ids are used instead.

Fixes gh-39
This commit is contained in:
Stephane Nicoll
2014-10-29 18:09:47 +01:00
parent 4ebc50dda3
commit 1136d76b1b
9 changed files with 51 additions and 26 deletions

View File

@@ -117,19 +117,23 @@ initializr:
description: Support for CRaSH
types:
- name: Maven POM
id: pom.xml
id: maven-build
sts-id: pom.xml
default: false
action: /pom.xml
- name: Maven Project
id: starter.zip
id: maven-project
sts-id: starter.zip
default: true
action: /starter.zip
- name: Gradle Config
id: build.gradle
id: gradle-build
sts-id: build.gradle
default: false
action: /build.gradle
- name: Gradle Project
id: gradle.zip
id: gradle-project
sts-id: gradle.zip
default: false
action: /starter.zip
packagings: