ACal CalDAV calendar: Difference between revisions

From WickyWiki
m 5 revisions
 
mNo edit summary
Line 1: Line 1:
Information:
* http://wiki.acal.me/wiki/Building_aCal
* http://wiki.acal.me/wiki/Building_aCal
* [[CalDAV, CardDAV and WebDAV in short]]


Checkout in Eclipse workspace:
Checkout in Eclipse workspace:

Revision as of 20:23, 2 September 2013

Information:

Checkout in Eclipse workspace:

cd /home/wilbert/Documents/Eclipse
sudo apt-get install git
git clone git://gitorious.org/acal/acal.git

The hidden files ".classpath" and ".project" are often not included in repositories but they are needed by Eclipse to recognize a project and to know what folders are used for building (gen), source (src) and binary (bin). Modify or create files ".classpath" and ".project" in the project root folder:

File ".classpath":

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="src" path="gen"/>
	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
	<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
	<classpathentry kind="output" path="bin/classes"/>
</classpath>

File ".project", change the PROJECT NAME:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>PROJECT NAME</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>com.android.ide.eclipse.adt.ApkBuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
		<nature>org.eclipse.jdt.core.javanature</nature>
	</natures>
</projectDescription>

In Eclipse:

  1. File
  2. Import
  3. Select 'General/Existing Projects into Workspace'
  4. Browse for the project root folder
  5. Check the project
  6. Finish

In Eclipse

  • Project - Properties - Java Compiler - set the correct version

Run