Custom Behaviour

I`m trying to make my own custom behaviour in alfresco 3.4.4
This led me to a great example from the ECMArchitect – Jeff Potts.

Last week I got stuck on setting up & configuring his examples code.
I installed ANT and got that running, but Jeff’s example told me I had to configure the file.

(original version) 


After some searching I changed it into this : 


I didn’t have the SDK from alfresco installed, but now I downloaded it from the WIKI
( you should get this one: “Software Development Kit, including the source files” )

Unzipped to c: and referred the links to there. Then apparently we need to change windows backslashes (\\\\\\\\) into linux forwardslashes (////////)
Go figure….

So far so good, but I got some errors running ant in the C:\behavior-article\ folder.
This was solved by adjusting this line in the build.xml file :


<javac srcdir="${source.dir}" destdir="${bin.dir}" source="1.5" target="1.5" debug="on" fork="yes">
	<classpath refid="classpath"/>

(my new version)

<javac srcdir="${source.dir}" destdir="${bin.dir}" source="1.5" target="1.5" includeantruntime="true" >
	<classpath refid="classpath"/>

And so after adjusting this, it compiled correctly.
The ant deploy as described in jeff’s article worked in one go.
( as it should, but i was happy to see it working now)

And so now I get to play around the custom behaviour example….


One thought on “Custom Behaviour

Geef een reactie

Vul je gegevens in of klik op een icoon om in te loggen. logo

Je reageert onder je account. Log uit /  Bijwerken )

Google+ photo

Je reageert onder je Google+ account. Log uit /  Bijwerken )


Je reageert onder je Twitter account. Log uit /  Bijwerken )

Facebook foto

Je reageert onder je Facebook account. Log uit /  Bijwerken )


Verbinden met %s