jps build: idea sdk type supported

This commit is contained in:
nik
2012-07-09 12:54:48 +04:00
parent 8526dae778
commit 537ccfb99b
11 changed files with 67 additions and 12 deletions
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="jps-model" />
</component>
</module>
@@ -0,0 +1 @@
org.jetbrains.idea.devkit.jps.IdeaSdkType
@@ -0,0 +1,35 @@
package org.jetbrains.idea.devkit.jps;/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import groovy.util.Node;
import org.jetbrains.jps.JavaSdkImpl;
import org.jetbrains.jps.Project;
import org.jetbrains.jps.Sdk;
import org.jetbrains.jps.idea.SdkTypeService;
/**
* @author nik
*/
public class IdeaSdkType extends SdkTypeService {
public IdeaSdkType() {
super("IDEA JDK");
}
@Override
public Sdk createSdk(Project project, String name, String version, String homePath, Node additionalData) {
return new JavaSdkImpl(project, name, version, homePath);
}
}