Hippo Tip: Automatic Export of Document Types

Use this to deploy your Hippo project:

-P cargo.run -Dhippoecm.export.dir=/home/geertjan/now/content/src/main/resources

Now, when you make changes to your document types and/or create document types, those changes will automatically be saved into the "content" project (i.e., the definition of the bootstrap content of your Hippo application) in your Hippo application, which above is found in "/home/geertjan/now":

Not only will those additions/changes be persisted into the correct place (i.e., exactly into "namespaces.now" above), but they'll be registered into the correct places too. (For deletions, you need to manually use the CMS Console.)

Then remove all your target folders, optionally remove your repository (since you've now persisted your changes into your project), and restart the application with -P cargo.run as usual (does anyone know how to use GlassFish instead of Tomcat for that?) and you'll see the document types in the CMS and you can now start using them.

Pretty cool.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today