Discussion:
How do I make svn ignore maven target & eclipse compiled directories
Jason Shao
2007-08-08 19:37:37 UTC
Permalink
Hi Everyone,

I'm looking to get the CLI svn client to ignore maven's target and
eclipse's bin directories. setting svn:ignore on the parent directory
seems to work -- but adding target and bin to .subversion/config
under [auto-props] global-ignores doesn't seem to do anything.

Does anyone know a better way to mask directories than setting the
property on all the parent directories?

Jason

--

Jason Shao
Application Developer
Rutgers University, Office of Instructional & Research Technology
v. 732-445-8726 | f. 732-445-5539 | ***@rutgers.edu | http://
jay.shao.org


[see attachment: "message0.html", size: 2737 bytes]


Attachments:

message0.html
https://collab.sakaiproject.org/access/content/attachment/e335456f-2745-4b6d-8062-9a5efd36d99c/message0.html

----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.
Zach A. Thomas
2007-08-08 20:24:38 UTC
Permalink
I don't know if there's a way to avoid setting the property on all
the directories, but there is an easy way to do the setting:

for dir in `find . -name 'project.xml' -execdir pwd \;`;do svn
propset svn:ignore 'target\nbin' $dir;done

If you're doing this on a Maven 2 source tree, you would use pom.xml
instead of project.xml

Zach
Post by Jason Shao
Hi Everyone,
I'm looking to get the CLI svn client to ignore maven's target and
eclipse's bin directories. setting svn:ignore on the parent
directory seems to work -- but adding target and bin to .subversion/
config under [auto-props] global-ignores doesn't seem to do anything.
Does anyone know a better way to mask directories than setting the
property on all the parent directories?
Jason
--
Jason Shao
Application Developer
Rutgers University, Office of Instructional & Research Technology
jay.shao.org
[see attachment: "message0.html", size: 2737 bytes]
message0.html
https://collab.sakaiproject.org/access/content/attachment/
e335456f-2745-4b6d-8062-9a5efd36d99c/message0.html
----------------------
This automatic notification message was sent by Sakai Collab
(https://collab.sakaiproject.org/portal) from the DG: Development
(a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace >
Preferences.
----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.
Yuji Shinozaki
2007-08-08 20:37:15 UTC
Permalink
Similarly, I have this script:

#!/bin/sh

for d in `svn status | egrep '^?' | egrep 'target$' | awk '{ print
$2,"\n" }' `
do

echo ===
echo $d
svn propset svn:ignore target `dirname $d`

done

No warranties whatsoever.

yuji
----
Post by Zach A. Thomas
I don't know if there's a way to avoid setting the property on all
for dir in `find . -name 'project.xml' -execdir pwd \;`;do svn
propset svn:ignore 'target\nbin' $dir;done
If you're doing this on a Maven 2 source tree, you would use
pom.xml instead of project.xml
Zach
Post by Jason Shao
Hi Everyone,
I'm looking to get the CLI svn client to ignore maven's target and
eclipse's bin directories. setting svn:ignore on the parent
directory seems to work -- but adding target and bin
to .subversion/config under [auto-props] global-ignores doesn't
seem to do anything.
Does anyone know a better way to mask directories than setting the
property on all the parent directories?
Jason
--
Jason Shao
Application Developer
Rutgers University, Office of Instructional & Research Technology
jay.shao.org
[see attachment: "message0.html", size: 2737 bytes]
message0.html
https://collab.sakaiproject.org/access/content/attachment/
e335456f-2745-4b6d-8062-9a5efd36d99c/message0.html
----------------------
This automatic notification message was sent by Sakai Collab
(https://collab.sakaiproject.org/portal) from the DG: Development
(a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.
----------------------
This automatic notification message was sent by Sakai Collab
(https://collab.sakaiproject.org/portal) from the DG: Development
(a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace >
Preferences.
-----
Yuji Shinozaki
Sr. Technical Lead/Project Manager
University of Virginia
Advanced Technologies Group
***@virginia.edu


----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.
Loading...