December 2008

SCP files to a server using ANT

This is quite easy using the optional ‘scp’ task.

Under windows, this depends on a java implementation of ssh which is found here

Then do something like the following:

<!-- On windows, this needs an optional java implementation of ssh which you can get from :

http://www.jcraft.com/jsch/index.html

	 download it, build it and then pop the jar file into your ant lib folder
-->
<target name="deploy" description="pushes jar to the test server">
    <scp trust="true" file="${target.dist.jarfile}"
    todir="${deploy.server.1.username}:${deploy.server.1.password}@${deploy.server.1}:${deploy.server.1.dir}"/>
</target>
Share

build
code

Comments Off

Permalink

A Professional journal

I have been reading a few bits and pieces about the craftsmanship of software design. At the same time, I ave been thinking about ways to formalise my own learnings about software development. After reading about Corey haines’ pair programmin tour at cuberik it occured to me that this might be a good way to think about the process of developing as a software crafstman. As consultants, we move from project to project, working with different people in our own organisation and also within the client organisation.

Every new place brings different attitudes to code and design and provides an opportunity to pick up tricks and compare your own set of tools with those of others. At the same time, as a relatively experienced developer, you get to share your own ideas and experience with the people you work with. By working on comunication of these ideas, you learn more about them yourself and become more practised in their use.

Whilst this is at some level an intuitive process, by making it a concious process I think the results might be more focused. With this in mind, I have created a keyword for this blog called “a journeymans’ diary”. This is the first post in the series.

I plan to try and make at least one post a week, with lessons learned that week. The topics will be focused purely on software design, building code line by line.

UPDATE:

So I have changed my mind about this and now prefer to think of the whole thing as about being a “Professional”. Im keeping this post as a bit of history, but have now renamed this category, to avoid the craftsmanship overtones.

Share

anecdotes
code
thoughtblog

Comments (1)

Permalink