Using scp or rsync to sync Netbeans libraries between two machines

Posted by John Manko | Posted in Computers & Technology, Java, Linux | Posted on 21-07-2011

I was (am) in the middle of playing around with Jenkins CI, and I had the need to resolve source code dependencies of supporting libraries.  Currently, my Netbeans based projects don’t use Maven or Ivy (or Gradle), so I have to resolve those dependencies manual.  The first step, however, is getting the libraries on the Jenkins server so I can register them with Jenkins.

Read the rest of this entry »

copyright

Source Location of Glassfish on Java.net Causes Netbeans 6.9 to Fail On “Download Now” Install

Posted by John Manko | Posted in Java, Linux | Posted on 03-06-2011

Much has changed with Oracle’s recent acquisition of Sun Microsystems.  Most noted has been Oracle consolidation and relocation of information from Sun websites.  In addition to Oracle’s branding of Java, many pages have moved or have been killed.  One of these links, important to Netbeans, is the location to download Glassfish for automatic installation.  I run/virtualize Ubuntu v11.04 for one of many development environments, and for those who use Ubuntu you know all too well how that distribution is slow with merging current releases.  For instance, I’ve been running Netbeans v6.9 since v10.10, and it looks like I’ll be running it until v11.10. With that said, I’m stuck with v6.9.1 at the moment.  Unfortunately, there is a bug in version of Netbeans prior to v7 that is a result of Oracle migrating website content.

Read the rest of this entry »

store

Scripting SVN Repo Creation in Gentoo

Posted by John Manko | Posted in Linux | Posted on 28-09-2009guidelines

I wrote a script to ease the creation of subversion repositories in Gentoo.  This script assumes the existence of three files:

authz         - Standard svn authorization file,
                located svn root conf directory,
                used for all repos.
passwd        - Standard passwd file, and
                is used for all repos.
svnserve.conf - Template file (points back to
                authz & passwd), copied to each
                newly created repo conf
                directory.

Here is the script:


#! /bin/bash
REPO_ROOT=/var/svn

echo -n "New Repository Name: "
read -e REPO_NAME

if [ "$REPO_NAME" = "" ]; then
 echo "A valid repository name must be entered.  Cannot create repository.";
 exit;
fi

REPO_PATH=$REPO_ROOT/$REPO_NAME

if [ -e $REPO_PATH ]; then
 echo "The file or directory ($REPO_PATH) already exists.  Cannot create repository.";
 exit;
fi

svnadmin create $REPO_PATH
cp $REPO_ROOT/conf/svnserve.conf $REPO_PATH/conf/
rm $REPO_PATH/conf/authz
rm $REPO_PATH/conf/passwd
chown -R svn:svnusers $REPO_PATH
chmod -R g+w $REPO_PATH
chmod -R o-rwx $REPO_PATH
/etc/init.d/svnserve restart

echo $REPO_PATH has been created!
home
copyright
tour