Hi Bertrand
Thanks for the very quick answer.
On Thu, Jul 31, 2008 at 4:30 PM, Bertrand Delacretaz <[EMAIL PROTECTED]
> wrote:
> Hi Marc,
>
> On Thu, Jul 31, 2008 at 3:35 PM, Marc Speck <[EMAIL PROTECTED]> wrote:
> > ...I'm just getting to know Sling and have a few questions. These are
> rather
> > "user" than devl questions but there seems to be no mailing list for dumb
> > user yet....
>
> Perfectly fine, as an incubating project with a small community we
> have just this list for now.
>
> > ...1. Do I understand your roadmap correctly: Integrating the Atom
> syndication
> > format is an issue but for priority reasons, it won't be considered for
> the
> > next 6 months?
> > 1.1 Offering APP is even further away?...
>
> I don't think we have a roadmap in terms of months - some of us would
> like Atom and APP to happen, but I don't think any committer has an
> urgent need for that, so that would rather happen when it happens.
> It's more a (very) nice to have than a requirement for me at the
> moment, and I guess for other Sling people as well.
That's what I thought.
>
>
> But if you need this and are willing to contribute, I'm sure we'd find
> some cycles to test and integrate it.
Well, don't expect anything soon from my side as I still struggle with
simply bundling a library...
>
>
> > ...2. I'm new to OSGi, Felix, maven-bundle-plugin and bnd and I could not
> > figure out how to package the Apache Abdera library into a bundle. For
> the
> > start, I do not want to export anything of the library. ...
>
> If you want to embed the Abdera code in your bundle, you need a
> Private-Package statement in the pom, in addition to your dependency
> statements which look ok. See for example how the
> scripting/javascript/pom.xml embeds the rhino dependency using
>
> <Private-Package>
> org.apache.sling.scripting.javascript.*,
> org.mozilla.classfile,
> !org.mozilla.javascript.xml.impl.xmlbeans,
> org.mozilla.javascript.*
> </Private-Package>
ok, let's walk that path. One state I reached was for example with adding
the following to the pom (besides the dependencies and rep mentioned above):
<Private-Package>
org.apache.abdera,
org.apache.abdera.factory,
org.apache.abdera.i18n.iri,
org.apache.abdera.model,
org.apache.abdera.parser,
org.apache.abdera.util,
org.apache.abdera.writer,
org.apache.abdera.xpath,
org.apache.abdera.filter,
org.apache.abdera.i18n.rfc4646,
org.apache.abdera.i18n.text,
org.apache.abdera.i18n.text.data,
org.apache.abdera.i18n.text.io,
org.apache.abdera.i18n.rfc4646.enums,
org.apache.commons.codec.binary
</Private-Package>
<DynamicImport-Package>*</DynamicImport-Package>
Then, the compiler is fine except for this warning:
[WARNING] Warning building bundle
org.apache.sling.samples:org.apache.sling.samples.simple-demo:bundle:2.0.3-incubator-SNAPSHOT
: Instructions for Private-Package that are never used:
org\.apache\.commons\.codec\.binary
And not surprising, Sling complains about it:
Symbolic Name org.apache.sling.samples.simple-demo
Version 2.0.3.incubator-SNAPSHOT
Location
inputstream:org.apache.sling.samples.simple-demo-2.0.3-incubator-SNAPSHOT.jar
Last Modification Thu Jul 31 17:09:36 CEST 2008
Vendor The Apache Software Foundation
Description This bundle provides a simple Sling Application to show some
of the features and functionalities of Sling, such as node type definition,
content mapping, running JSPs off the repository and the bundle.
Start Level 20
Exported Packages
org.apache.jsp.apps.sling.sample,version=2.0.3.incubator-SNAPSHOT
org.apache.sling.sample,version=2.0.3.incubator-SNAPSHOT
Imported Packages !! javax.activation,version=0.0.0 from -- Cannot be
resolved
javax.el,version=2.1.0 from org.apache.sling.scripting.jsp (35)
javax.jcr,version=1.0.0 from org.apache.sling.jcr.api (21)
javax.servlet,version=0.0.0 from System Bundle (0)
javax.servlet.http,version=0.0.0 from System Bundle (0)
javax.servlet.jsp,version=2.1.0 from org.apache.sling.scripting.jsp (35)
javax.servlet.jsp.tagext,version=2.1.0 from org.apache.sling.scripting.jsp
(35)
javax.xml.namespace,version=0.0.0 from System Bundle (0)
javax.xml.transform,version=0.0.0 from System Bundle (0)
javax.xml.transform.stream,version=0.0.0 from System Bundle (0)
!! org.apache.commons.codec.binary,version=0.0.0 from -- Cannot be resolved
org.apache.sling.api,version=2.0.2.incubator from org.apache.sling.api (2)
org.apache.sling.api.resource,version=2.0.2.incubator from
org.apache.sling.api (2)
org.apache.sling.api.scripting,version=2.0.2.incubator from
org.apache.sling.api (2)
org.apache.sling.api.servlets,version=2.0.2.incubator from
org.apache.sling.api (2)
org.apache.sling.jcr.ocm,version=2.0.2.incubator from
org.apache.sling.jcr.ocm (24)
org.apache.sling.scripting.jsp.jasper.runtime,version=2.0.2.incubator from
org.apache.sling.scripting.jsp (35)
org.apache.sling.scripting.jsp.taglib,version=2.0.2.incubator from
org.apache.sling.scripting.jsp.taglib (29)
org.slf4j,version=0.0.0 from org.apache.sling.commons.log (1)
Using <Private-Package>org.apache.abdera.*</Private-Package> was even less
promising.
Thanks for 3. and 4.
Marc