05-20-2014 09:09 AM
<project default="package-amp">
<property name="module.id" value="my-extensions" />
<property name="src-dir" location="/local/alfresco-src/4.2.1/alfresco/TAGS/ENTERPRISE/V4.2.1/root/projects" />
<property name="3rdparty" location="${src-dir}/3rd-party/lib" />
<property name="core" location="${src-dir}/core/build" />
<property name="repository" location="${src-dir}/repository/build" />
<property name="model" location="${src-dir}/data-model/build" />
<property name="project.dir" value="."/>
<property name="build.dir" value="${project.dir}/build"/>
<property name="config.dir" value="${project.dir}/config"/>
<property name="jar.file" value="${build.dir}/lib/${module.id}.jar"/>
<property name="amp.file" value="${build.dir}/dist/${module.id}.amp"/>
<target name="mkdirs">
<mkdir dir="${build.dir}/dist" />
<mkdir dir="${build.dir}/lib" />
</target>
<path id="class.path">
<dirset dir="${build.dir}" />
<fileset dir="${model}" includes="**/*.class" />
<fileset dir="${3rdparty}" includes="**/*.jar" />
<fileset dir="${core}" includes="**/*.class" />
<fileset dir="${repository}" includes="**/*.class" />
</path>
<target name="compile">
<mkdir dir="${build.dir}/classes" />
<javac classpathref="class.path" srcdir="${project.dir}/source" destdir="${build.dir}/classes" />
</target>
<target name="package-jar" depends="compile">
<jar destfile="${jar.file}" >
<fileset dir="${build.dir}/classes" excludes="**/custom*,**/*Test*" includes="**/*.class" />
</jar>
</target>
<target name="package-amp" depends="mkdirs, package-jar" description="Package the Module" >
<zip destfile="${amp.file}" >
<fileset dir="${project.dir}/build" includes="lib/*.jar" />
<fileset dir="${project.dir}" includes="config/**/*.*" excludes="**/module.properties" />
<fileset dir="${project.dir}/config/alfresco/module/${module.id}" includes="module.properties" />
</zip>
</target>
</project>
05-21-2014 07:01 AM
<fileset dir="${alfresco.work.home}/tomcat/webapps/alfresco/WEB-INF/lib" includes="*.jar" />
04-03-2019 03:00 AM
The "Cannot find symbol" errors generally occur when you try to reference an undeclared variable in your code. A "Cannot find symbol" error means that the compiler cannot do this. Your code appears to be referring to something that the compiler doesn't understand.
When your code is compiled, the compiler needs to work out what each and every identifier in your code means. As the compiler is going through the code it will find something and know what to do with it or not. Your Cannot find symbol error relates to the identifiers and means that Java cannot figure out what the "symbol" means.
The general causes for a Cannot find symbol error are things like:
05-21-2014 11:27 AM
/local/alfresco-src/4.2.1/alfresco/TAGS/ENTERPRISE/V4.2.1/root/projects/repository/build
/local/alfresco-src/4.2.1/alfresco/TAGS/ENTERPRISE/V4.2.1/root/projects/core/build
/local/alfresco-src/4.2.1/alfresco/TAGS/ENTERPRISE/V4.2.1/root/projects/data-model/build
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.