Skip to content

Commit

Permalink
Created basic project framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoblenz committed Mar 18, 2016
0 parents commit 827f278
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="lib" path="/Users/mcoblenz/code/checker-framework-1.9.12/checker/dist"/>
<classpathentry kind="lib" path="/Users/mcoblenz/code/checker-framework-1.9.12/checker/dist/checker.jar"/>
<classpathentry kind="lib" path="/Users/mcoblenz/code/checker-framework-1.9.12/checker/dist/javac.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
12 changes: 12 additions & 0 deletions .externalToolBuilders/Create Jar.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Glacier"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Glacier/build.xml}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value=""/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
</launchConfiguration>
27 changes: 27 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Glacier</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/Create Jar.launch</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
11 changes: 11 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
Binary file not shown.
Binary file added bin/edu/cmu/cs/glacier/qual/Immutable.class
Binary file not shown.
Binary file added bin/edu/cmu/cs/glacier/tests/ImmutablePerson.class
Binary file not shown.
7 changes: 7 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" ?>
<!-- Configuration of the Ant build system to generate a Jar file -->
<project name="Glacier" default="CreateJar">
<target name="CreateJar" description="Create Jar file">
<jar jarfile="Glacier.jar" basedir="." includes="*.class" />
</target>
</project>
7 changes: 7 additions & 0 deletions src/edu/cmu/cs/glacier/ClassImmutabilityChecker.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package edu.cmu.cs.glacier;

import org.checkerframework.common.basetype.BaseTypeChecker;

public class ClassImmutabilityChecker extends BaseTypeChecker {

}
7 changes: 7 additions & 0 deletions src/edu/cmu/cs/glacier/qual/Immutable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package edu.cmu.cs.glacier.qual;

import java.lang.annotation.Target;
import java.lang.annotation.ElementType;

@Target(ElementType.TYPE)
public @interface Immutable { }
7 changes: 7 additions & 0 deletions src/edu/cmu/cs/glacier/tests/ImmutablePerson.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package edu.cmu.cs.glacier.tests;

import edu.cmu.cs.glacier.qual.Immutable;

public @Immutable class ImmutablePerson {
String name;
}

0 comments on commit 827f278

Please sign in to comment.