Skip to content

Commit 29d4ea5

Browse files
committed
New version (0.5) of Javascript Console refactored (separate repo/share projects)
git-svn-id: https://share-extras.googlecode.com/svn/trunk/Javascript Console@1050 a3f5c567-fd0f-3a89-9b71-a290c5a5f590
1 parent a1dcf8e commit 29d4ea5

File tree

62 files changed

+7696
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+7696
-0
lines changed

javascript-console-repo/.classpath

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="source/java"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
5+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/alfresco-core-4.0.0.jar" sourcepath="/ALFRESCO_SDK_400/src/alfresco-core-src.zip"/>
6+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/alfresco-data-model-4.0.0.jar"/>
7+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/alfresco-remote-api-4.0.0.jar"/>
8+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/spring-surf/spring-surf-core-1.0.0.jar"/>
9+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/spring-surf/spring-webscripts-1.0.0.jar"/>
10+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/commons/commons-lang-2.6.jar"/>
11+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/commons/commons-logging-1.1.1.jar"/>
12+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/j2ee/servlet.jar"/>
13+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/optional/log4j-1.2.15.jar"/>
14+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/json.jar"/>
15+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/rhino-js-1.6R7.jar"/>
16+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/spring-surf/spring-webscripts-api-1.0.0.jar"/>
17+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/alfresco-repository-4.0.0.jar" sourcepath="/ALFRESCO_SDK_400/src/alfresco-repository-src.zip"/>
18+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/org.springframework.context-3.0.5.RELEASE.jar"/>
19+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/org.springframework.core-3.0.5.RELEASE.jar"/>
20+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/org.springframework.beans-3.0.5.RELEASE.jar"/>
21+
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/commons/commons-io-1.4.jar"/>
22+
<classpathentry kind="output" path="bin"/>
23+
</classpath>

javascript-console-repo/.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>javascript-console-repo</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.6
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11+
org.eclipse.jdt.core.compiler.source=1.6
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Florain Maul
2+
3+
Twitter: twitter.com/fmaul

javascript-console-repo/README.txt

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Javascript Console Admin Console component for Alfresco Share
2+
=============================================================
3+
4+
Author: Florian Maul
5+
6+
This project defines a Javascript Console component for Share's Administration Console,
7+
that enables the execution of arbitrary javascript code in the repository.
8+
9+
10+
Installation
11+
------------
12+
13+
The component has been developed to install on top of an existing Alfresco
14+
3.4 installation.
15+
16+
An Ant build script is provided to build a JAR file containing the
17+
custom files, which can then be installed into the 'tomcat/shared/lib' folder
18+
of your Alfresco installation.
19+
20+
To build the JAR file, run the following command from the base project
21+
directory.
22+
23+
ant clean dist-jar
24+
25+
The command should build a JAR file named javascript-console.jar
26+
in the 'dist' directory within your project.
27+
28+
To deploy the dashlet files into a local Tomcat instance for testing, you can
29+
use the hotcopy-tomcat-jar task. You will need to set the tomcat.home
30+
property in Ant.
31+
32+
ant -Dtomcat.home=C:/Alfresco/tomcat clean hotcopy-tomcat-jar
33+
34+
Once you have run this you will need to restart Tomcat so that the classpath
35+
resources in the JAR file are picked up.
36+
37+
Using the component
38+
-------------------
39+
40+
Log in to Alfresco Share as an admin user and navigate to the Administration
41+
page. Click 'Javascript Console' in the left hand side navigation.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
jar.name=javascript-console-repo-0.5.jar
2+
src.zip.name=javascript-console-repo-src-0.5.zip
3+
build.res.dir.name=alfresco

0 commit comments

Comments
 (0)