Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
WEB-180 Cleaned up the build
Browse files Browse the repository at this point in the history
  • Loading branch information
cfalzone committed Dec 5, 2013
1 parent 94d9003 commit 033e69f
Show file tree
Hide file tree
Showing 13 changed files with 61 additions and 149 deletions.
4 changes: 0 additions & 4 deletions EXPORTS

This file was deleted.

17 changes: 0 additions & 17 deletions META-INF/MANIFEST.MF

This file was deleted.

33 changes: 22 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@ Twitter OSGI Viewtool
=================================================
An osgi plugin for dotCMS that adds a viewtool for interacting with Twitter using Twitter4J.

Installation
==================================
* Navigate to the dotCMS Dynamic plugins page: "System" > "Dynamic Plugins"
* Click on "Upload plugin" and select the .jar file located in the "build/jar/" folder
* Click on "Exported Packages" and add the contents of the EXPORTS file to the bottom of the list

Twitter4J Configuration
===================================
-----------------------
You need to create the following host variables and enter the values in your Default Host:

twitter4JConsumerKey - Text
Expand All @@ -20,8 +14,20 @@ twitter4jDebug - Boolean (Select or Radio with True/False)

For More information see the Twitter4J website: http://twitter4j.org/en/configuration.html

Usage:
======
Installation
------------
* Make sure you have the Twitter4J Configuration setup before deploying the osgi jar
* Navigate to the dotCMS Dynamic plugins page: "System" > "Dynamic Plugins"
* Click on "Upload plugin" and select the .jar file located in the "build/jar/" folder
* Click on "Exported Packages" and add the following to the bottom of the list
```
,com.dotmarketing.beans,
com.dotmarketing.business,
com.dotmarketing.util
```

Usage
------
You will want to have to Twitter4J JavaDoc handy: http://twitter4j.org/javadoc/index.html

The tool is mapped to the key $twitter and currently has the following methods implemented:
Expand Down Expand Up @@ -160,6 +166,11 @@ If a method is not working check your log file, you probably exceeded the twitte
</dl>
```

Additional Info:
====================================
Building
--------
* Install Gradle (if not already installed)
* gradle jar

Additional Info
----------------
This plugin includes software from Twitter4J.org. You can see the license term at http://twitter4j.org/en/index.html#license
39 changes: 39 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apply plugin: 'war'
apply plugin: 'osgi'
apply plugin: 'eclipse'

sourceCompatibility = '1.6'
version = '1.0'

repositories {
maven {
url "http://repo.dotcms.com/artifactory/libs-release"
}
}

dependencies {
compile (group: 'com.dotcms', name: 'dotcms', version: '2.5.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
compile fileTree(dir: 'src/main/resources/lib', include: '*.jar')
}

jar {
manifest {
name = 'Aquent TwitterTool'
symbolicName = 'com.aquent.plugins.twittertool'
instruction 'Bundle-Vendor', 'Aquent, LLC ([email protected])'
instruction 'Bundle-Description', 'Aquent TwiterTool Plugin'
instruction 'Bundle-DocURL', 'http://www.aquent.com'
instruction 'Bundle-Activator', 'com.aquent.viewtools.TwitterToolActivator'
instruction 'Bundle-ClassPath', '.',
'lib/twitter4j-async-3.0.3.jar',
'lib/twitter4j-core-3.0.3.jar',
'lib/twitter4j-media-support-3.0.3.jar',
'lib/twitter4j-stream-3.0.3.jar'
instruction 'DynamicImport-Package', '*'
instruction 'Import-Package', '!org.springframework.*', '!twitter4j.*', '*;version=0'
}
}

117 changes: 0 additions & 117 deletions build.xml

This file was deleted.

Binary file not shown.
File renamed without changes.

0 comments on commit 033e69f

Please sign in to comment.