.classpath 文件

 

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <!-- 源码目录 -->
    <classpathentry kind="src" path="src"/>
    <!-- JDK运行时容器 -->
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <!-- 以下为类库 path为你自定义的目录 -->
    <classpathentry kind="lib" path="lib/swing-layout-1.0.3.jar"/>
    <classpathentry kind="lib" path="lib/AbsoluteLayout.jar"/>
    <classpathentry kind="lib" path="lib/jtds-1.2.2.jar"/>
    <classpathentry kind="lib" path="lib/jxl.jar"/>
    <!-- 编译后输出class 目录  -->
    <classpathentry kind="output" path="bin"/>
</classpath>

 当运行或调试Java程序代码时,运行时classpath由启动配置决定.

 

 

 

.project文件:


<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <!-- 工程名称 -->
    <name>execlInterface</name>
    <comment></comment>
    <projects></projects>
    <!-- 编译器指定 -->
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments></arguments>
        </buildCommand>
    </buildSpec>
    <!-- 核心特性 -->
    <natures>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>


nature标记表示该项目的类型。这里的nature性质org.eclipse.jdt.core.javanature表示它是Java项目。

 


<natures>
	<nature><!-- eclipse 发布工程 -->
		com.genuitec.eclipse.ast.deploy.core.deploymentnature
	</nature>
	<!-- j2ee的web工程 -->
	<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
	<!-- flex工程 -->
	<nature>com.adobe.flexbuilder.project.flexnature</nature>
	<!-- flexaction工程 -->
	<nature>
		com.adobe.flexbuilder.project.actionscriptnature
	</nature>
	<!-- Dynamic Web Project 用 -->
	<nature>
		org.eclipse.wst.common.project.facet.core.nature
	</nature>
	<!-- java工程 -->
	<nature>org.eclipse.jdt.core.javanature</nature>
	<!-- Dynamic Web Project 用 -->
	<nature>
		org.eclipse.wst.common.modulecore.ModuleCoreNature
	</nature>
	<!-- Dynamic Web Project 用 -->
	<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
</natures>

 

其中有的项目没有的话是无法发布的

 

 

我flex project的配置文件

 

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>flexttruts</name>
	<comment></comment>
	<projects></projects>
	<buildSpec>
		<buildCommand>
			<name>
				com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder
			</name>
			<arguments></arguments>
		</buildCommand>
		<buildCommand>
			<name>
				com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder
			</name>
			<arguments></arguments>
		</buildCommand>
		<buildCommand>
			<name>
				com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator
			</name>
			<arguments></arguments>
		</buildCommand>
		<buildCommand>
			<name>
				com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator
			</name>
			<arguments></arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments></arguments>
		</buildCommand>
		<buildCommand>
			<name>
				org.eclipse.wst.common.project.facet.core.builder
			</name>
			<arguments></arguments>
		</buildCommand>
		<buildCommand>
			<name>com.adobe.flexbuilder.project.flexbuilder</name>
			<arguments></arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.wst.validation.validationbuilder</name>
			<arguments></arguments>
		</buildCommand>
	</buildSpec>
<natures>
	<nature><!-- eclipse 发布工程 -->
		com.genuitec.eclipse.ast.deploy.core.deploymentnature
	</nature>
	<!-- j2ee的web工程 -->
	<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
	<!-- flex工程 -->
	<nature>com.adobe.flexbuilder.project.flexnature</nature>
	<!-- flexaction工程 -->
	<nature>
		com.adobe.flexbuilder.project.actionscriptnature
	</nature>
	<!-- Dynamic Web Project 用 -->
	<nature>
		org.eclipse.wst.common.project.facet.core.nature
	</nature>
	<!-- java工程 -->
	<nature>org.eclipse.jdt.core.javanature</nature>
	<!-- Dynamic Web Project 用 -->
	<nature>
		org.eclipse.wst.common.modulecore.ModuleCoreNature
	</nature>
	<!-- Dynamic Web Project 用 -->
	<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
</natures>
</projectDescription>