checkout single file from svn repo
use rather :
svn export https://svn.repo/path/to/file/witr.png /tmp/witr.png
another alternative for text files
svn cat https://svn.repo/path/to/file/witr.txt > /tmp/witr.txt
svn export https://svn.repo/path/to/file/witr.png /tmp/witr.png
another alternative for text files
svn cat https://svn.repo/path/to/file/witr.txt > /tmp/witr.txt
So, first proceed like following
> sudo mkdir tmpAnalysis
> sudo mount /dev/sda1 tmpAnalysis
> baobab tmpAnalysis
Analysis is ready to explore.
Then
> sudo umount tmpAnalysis
> sudo rm -rf tmpAnalysis
Open your page in your browser.
In developer console create following function
function chkid(ch){ if(ch.id==""){ console.log(ch.tagName+' : '+ch.id + ' childof ==> ' + ch.up().id) } ch.childElements().each( function(fils){ chkid(fils) } ); }
then call chkid with any dom element. To get all, call chkid with body element
$$('body')[0].childElements().each(function(ch){chkid(ch)});
Nota : Here we use prototypejs framework
Following php code displays one jboss server state
echo exec('/path/to/script/status.sh /path/to/jboss/home')
For our example we need three php files containing the previous one line php code corresponding to each one of the three jboss server : state-jboss1.php, state-jboss2.php, and state-jboss3.php
We need here the load() method of jquery javascript framework.
$('#jboss').load('state-jboss.php');
We’ll resort to javascript timer
setInterval(function(){$('#jboss').load('state-jboss.php')},3000);
status.sh (myArtifactName string in code must be replaced by the right artifact name)
#!/bin/bash res=$($1/bin/jboss-cli.sh --commands="connect,read-attribute server-state" 2>&1) if [[ $res != 'running' ]] then echo "STOPPED ($res)" else artifactDeployed=$($1/bin/jboss-cli.sh --commands="connect,deploy -l" | grep myArtifactName | grep OK 2>&1) if [[ X$artifactDeployed == 'X' ]] then echo "STARTING ($res / $artifactDeployed)" else echo "RUNNING ($res / $artifactDeployed)" fi fi
state-jboss1.php
state-jboss2.php
state-jboss3.php
index.html
Jboss1 state :
Jboss2 state :
Jboss3 state :
setInterval(function(){$('#jboss1').load('state-jboss1.php')},3000); setInterval(function(){$('#jboss2').load('state-jboss2.php')},3000); setInterval(function(){$('#jboss3').load('state-jboss3.php')},3000);
Use :
> ./status.sh /path/to/jbossHome
This script may be improved …
Also you need to replace in code myArtifactName fake value by your right value
#!/bin/bash res=$($1/bin/jboss-cli.sh --commands="connect,read-attribute server-state" 2>&1) if [[ $res != 'running' ]] then echo "STOPPED ($res)" else artifactDeployed=$($1/bin/jboss-cli.sh --commands="connect,deploy -l" | grep myArtifactName | grep OK 2>&1) if [[ X$artifactDeployed == 'X' ]] then echo "STARTING ($res / $artifactDeployed)" else echo "RUNNING ($res / $artifactDeployed)" fi fi
... ...
– build.xml
<!-- --> <!-- -->
– hibernate.cfg.xml
true oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@127.0.0.1:1522:WITRDB witr witr org.hibernate.dialect.Oracle10gDialect false
– reveng.xml
...etc
then type
> cd hbm > ant
your hibernate beans are ready in hbm/generated directory