nlr reddy

Greenhorn
+ Follow
since Jul 05, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by nlr reddy

Hi,

I'm using the below code to scp a file to remote dir. but how can I fail the build if local directory is empty? I'have used failonerror=true for scp task but the execution of ant build says build successful even if there is no file.



Thanks,
13 years ago

Jeanne Boyarsky wrote:Take a look at the <propertyRegexp> task in Ant Contrib. it lets you grab regular expressions from a property. Which means you can search for dev, store it in another property and replace it with an empty string.



thanks.

I have used mapper to rename and copy the file.
13 years ago
Hi,

I'm trying to copy property files to their right environment using ant.

Suppose, I have three files like below

jsp-dev.properties, jsp-test.properties, jsp-prod.properties.

Now, I would like my ant script to copy right file to the right environment.

if I give env in build.properties as dev, it should trim "-dev" from the file and copy the file to dev.
like copy jsp-dev.properties to jsp.properties and push to dev environment.

Can anyone help me here?

Thanks,
13 years ago
Hi,

I use ant to export content from svn compile and then deploy onto weblogic.

Now, the static content must go to server 1 and dynamic content to server 2.

The problem is, I'm running the ant script from server 2. So, How can I export static content to server 1 using the ant script?
14 years ago

David Newton wrote:Set a default target, and have the default target depend on all the tasks you want run.



Whatever David told me to do has worked for me

Thanks David

Charan
14 years ago
There are multiple targets in my build.xml.
If I want to run the script I enter as
$ant <target name>

If I want to run all targets at once, how can I do that?

running as

$ant

is not working for me as it checks for only tool availability.


Thanks,
Charan
14 years ago
Hi,

What could be the error with the following script.

Even if I give the wrong library location of svn ant it gives me tool availability=true





Thanks
Charan
14 years ago
Hi Guys,


I'm new to ant scripting. You can say a layman in ant scripting. I do not know how to proceed for this script

The task is the script must be able to export tagged files from subversion which are only static content (like html, images etc) to web server document root and export dynamic content (jsp's ,java classes) to weblogic.

For the dynamic content part, it must first export them to a temp directory using tags make a war file and then deploy onto weblogic. Suppose, in the future there is an update to a single jsp or html it must do the same thing again. But for the dynamic content part, it must first undeploy the war file, make a war file with the updated jsp and then deploy to weblogic.


Only files with a particular tag are being exported. There may be different tags for static and dynamic content.


I have few questions

1. What are the prerequisites for this (I mean like tools. Do I need svnant for this?)
2. How do I start?
3. If you can give me a sample script that would be great


NOTE: SUbVersion is on server 1, WebServer is on Server 2 and WebLogic is on Server 3 and there is a connectivity between these three. OS is RHEL
Thanks
14 years ago
Hi,

Using nmConnect() command I was trying to connect WLST to Node Manager but unable to do so.

I get the following error if I give the following command

wls:/offline> nmConnect('weblogic', 'weblogic', 'localhost', '5556', 'base_domain', 'C:\bea9\user_projects\domains\base_domain', 'ssl')

Connecting to Node Manager ...
Traceback (innermost last):
File "<input>", line 1, in ?
File "<iostream>", line 1499, in nmConnect
WLSTException: 'Error occured while performing nmConnect : Cannot connect to the
Node Manager.I/O error while reading domain directory: java.io.IOException: C:\
\bea9\\weblogic90\\common\\bin\\\bea9\\user_projects\\domains\base_domain: The f
ilename, directory name, or volume label syntax is incorrect Use dumpStack() to
view the full stacktrace'

I also tried dumpStack(), this is the message I got

wls:/offline> dumpStack()
This Exception occured at Mon Jul 06 02:30:32 GMT 2009
weblogic.nodemanager.NMException: I/O error while reading domain directory: java
.io.IOException: C:\bea9\weblogic90\common\binea9\user_projects\domainase_domain
: The filename, directory name, or volume label syntax is incorrect
at weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClie
nt.java:239)
at weblogic.nodemanager.client.NMServerClient.connect(NMServerClient.jav
a:197)
at weblogic.nodemanager.client.NMServerClient.checkConnected(NMServerCli
ent.java:151)
at weblogic.nodemanager.client.NMServerClient.getVersion(NMServerClient.
java:41)
at weblogic.management.scripting.NodeManagerService.verifyConnection(Nod
eManagerService.java:183)
at weblogic.management.scripting.NodeManagerService.nmConnect(NodeManage
rService.java:176)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[
Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;
I)Ljava.lang.Object;(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:248)
at org.python.core.PyObject.invoke(PyObject.java:2016)
at org.python.pycode._pyx2.nmConnect$93(<iostream>:1487)
at org.python.pycode._pyx2.call_function(ILorg.python.core.PyFrame;)Lorg
.python.core.PyObject;(<iostream>:???)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyTableCode.call(PyTableCode.java:404)
at org.python.core.PyFunction.__call__(PyFunction.java:184)
at org.python.core.PyObject.__call__(PyObject.java:248)
at org.python.pycode._pyx22.f$0(<input>:1)
at org.python.pycode._pyx22.call_function(ILorg.python.core.PyFrame;)Lor
g.python.core.PyObject;(<input>:???)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1135)
at org.python.core.Py.exec(Py.java:1157)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:148)
at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter
.java:89)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret
er.java:70)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret
er.java:40)
at weblogic.management.scripting.WLST.main(WLST.java:130)


Could you guys tell me what could be the error?


Any help is appreciated


Thanks,
Charan
14 years ago