Thursday, July 31, 2008

a buggy ant in hudson

ant 1.7.0 had some issues with long diretory names in windows which affects hudson's build when resolving maven's repository folder.

to fix this, edit your maven's settings.xml and update the entry below:




C:\docume~1\consul~1\.m2\repository

SyntaxHighlighter

how to add code/scripts in your blog postings:
http://developertips.blogspot.com/2007/08/syntaxhighlighter-on-blogger.html

here's a live example! =)


package com.walgreens.sysconf.dao;

import java.util.List;

import com.walgreens.sysconf.domain.AbstractDomain;
import com.walgreens.sysconf.domain.AppEvent;

/**
* Standard DAO Interface for AppEvent Domain Object
*
* @author Edwin Quita
* @version 1.0
*/
public interface AppEventDAO {

/**
* Inserts an AppEvent Record
*
* @param ad AppEvent Domain Object
*/
public void insert(AbstractDomain ad);

/**
* Updates an AppEvent Record
*
* @param ad AppEvent Domain Object
*/
public void update(AbstractDomain ad);

/**
* Deletes an AppEvent Record
*
* @param id Record Id
*/
public void delete(long id);

/**
* Retrieves an AppEvent Record
*
* @param id Record Id
* @return AbstractDomain AppEvent domain object
*/
public AbstractDomain findById(long id);

/**
* Retrieves a List of AppEvent Records
*
* @return List A List of AppEvent domain objects
*/
public List<AppEvent> findAll();

/**
* Retrieves a List of AppEvent Records using AUTH_ID as filter
*
* @return List A List of AppEvent domain objects
*/
public List<AppEvent> findAllByAuthId(String authId);

}

package sources in maven

so this is how you package sources in maven:



org.apache.maven.plugins
maven-source-plugin


attach-sources

jar




first post

this is my attempt to journalize my adventure in the java wonderland although i have been playin' around with it for the past 9 years =)

here it goes...